scottrandall Member S Join Date Sep 2017 Location White Bear Lake, Minnesota Posts 1 Sep 28, 2017 #1 I am using a subtraction function in rslogix 500 pro. It is giving me the error in the title. I have Source A: C5:0 and Source B: C5:1. I can't figure this out. Can anyone help me with this? Scott
I am using a subtraction function in rslogix 500 pro. It is giving me the error in the title. I have Source A: C5:0 and Source B: C5:1. I can't figure this out. Can anyone help me with this? Scott
scott.lawrence Member S Join Date Feb 2010 Location Washington Posts 173 Sep 28, 2017 #2 here's a link to the SLC instruction set that shows word & bit level addressing. http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1747-rm001_-en-p.pdf on pg 1-6, it shows word 0 of the counter file as being internal to the counter. Word 1 is for PRE and word 2 is for ACC
here's a link to the SLC instruction set that shows word & bit level addressing. http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1747-rm001_-en-p.pdf on pg 1-6, it shows word 0 of the counter file as being internal to the counter. Word 1 is for PRE and word 2 is for ACC
cwal61 Member C Join Date Jan 2011 Location NC Posts 1,239 Sep 28, 2017 #3 C5:0 or C5:1 is the counter .ACC = Accumulator Value .PRE = the Preset values so C5:0.ACC - C5:1.ACC Destination would contain the difference of the two counters accumulated values.
C5:0 or C5:1 is the counter .ACC = Accumulator Value .PRE = the Preset values so C5:0.ACC - C5:1.ACC Destination would contain the difference of the two counters accumulated values.
JohnCalderwood Member J Join Date Feb 2014 Location Stirling, Scotland Posts 808 Sep 28, 2017 #4 Aye, you need to use at the word level .. C:0.PRE or C5:0.ACC - if it is a sub instruction, then you will be using the ACC value. edit: rats,.......too slow at typing
Aye, you need to use at the word level .. C:0.PRE or C5:0.ACC - if it is a sub instruction, then you will be using the ACC value. edit: rats,.......too slow at typing