DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Example: LD X0 X0 RST C0 LD X1 CNT C0 K5 LD C0 OUT Y0 When X0 = ON, RST instruction resets C0. Every time When X1 is driven, C0 will count up (add 1). When C0 reaches the preset value K5, output coil Y0 will be ON and C0 will stop counting and ignore the signals from input X1. X1 C0 Y0 X0 X1 0 1 2 3 4 5 C0 present value settings 0 M relays M1200~M1254 are used to set the up/down counting direction for C200~C254 respectively. Setting the corresponding M relay ON will set the counter to count down. Example:
Contacts Y0, C0 LD X10 OUT M1200 X10 LD X11 X11 M1200 RST C200 CNT C200 K-5 LD X12 X12 LD C200 C200 OUT Y0 Y0 2-26 16 bits 32 bits counters counters operation stop when preset value reached value reached. The count value will become -2,147,483,648 if one more count is added to +2,147,483,647 counting when preset value is reached. The count value will become 0 if one more count is added to +2,147,483,647 Output contact function Ouptut Coil will be ON when counter reaches preset value. Output coil is ON when counter reaches or is above preset value. Output coil is OFF when counter is below preset value.
Output coil is ON when counter reaches or is above preset value High speed conparison - Associated devices are activated immediately when preset value is reached, i.e. independant of scan time. - Reset action The present value will reset to 0 when RST instruction is executed, output coil will be OFF. RST C0 CNT C0 K5 RST C200 DCNT C200 K-5