Delta DVP-ES3 — 6.11.2 Explanation of Timer and Counter Instructions

Chapter 6 Applied Instructions Symbol S 1 : Counter number S 2 : Setting value for the counter Explanation 1. This instruction changes a specified counter coil from OFF to ON, and then increments the value of the counter by 1. When the value of the counter matches the setting value, the contact of the counter is ON. 6_ 2. When the value of the counter matches the setting value, the instruction does not change the state of the contact and value of the counter if any more counting pulses are input. Use the RST instruction (API 1000) to reset the counter and enable counting again.

Example When SM408 is ON for the first time, the instruction loads the setting value 10 to the counter C0 and the counter begins counting. After SM408 switches from OFF to ON ten times, the value in C0 is 10 and the contact of C0 is ON. After C0 is ON, if SM408 continues to switch from OFF to ON, the instruction does not increase the value in C0 after it reaches the setting value for C0. Additional remarks When you declare the operand S 1 in ISPSoft, select the data type COUNTER.

6-273 API Instruction code Operand Function 1003 CNT S1, S2 16-bit counter Device X Y M S T C HC D FR SM SR E K 16# “$” F S1  S2     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1  S2   Pulse instruction 16-bit instruction 32-bit instruction - ES3 -