is this CompactLogix or ControlLogix?
whoops, should have asked: is this 5x70 or 5x80?
If it's Logix5000 and not Studio5000 shouldn't that be 5x50 or 5x60?
Can you write out the expression to sum the array in the FAL instruction?
1. Parallel a CTU with the motor's OTE.
2. Use the GSV instruction (Wall Clock) to create LocalTime Array of 8 DINT's. LocalTime [0] YEAR, [1] MONTH, [2] YEAR, [3] DAY, [4] HOUR, [5] MINUTE, [6] SECOND, [7] MILLISECOND
3. Create New DINT Tags Named DAY And HOUR, Copy LocalTime Array Tags to New Tags. These tags will be used for indirect addressing in the following rungs.
4. When LocalTime[5] =59 AND LocalTime[6] =59 Copy CTU.ACC to Motor Start Array [HOUR]
5. When LocalTime[4] =23 AND LocalTime[5] =59 AND LocalTime[6] =59 Then use a FAL to sum array values for Daily Total AND Copy FAL Daily Total to a Month Array Tag [DAY].
6. When LocalTime[5] =59 AND LocalTime[6] =59 Then CLR Motor.ACC.
Make sure you use the CLR instruction and not (RES) instruction. Using the (RES) instruction will cause a false count if the motor rung is true when the counter is reset.