beautypg.com

2 resetting a counter – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 39

background image

2Ć5

2.1.3

Example of a Count Up Down Instruction

This logic shows that counter1 counts up to 500

as long as switch1 is on and switch2 transitions

from false to true. When the counter reaches

500, QU is set true, and the variable motor1

becomes true.

2.2

Resetting a Counter

To reset a counter, attach a Boolean parameter to CR so that when the Boolean

parameter is true, the value stored in Current is reset to 0. Any transitions to CU or CD

are ignored.