DVP-ES3 Series Programming Manual 1. When X0=ON, the RST instruction is executed, the current value of C0 is reset to zero, and the output contact of the _2 counter C0 is FF. 2. When X1 changes from OFF to ON, the value of the counter increments by one. 3. When the value of the counter C0 reaches the counter setting value of 5, the contact of the counter C0 is ON (the current value of C0 = the counter setting value = 5). After that the trigger from X1 is not accepted by C0 and the current value of C0 stays at the value 5. X0.0 X0.1 0 1 2 3 4 5 C0 (PV) (SV) 0 Y0.0,C0 2.2.12 32-bit Counters (HC) Characteristics of the 32-bit counter 32-bit general-purpose addition/subtraction counter 1.
The difference between the 32-bit general-purpose addition counters and the 32-bit general-purpose subtraction 2-48 Item 32-bit counter Type Up/down counter Up counter High-speed counter Number HC0–HC63 HC64–HC199 HC200–HC255 Direction Counts up/down Counts up Counts up/down Setting value -2,147,483,648 to +2,147,483,647 Specification of the counter setting value The counter setting value can be either the constant or the value occupying two data registers (32-bit). Change of the current value The counter keeps counting even after the value of the counter matches the counter setting value.
Output contact The contact is ON when the value of the addition counter matches the counter setting value. The contact is reset to OFF when the value of the subtraction counter matches the counter setting value. Reset When the RST instruction is executed, the current value is cleared to zero, and the contact is reset to OFF. Action of the contact After the DCNT instruction scan is complete, the contact acts.