674
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion
b) "20H (space)" is stored for "0" on the left side of the effective digits (zero suppression).
c)
+3 is set as follows depending on the ON/OFF status of M8091.
2. 32-bit operation (DBINDA and DBINDAP)
1) Each digit of 32-bit binary data stored in [
+1,
] is converted into an ASCII code (30H to 39H),
and stored in
and later.
For example, when [
+1,
] stores "-12,345,678", the conversion result is stored in
and
later as follows:
2) The numeric range of 32-bit binary data stored in [
+1,
] is from -2,147,483,648 to
+2,147,483,647.
3) The conversion result stored in
is as follows:
a) As "sign data" (low-order byte of
), "20H (space)" is set when the 32-bit binary data stored in
[
+1,
] is positive, and "2DH (-)" is set when 32-bit binary data stored in [
+1,
] is
negative.
b) "20H (space)" is stored for "0" on the left side of the effective digits (zero suppression).
c) The high-order byte of
+5 is set as follows depending on the ON/OFF status of M8091.
ON/OFF status
Contents of processing
M8091=OFF
+3 is set to "00H (NULL)".
M8091=ON
+3 does not change.
ON/OFF status
Contents of processing
M8091=OFF
The high-order byte of
+5 is set to "00H (NULL)."
M8091=ON
The high-order byte of
+5 is set to "20H (space)."
0 0 3 2 5
20H
Effective digits
D
D
D
S
S
D
Command
input
FNC261
DBINDAP
S
D
+0
b15
+2
b8 b7
b0
D
+1
High-order 16 bits
32-bit binary data
+3
+5
+4
Low-order 16 bits
S
+1
S
M8091=OFF:00H
M8091=ON:20H
ASCII code for 100,000's digit
ASCII code for 1,000,000's digit
ASCII code for 1,000,000,000's digit
ASCII code for 10,000,000's digit
Sign data
ASCII code for 100,000,000's digit
00H or 20H
ASCII code for 1's digit
ASCII code for 1000's digit
ASCII code for 10's digit
ASCII code for 10000's digit
ASCII code for 100's digit
S
S
D
+0
b15
+2
b8 b7
b0
D
+1
+3
+5
+4
33H(3)
32H(2)
20H (space)
31H(1)
2DH(-)
20H (space)
00H or 20H
38H(8)
35H(5)
37H(7)
34H(4)
36H(6)
M8091=OFF:00H
M8091=ON:20H
S
+1
S
-12345678
S
S
D
D
S
S
S
S
0 0 1 2 0 3 4 5 6 0
20H
Effective digits
D
D
D