![Mitsubishi Electric MELSEC FX3G Programming Manual Download Page 709](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083709.webp)
707
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.3 FNC258 – ZONE / Zone Control
21
FN
C
160-
FN
C
169
R
eal T
im
e C
lo
ck
22
FN
C
170-
FN
C
179
Exter
nal D
ev
ice
23
FN
C
180
Al
ter
nate
In
str
uc
tions
24
FN
C
181-
FN
C
189
O
ther
s
25
FN
C
190-
FN
C
199
B
lock D
ata
26
FN
C
200-
FN
C
209
C
har
acter
S
tring
27
FN
C
210-
FN
C
219
Da
ta
28
FN
C
220-
FN
C
249
Da
ta
29
FN
C
25
0-
FN
C
26
9
D
ata T
abl
e
30
FN
C
270-
FN
C
274
Ex
-D
ev
ice
2. 32-bit operation (DZONE and DZONEP)
The bias value specified by [
+1,
] or [
+1,
] is added to the input value specified by
[
+1,
], and output to the device specified by [
+1,
].
The bias value is added as shown below:
Caution
• When the output value overflows, it is handled as follows:
- In the 16-bit operation
The operation result is a 16-bit binary value with sign. Accordingly, if the output value is outside the
range from -32768 to +32767, it is handled as follows:
- In the 32-bit operation
The output value is a 32-bit binary value with sign. Accordingly, if the operation result is outside the
range from -2,147,483,648 to +2,147,483,647, it is handled as follows:
S
1
S
1
S
2
S
2
S
3
S
3
D
D
In the case of “Input value < 0” ..................................Input value + Negative bias value
→
Output value
In the case of “Input value = 0” ...........................................................................................0
→
Output value
In the case of “Input value > 0” ..................................Input value + Positive bias value
→
Output value
FNC258
DZONE
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
0
+1,
[
]
+1,
[
]
Command
input
S
1
S
2
D
S
3
S
3
S
3
S
3
S
3
S
3
S
3
S
3
S
3
S
3
S
3
S
1
S
1
S
2
S
2
D
D
D
D
D
D
Output
value
Input
value
Positive bias value
Negative bias value
Input value
Output value
D
D
S
3
S
3
+1,
[
]
S
1
S
1
+1,
[
]
S
2
S
2
Negative bias value = -100
Input value = -32768
Output value = -32768+(-100)
= 8000H+FF9CH
= 7F9CH
= 32668
S
1
S
3
Negative bias value [ +1, ] = -1000
Input value [ +1, ] = -2,147,483,648
Output value = -2,147,483,648+(-1000)
= 80FFFFFC18H
= 7FFFFC18H
= 2,147,482,648
S
1
S
3
S
1
S
3