2 Functions of Devices in DVP-PLC 16-bit counters C0 ~ C199: 1. The setup range of 16-bit counter: K0 ~ K32,767. K0 is the same as K1. The output contact will be On immediately when the first counting starts. 2. PV in the general purpose counter will be cleared when the power of the PLC is switched off. If the counter is a latched type, the counter will retain the PV and contact status before the power is off and resume the counting after the power is on again. 3. If you use MOV instruction, WPLSoft or HPP to send a value bigger than the SV to the present value register of C0, next time when X1 goes from Off to On, the contact of counter C0 will be On and its PV will equal SV. 4.
The SV in the counter can be constant K (set up directly) or the values in register D (set up indirectly, excluding 5. If you set up a constant K as the SV, it should be a positive value. Data register D as SV can be positive or special data registers D1000~ D1999). negative. When the PV reaches up to 32,767, the next PV will turn to -32,768. Example: LD X0 RST C0 X0 LD X1 CNT C0 K5 X1 LD C0 C0 Y0 OUT Y0 a) When X0 = On, RST instruction will be executed, PV in C0 will be “0” and the output contact will be reset to Off. X1 b) When X1 goes from Off to On, the PV in the counter will count up (plus 1).
0 1 2 3 4 5 c) When the counting of C0 reaches SV K5, SV the contact of C0 will be On and PV of C0 = SV = K5. The X1 trigger signal comes PV in C0 0 afterwards will not be accepted by C0 and Contacts Y0, C0 the PV of C0 will stay at K5. 32-bit general purpose addition/subtraction counters C200 ~ C234: 1. The setup range of 32-bit counter: K-2,147,483,648 ~ K2,147,483,647 (not available for ES/EX/SS series MPU). 2. Addition or subtraction of the counters is designated by On/Off status of special auxiliary relays M1200 ~ M1234. For example, when M1200 = Off, C200 will be an addition counter; when M1200 = On, C200 will be a subtraction counter. 3.
The SV can be constant K or data register D (excluding special data registers D1000 ~ D1999). Data register D as SV can be a positive or negative value and an SV will occupy two consecutive data registers. 4. PV in the general purpose counter will be cleared when the power of the PLC is switched off. If the counter is a latched type, the counter will retain the PV and contact status before the power is off and resume the counting DVP-PLC Application Manual 2-19 RST C0 CNT C0 K5 0