Delta Electronics — 6.11.2 Explanation of Timer and Counter Instructions

Chapter 6 Applied Instructions Symbol S 1 : Counter number S 2 : Lower bound of the comparison zone S 3 : Upper bound of the comparison D : Comparison result (3 consecutive zone 6_ devices) Explanation 1. Use this instruction with the high-speed counter numbers HC200 and above. The lower bound of S 2 must be less than the upper bound of S 3 . If you do not set the zone limit values properly, the PLC automatically adjusts them. 2. If S 1 specifies a software counter and the specified counter changes by increasing or decreasing by 1 in value, the DHSZ instruction makes the comparison immediately. The comparison condition and output state are shown in the following table.

6-283 API Instruction code Operand Function 1007 D HSZ S , S , S , D 1 2 3 High-speed input zone comparison Device X Y M S T C HC D FR SM SR E K 16# “$” F S 1  S 2    S 3    D     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S 1  S 2   S 3   D  Pulse instruction 16-bit instruction 32-bit instruction - - AS Comparison condition D+0 state D+1 state D+2 state The count value of S ON OFF OFF The lower bound (S ) OFF ON OFF The count value of S >= the upper bound 1 (S ) 3 OFF OFF ON