Delta AH500 — 6.11.2 Explanation of Basic Instructions

AH500 Programming Manual API 1003 Symbol: S 1 : Counter number Word S 2 : Setting value of the counter Word Explanation: 1. When the instruction CNT is executed, the coil of the counter is ON, and the value of the counter increases by one. When the value of the counter matches the setting value, the state of the contact is as follows. 2. After the value of the counter matches the setting value, if there is still a pulse input signal of the counter, the state of the contact and the value of the counter remain unchanged. If users want to clear the value of the counter, they can use the instruction RST.

When SM408 is ON for the first time, the setting value 10 is loaded to the counter C0, and C0 begins to count. After SM408 is switched from OFF to ON ten times, the value of C0 is 10, and the contact of C0 is ON. After the contact of C0 is ON, the value of C0 does not increase although SM408 still truns from OFF to ON. Example: Additional remark: When declare the operand S1 via ISPSoft, the data type is COUNTER. 6-232 Instruction code Operand Function CNT S , S 1 2 16-bit counter Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1  S 2         Pulse instruction 16-bit instruction (5 steps) 32-bit instruction - AH500 - Normally open (NO) contact ON Normally closed (NC) contact OFF