FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DBAND and DBANDP)
Depending on how the input value (32-bit binary value) specified by [
range between [
S
The output value is controlled as shown below:
Command
input
FNC257
DBAND
S
In the case of "Lower limit value > Input value" ...............Input value −
S
2
In the case of "Upper limit value < Input value" ..............Input value −
S
In the case of "Lower limit value ≤ Input value ≤ Upper limit value" ................................ 0 → Output value
Output value
Caution
• When the output value overflows, it is handled as follows:
- In the 16-bit operation
The output value is a 16-bit binary value with sign. Accordingly, if the operation result is outside the range from
-32768 to +32767, it is handled as follows:
Lower limit value of dead band
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:
Lower limit value of dead band [
Input value [
Error
An operation error is caused when the instruction is executed in the setting status shown below; The error flag M8067
turns ON, and the error code (K6706) is stored in D8067.
16-bit operation
32-bit operation
+1,
S
] and [
S
+1,
1
1
2
S
S
1
2
S
S
S
1
1
+1,
3
+1,
3
S
S
S
+1,
2
3
+1,
3
S
S
S
1
3
3
1
+1,
+1,
Lower limit value of
dead band
Input
value
S
1
= 10
S
3
= -32768
S
1
+1,
S
S
+1,
] = -2,147,483,648
3
3
Relationship
>
S
S
1
2
S
S
] > [
S
[
+1,
+1,
1
1
2
29 Data Table Operation – FNC250 to FNC269
29.2 FNC257 – BAND / Dead Band Control
S
3
S
], the output value [
2
S
D
3
S
S
S
3
+1,
3
1
Lower limit value → Output value
S
S
S
3
+1,
3
2
Upper limit value → Output value
S
S
2
+1,
2
Output
[
value
[
S
S
]
+1,
1
1
Output
Output value = 0
Output value = -32768-10
= 8000H-AH
= 7FF6H
= 32758
S
1
] = 1000
Output value = -2,147,483,648-1000
S
]
2
+1,
S
] compares to the dead band
3
D
+1,
D
] is controlled.
S
D
D
+1,
1
+1,
S
D
D
+1,
2
+1,
D
D
+1,
D
]
+1,
D
Output
Input value
[
S
S
3
+1,
Upper limit value of
dead band [
]
S
S
+1,
2
2
= 80000000H-000003E8H
= 7FFFFC18H
= 2,147,482,648
21
22
23
24
]
25
3
26
27
28
29
30
667