Chapter 16 PLC Function Applications│CP2000
16-47
Command Function
CNT
16-bit counter
Operand
C-K C0–C79, K0–K32,767
C-D C0–C79, D0–D399
When the CNT command is executed from OFF→ON, this indicates that the
designated counter coil goes from no power → electrified, and 1 will be added to the
counter's count value; when the count reaches the designated value (count value =
set value), the contact will have the following action:
N.O. (Normally Open) contact Closed
N.C. (Normally Close) contact Open
After the count value has been reached, the contact and count value will both remain
unchanged even if there is continued count pulse input. Please use the RST
command if you wish to restart or clear the count.
Ladder diagram:
X0
C2
CNT K100
Command code: Description:
LD X0 Load Contact a of X0
CNT C2 K100
C2counter
Set value as K100