673
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
21
FN
C
160-FN
C
169
R
eal
Ti
m
e
C
loc
k
C
ont
ro
l
22
FN
C
170
-F
N
C
17
9
E
xt
e
rnal
D
evi
ce
23
FN
C
180
Su
b
st.
I
n
str
. I
n
fo
24
FN
C
181-FN
C
189
O
ther
s
25
FN
C
190-FN
C
19
9
B
loc
k D
a
ta
O
per
at
io
n
26
FN
C
200-FN
C
209
C
har
act
e
r St
ring
C
ont
ro
l
27
F
N
C2
10
-F
NC
21
9
Da
ta
O
per
at
ion 3
28
FN
C
220-FN
C
24
9
Da
ta
Co
m
p
a
ris
o
n
29
FN
C
250-FN
C
269
Da
ta
T
a
b
le
O
per
at
io
n
30
FN
C
27
0-F
N
C
274
Ex
-D
ev
ic
e
In
ve
rte
r C
o
mm
s
29.6
FNC261 – BINDA / BIN to Decimal ASCII Conversion
Outline
This instruction converts binary data into decimal ASCII codes (30H to 39H).
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (BINDA and BINDAP)
1) Each digit of 16-bit binary data stored in
is converted into an ASCII code (30H to 39H), and stored
in
and later.
For example, when
stores "-12345", the conversion result is stored in
and later as follows:
2) The numeric range of 16-bit binary data stored in
is from -32768 to +32767.
3) The conversion result stored in
is as follows:
a) As "sign data" (low-order byte of
), "20H (space)" is set when the 16-bit binary data stored in
is positive, and "2DH (-)" is set when 16-bit binary data stored in
is negative.
Operand Type
Description
Data Type
Device number storing binary data to be converted into ASCII codes
16- or 32-bit binary
Head device number storing conversion result
Character string
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS
T
C
D
R U
\G
V
Z Modify K
H
E
"
"
P
3
3
3
3
3 3 3 3
3
3 3
3
3 3
3 3 3 3
3
P
FNC 261
BINDA
D
Mnemonic
Operation Condition
16-bit Instruction
5 steps
BINDA
BINDAP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
9 steps
DBINDA
DBINDAP
Continuous
Operation
Pulse (Single)
Operation
S
D
S
D
S
D
Command
input
FNC261
BINDAP
S
D
+0
b15
+2
b8 b7
b0
D
+1
b0
b15
16-bit binary data
S
+3
M8091=OFF:00H
M8091=ON:Does
not change.
ASCII code for 1's digit
ASCII code for 10's digit
ASCII code for 10000's digit
ASCII code for 100's digit
Sign data
ASCII code for 1000's digit
00H or source data
S
D
+0
b15
+2
b8 b7
b0
D
+1
-12345
b0
b15
S
35H(5)
34H(4)
31H(1)
33H(3)
2DH(-)
32H(2)
00H or source data
+3
M8091=OFF:00H
M8091=ON:Does not change.
S
D
D
S
S
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......