JerryH
Member
Anybody know a slick way to reset 200 consecutive counters in a AB Logix 5000 plc?
thanks,
Jerry
thanks,
Jerry
Think of it as a step back into RSLogix 500; C5[100] in SLC/Micrologix would be similar to jerryHcounters[100] in Compact/ControlLogix.
In C-Logix, would it be possible to set up an array of Alias tags for the counter accumulators and fill it with zeroes to reset all the counters?
You can't do it the way you describe, but how about this?
Declare an array of type counter. Mycounter[200]
Create an alias to each element in the array. PartsInfeed, RejectStationA, etc. Use these in your code.
For master reset use a for-next (for I=0 to 199) that executes a reset instruction for Mycounter. This is the only code that addresses anything using the Mycounter tag.
Why does the silly editor *insist* on making the I in square brackets lower case? Beats me.
You could set the ACC to any value but that doesn't address (no pun intended) the issue of the DN bits. To take care of those also you'd need the RES instruction, which does both.In C-Logix, would it be possible to set up an array of Alias tags for the counter accumulators and fill it with zeroes to reset all the counters?