Counters

Counter blocks are placed in the ladder rung in much the same way as timers. To enter an up counter into a rung, first click on the CTU and position the arrow on the right side of the rung.

Click the mouse.
A CTU instruction will appear at the right side of the rung. A box with a cursor will appear.
Type the tag in the “Counter” field and press <Enter>
Type the preset value and press <Enter>
Type the initial accumulator value and press <Enter>

For other types of counter instructions are selected by clicking on the Timer/Counter tab and then the appropriate mnemonic (CTU, CTD, or RES (reset timer)).

Note: to refer to the counter done bit in a contact address, use "counter_tag.DN".

0 comments :