4 Basic Instructions Remarks: See the specification of DVP-PM for the range of operand T. Explanations: 1. When CNT instruction goes from OFF to ON, the designated counter coil will be driven, and the present value in the counter will plus 1. When the counting reaches the set value (present value = set value), the associated contact will be ON and act as follows: 2. If there are other counting pulse inputs after the counting reaches its target, the contact and present value will stay intact. Use RST instruction to restart or reset the counting. Program Example: Ladder diagram: Instruction: Operation: LD X0 Load NO contact X0 X0 Explanations: 1.
DCNT is the instruction for enabling the 32-bit counters C200 ~ C255. 2. For general count-up / count-down counters C200 ~ C255, when DCNT instruction goes from OFF to ON, the present value in the counter will plus 1 (counting up) or minus 1 (counting down) according to the modes set by M1200 ~ M1234. Program Example: Ladder diagram: Instruction: Operation:
LD M0 Load NO contact M0 M0 DVP-PM Application Manual 4-8 Mnemonic Function Controllers 20PM 10PM 16-bit Counter CNT C-K C0 ~ C199, K0 ~ K32,767 Operand C-D C0 ~ C199, D0 ~ D9999 Controllers 20PM 10PM NO (normally open) contact Current flows NC (normally closed) contact Current blocked CNT C20 K100 CNT C20 K100 Set value in counter C20 as K100 Mnemonic Function Controllers 20PM 10PM 32-bit Counter DCNT C-K C200, C204, C208 ~ C255, K-2,147,483,648 ~ K2,147,483,647 Operand C-D C200, C204, C208 ~ C255, D0 ~ D9999 Controllers 20PM 10PM DCNT C254 K1000 DCNT C254 K1,000 Set value in counter C254 as K1,000