AH500 Programming Manual 
6-304 
API 
Instruction code  Operand  Function 
1223  D  ZONE  P 
S
1
, S
2
, S
3
, D 
Controlling the zone 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
16-bit instruction (9 steps) 
32-bit instruction (9 steps) 
  AH500  AH500  AH500 
Symbol: 
 
S
1
:
Negative deviation  Word/Double word 
S
2
:
Positive deviation  Word/Double word 
S
3
:
Input value  Word/Double word 
D
:
Output value  Word/Double word 
Explanation: 
1.  The negative deviation in S
1
 or the positive deviation in S
2
 is added to the input value in S
3
, 
and the sum is stored in D. 
3
 is less than 0, the negative deviation in S
1
the input value in S
3
, and the sum is stored in D. 
3
 is larger than 0, the positive deviation in S
2
the input value in S
3
, and the sum is stored in D. 
3
 is equal to 0, the output value stored in D is 0. 
2.  The figures: 
Output value
Input value
Output value
Input value
Negative deviation
Positive deviation
ZONE is executed.
ZONE is not executed.
 
3.  Only the 32-bit instructions can use the 32-bit counter. 
4.  The negative deviation in S
1
, the positive deviation in S
2
, the input value in S
3
, and the output