DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic Operands Function
97 CNT
16-bit counter
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
CNT: 5 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S
1
: No. of 16-bit counter (C0~C199) S
2
: Set value (K0~K32,767, D0~D9,999)
Explanations:
1. When the CNT instruction is executed, the specific coil of counter is driven from OFF to ON
once, which means the count value of counter will be added by7 1. When the accumulated
count value achieves the set value, the associated NO/NC contact will be driven.
2. When set value of counter is achieved and the counter is driven again, the count value and the
status of the associated contact will remain intact. If users need to restart the counting or clear
the count value, please use RST instruction.
Program example:
Ladder Diagram:
Instruction Code: Operation:
LD X0 ; Load NO contact X0
CNT C20 K100 ; C20 counter setting is K100