
adccommunitymod (AutomationDirect) asked a question.
Created Date: July 21,2006
Created By: deh
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Ok, I almost feel embarrased to ask this question, but it has driven me nuts today. I am setting up my first C-More panel and am having a hard time getting my counters setup correctly. I am having a hard time getting the V-mem address ' straight in my head. I have an Up/down counter. I know that it uses two positions, I also know that to read the current value of CT0 I need to look at V1000. My question is what address do I use to write my preset value from the C-More to the PLC? BTW, I am using a DL-05 PLC. Dale
Created Date: July 21,2006
Created by: Tech Guy
There is no reason to feel embarassed about any question. As often as I answer questions on this forum and on the phone I still forget the simple stuff from time to time. http://forum1.automationdirect.com/board/smile.gif
You will need to use a V-memory address as the preset instead of a "K " value. This address will be the one the C-more writes to. The address will be set up as a BCD INT 32.
Created Date: July 21,2006
Created by: deh
Ok, but if i read the current value of CT0 at V1000, what V-mem address do I write the preset value to? By looking at the addressing map it says that V1000 is a read/write data type and that it is the present(not preset) value of CT0. I understand that to be the "current counts " of CT0. So what address would I write the "preset " value (or desired amount) for CT0 to? The addressing map lists V41140 as "read only ", so it couldn't be this address.
Dale
Created Date: July 21,2006
Created by: bcarlton
The Preset is not at a predefined location. You can define the preset as a 'K ' value which can only be changed by editing and redownloading the program. Or you can define the Preset as residing at a V memory location of your choosing. As mentioned by Tech Guy, since this is the preset for an Up/Down counter you will be defining the first of 2 V memory locations. Thus if you set V2000 as the preset then V2001 is in use also (holding the most significant 16 bits of the preset.)
Created Date: July 21,2006
Created by: deh
bcarlton,
I just got back on here to post that I had gotten over my major brain malfunction. I was so brain dead that even techguy's explanation went over my head. He couldn't have explained it any better than he did. I was sitting here drinking the proverbial cup of coffee when clarity set into my mind. As I said before, it is almost embarrassing to have these moments. I can bet you money that I won't forget this one.
Dale
Created Date: July 21,2006
Created by: deh
Ok, I almost feel embarrased to ask this question, but it has driven me nuts today. I am setting up my first C-More panel and am having a hard time getting my counters setup correctly. I am having a hard time getting the V-mem address ' straight in my head. I have an Up/down counter. I know that it uses two positions, I also know that to read the current value of CT0 I need to look at V1000. My question is what address do I use to write my preset value from the C-More to the PLC? BTW, I am using a DL-05 PLC.
Dale