3 Functions of Devices in DVP-PM specified as SV, it will occupy 2 consecutive data registers. 3. PV in the general purpose counter will be cleared when power of DVP-PM is OFF. If the counter is a latched (accumulative) type, PV and the contact status will be retained, and PLC will resume counting after power is ON again. 4. When PV reaches up to 2,147,483,647, the next PV will turn to -2,147,483,648. When PV reaches down to -2,147,483,648, the next PV will turn to 2,147,483,647. Example: LD X10 X10 OUT M1255 LD X11 M1255 RST C255 X11 LD X12 X12 DCNT C255 K-5 LD C255 C255 Y0 OUT Y0 1. X10 drives M1255 to determine whether C255 is a count-up or count-down counter. 2.
When X11 goes from OFF to ON, RST instruction will be executed, PV in C255 will be cleared, and the associated contact will be reset. 3. When X12 goes from OFF to ON, PV in the counter will count up (plus 1) or down (minus 1). 4. When PV in C255 changes from K-6 to K-5 (PV ≧ SV), the contact of C255 will go from OFF to ON. When PV in 5. If you use MOV instruction or PMSoft to send a value bigger than SV to the present value register of C0, when C255 changes from K-5 to K-6 (PV ≦ SV), the contact of C255 will go from ON to OFF. X1 goes from OFF to ON, the associated contact of counter C0 will be ON and its PV will equal SV.
Counting up Counting up Counting down X10 X11 0 1 2 3 4 5 4 3 2 1 0 -1 -2 -3 -4 -5 -6 -7 -8 PV in C255 0 -7 -6 -5 -4 -3 Status if Y0 was ON Contacts Y0,C255 DVP-PM Application Manual 3-11 RST C255 DCNT C255 K-5 X12