559
ZONE, ZONEP, DZONE, DZONEP
1
2
3
4
4
6
7
8
7.13
Data C
ontrol Instructio
ns
7.13.3
Z
ONE, ZO
NEP, DZONE, DZONEP
DZONE
(1) Adds bias value designated by ( , +1) or ( , +1) to input value designated by ( , +1), and stores the result at
device number designated by ( , +1).
Addition of the bias value is performed as follows:
(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of from 2147483648 to
2147483647.
(3) The value stored at ( , +1) is a signed 32-bit BIN value.
Therefore, if the operation results exceed the range of from -2147483648 to 2147483647, the following takes place:
Operat
i
on
E
rror
(1) There is no operation error in the ZONE(P) or DZONE(P) instruction.
Program
E
xamp
l
e
(1) The following program performs zone control by applying negative and positive bias values of 100 to 100 for the data
set at D0 and stores the result of control at D1 when X0 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
• The value (D0) + (-100) is stored at D1 if D0 0.
D0 -200 D1 -300
• The value 0 is stored at D1 if D0 0.
• The value of (D0) + 100 is stored at D1 if 0 D0.
D0 700 D1 800
When :
Negative bias value ( , +1)
.......................-
1000
Input value ( , +1)
.........................................
-2147483648
Output value -2147 (-1000) 80000000
H
+ FFFFFC18
H
7FFFFC18 2147482648.
S1
S1
S2
S2
S3
S3
D
D
+
1
D
D
+
1
S1
S1
Output
v
a
l
ue
Output
v
a
l
ue
Output
v
a
l
ue
+
I
nput
v
a
l
ue
N
egat
iv
e
b
i
as
v
a
l
ue
+
I
nput
v
a
l
ue
Pos
i
t
iv
e
b
i
as
v
a
l
ue
0
+
1
S3
S3
+
1
S3
S3
+
1
+
1
D
D
+
1
D
D
S2
S2
I
nput
v
a
l
ue
I
nput
v
a
l
ue
I
nput
v
a
l
ue
+
1
S3
S3
+
1
S3
S3
+
1
S3
S3
0
0
0
When
When
When
Pos
i
t
iv
e
b
i
as
v
a
l
ue
N
egat
iv
e
b
i
as
v
a
l
ue
S2
(
,
+
1)
S2
D
Output
v
a
l
ue
(
+
1,
)
D
I
nput
v
a
l
ue
(
,
+
1)
S3 S3
S1
(
,
+
1)
S1
0
S1
S1
S2
S2
S3
S3
D
D
S1
S1
S3
S3
Step
I
nstruct
i
on
De
vi
ce
Example
Example