Mitsubishi Electric MELSEC FX3U Programming Manual page 709

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DZONE and DZONEP)
The bias value specified by [
[
+1,
], and output to the device specified by [
S
S
3
3
The bias value is added as shown below:
Command
input
FNC258
DZONE
S
In the case of "Input value < 0" ..................................Input value
S
In the case of "Input value = 0" ...........................................................................................0 → Output value
S
In the case of "Input value > 0" ..................................Input value
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:
Negative bias value
Input value
- 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:
Negative bias value [
Input value [
+1,
S
S
1
1
S
S
1
2
S
+1,
3
3
+1,
S
3
3
S
3
+1,
3
Output
value
Input
value
S
1
= -100
Output value = -32768+(-100)
S
= -32768
3
S
S
1
+1,
1
] = -1000
S
S
+1,
] = -2,147,483,648
3
3
29 Data Table Operation – FNC250 to FNC269
] or [
+1,
] is added to the input value specified by
S
S
2
2
+1,
D
D
S
D
3
S
S
S
+1,
+1,
3
3
1
Negative bias value → Output value
+
S
S
S
3
+1,
3
+1,
2
Positive bias value → Output value
+
[
Output value
Positive bias value
[
]
+1,
S
S
2
2
0
= 8000H+FF9CH
= 7F9CH
= 32668
Output value = -2,147,483,648+(-1000)
= 80000000H+FFFFFC18H
= 7FFFFC18H
= 2,147,482,648
29.3 FNC258 – ZONE / Zone Control
].
S
D
D
+1,
1
D
D
+1,
S
D
D
+1,
2
+1,
]
D
D
Input value
[
S
+1,
S
3
Negative bias value
[
S
+1,
S
]
1
1
21
22
23
24
25
]
3
26
27
28
29
30
707

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents