
adccommunitymod (AutomationDirect) asked a question.
Created Date: February 10,2011
Created By: Steve Bailey
**** 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.****
My first Click project. Using the C0-02DR-D. That's the one with 2 analog input channels and two analog output channels. The input channels are mapped to the default addresses DF1 and DF2. My problem is when I try to use DF1 or DF2 in a comparison (-] > AD1 " entered The third column headed "Already used by " has "Ladder Program " entered. When I click "OK ", that message is followed by: "Warning C-0204: The memory address is already used. Please select an unused memory address. " What's going on here? What am I doing wrong?
Created Date: February 10,2011
Created by: bcarlton
Check this thread
Created Date: February 10,2011
Created by: Steve Bailey
Thanks Bernie.
Actually, I thought I had found the answer when I ran the simulation. I had used the default DF1 - DF4 for the analog channels and also DS1 and DS2 for some other values. When I ran the simulation I wrote a value into DF1. Then, when I wrote values into either DS1 or DS2, the DF1 value changed, telling me there is only a "D " memory area, not individual DS, DD, DH, and DF areas.
Changing the DS memory addresses to avoid overlapping the four DF words assigned to the analog channels didn't eliminate the "spurious " warning though.
Created Date: February 11,2011
Created by: Tinker
Thanks Bernie.
Actually, I thought I had found the answer when I ran the simulation. I had used the default DF1 - DF4 for the analog channels and also DS1 and DS2 for some other values. When I ran the simulation I wrote a value into DF1.
When you say "wrote a vlaue into DF1 " was that in your program of with an override in data view?
Either way that is probably not a good idea, If the ADC system is using DF1 it is probably just going to overwrite whatever you put there and it would make sense to get a warning about it. I'm not 100% sure what an override would do here, but I'm quite sure a write done in your ladder would be overwritten very soon, probably the next scan but I'm not sure how fast the ADC is.
Then, when I wrote values into either DS1 or DS2, the DF1 value changed telling me there is only a "D " memory area, not individual DS, DD, DH, and DF areas.
I don't belive that is true. You might double check what Dx registers you are using. As I said above, DF1 will be changed by the ADC whenever it does a conversion, if the value is the same as you wrote to DS1, it is just a weird coinsidence, especialy weird since one is a float and the other an integer.
Created Date: February 11,2011
Created by: Steve Bailey
Tinker, you 're assuming I had a C-More Micro connected to a Click PLC.
Actually, I thought I had found the answer when I ran the simulation.
Perhaps the simulation handles memory differently and real unit won't show the same results.
What I saw suggests to me that DF1 uses the first two words of "D " memory, the same two words used by DS1 and DS2.
Try it yourself. You only need the software. Create a new project using the EA1-T6CL and the Click (Modbus) protocol. Create two 16-bit integer tags assigned to DS1 and DS2. Create a floating point tag assigned to DF1. Create a 32-bit integer tag assigned to DD1. Then put numeric entry objects for each of those tags on a page and run the simulation. Enter a value into the tag assigned to DS1 and see what happens to the DF1 and DD1 tags.
Created Date: February 11,2011
Created by: bcarlton
Just did what you suggested, version 2.63.0. No cross changing between the items in simulation. Will update to latest and re-try.
It looks like the latest revision fixes a problem with 3.00 relating to what you observed. No problem seen with 3.01. Suggest you upgrade.
Created Date: February 11,2011
Created by: Steve Bailey
I just downloaded C-More software version 3.01 and the simulation works fine without any crossover between the DS, DD, and DF memory areas. It looks like the problem was in the simulation and limited to version 3.00
Created Date: February 10,2011
Created by: Steve Bailey
My first Click project. Using the C0-02DR-D. That's the one with 2 analog input channels and two analog output channels. The input channels are mapped to the default addresses DF1 and DF2.
My problem is when I try to use DF1 or DF2 in a comparison (-]> AD1 " entered
The third column headed "Already used by " has "Ladder Program " entered.
When I click "OK ", that message is followed by:
"Warning C-0204: The memory address is already used. Please select an unused memory address. "
What's going on here? What am I doing wrong?