AH500 Programming Manual API 1222 Symbol: S 1 : Minimum value of the deadband Word/Double word S 2 : Maximum value of the deadband Word/Double word S 3 : Input value Word/Double word D : Output value Word/Double word Explanation: 1. The minimum value of the deadband in S 1 or the maximum value of the deadband in S 2 is subtracted from the input value in S 3 , and the difference is stored in D . If the minimum value of the deadband in S 1 is larger than the input value in S 3 , the minimum value of the deadband in S 1 is subtracted from the input value in S 3 , and the difference is stored in D .
If the maximum value of the deadband in S 2 is less than the input value in S 3 , the maximum value of the deadband in S 2 is subtracted from the input value in S 3 , and the difference is stored in D . If the input value in S 3 is within the range between the minimum of the deadband in S 1 and the maximum value of the deadband in S 2 , the output value stored in D is 0. If the minimum value of the deadband in S 1 is larger than the maximum value of the deadband in S 2 , the instruction is not executed. 2. Only the 32-bit instructions can use the 32-bit counter.
6-302 Instruction code Operand Function D BAND P S , S , S , D 1 2 3 Deadband control Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1 S 2 S 3 D Pulse instruction 16-bit instruction (9 steps) 32-bit instruction (9 steps) AH500 AH500 AH500 Pulse instruction 16-bit instruction (9 steps) 32-bit instruction (9 steps) AH500 AH500 AH500