340
5-24-4 DEAD-ZONE CONTROL: ZONE(273)
(273)
ZONE S C D
Ladder Symbol
Variations
↑ZONE(273)
Operand Data Areas
D: Output word CIO, G, A, T, C, DM, DR, IR
C: First bias word CIO, G, A, T, C, DM
S: Input word CIO, G, A, T, C, #, DM, DR, IR
Description When the execution condition is OFF, ZONE(273) is not executed. When the ex-
ecution condition is ON, ZONE(273) adds the specified bias to the specified in-
put data (signed 16-bit binary) and places the result in a specified word. The con-
tents of words C and C+1 are as follows:
C Negative bias
C+1 Positive bias
If the input data (S) is less than zero, the input data plus the negative bias will be
output to D and the Less Than Flag (A50007) will turn ON.
If the input data (S) is greater than zero, the input data plus the positive bias will
be output to D and the Greater Than Flag (A50005) will turn ON.
If the input data (S) is equal to zero, 0000 will be output to D and the Equals Flag
(A50006) will turn ON.
Positive bias (C+1)
Output
Input
Negative bias (C)
If the output data is less than 8000 or greater than 7FFF, the sign will reverse. For
example, if the negative bias is FF00 and the input data is 8000, the output data
will be as follows:
8000 +FF00 = 7F00
(–32,768)
10
(–256)
10
(32,512)
10
Precautions The negative bias (C) must be less than or equal to the positive bias (C+1).
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): C is less than C+1.
The content of a*DM word is not BCD when set for BCD.
> (A50005): The input data (S) is greater than 0000.
EQ (A50006): The output data is all zeros.
< (A50007): The input data (S) is less than 0000.
N (A50008): The output data is a negative number.
(CVM1 V2)
PID and Related Instructions Section 5-24