447
BINDA, BINDAP, DBINDA, DBINDAP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.1
B
INDA, BIND
AP, D
B
INDA, DBIND
A
P
7.11
Character string processing instructions
: BIN data to be converted to ASCII (BIN 16/32 bits)
: Head number of the devices where the conversion result will be stored (character string)
F
unct
i
on
BINDA
(1) Converts the individual digit numbers of decimal notation of the BIN 16-bit data designated by into ASCII codes, and
stores the results into the area starting from the device designated by .
For example, if -12345 has been designated at , the following will be stored from onward:
(2) The BIN data designated at can be in the range from -32768 to 32767.
(3) The operation results stored at are as follows:
(a) The sign "20
H
" will be stored if the BIN data is positive, and the sign "2D
H
" will be stored if it is negative.
(b) The sign "20
H
" will be stored for the leading zeros of effective digits. (Zero suppression is conducted.)
(c) The storage of data at devices specified by +3 differs depending on the ON/OFF status of SM701 (output number
of characters conversion signal).
When SM701 is OFF.....Stores "0"
When SM701 is ON ......Does not change
BINDA, BINDAP
Conversion from BIN 16-bit data to decimal ASCII
DBINDA, DBINDAP
Conversion from BIN 32-bit data to decimal ASCII
7.11.1
BINDA, BINDAP, DBINDA, DBINDAP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
P
S
D
S
D
BINDAP, DBINDAP
BINDA, DBINDA
i
nd
i
cates
an
i
nstruct
i
on
symbo
l
of
B
IN
DA
/
DB
IN
DA
.
S
D
S
D
S
D
+1
Sign
ASCII code for ten-thousands place
ASCII code for thousands place
ASCII code for hundreds place
b15
b8 b7
b0
+2
b15
b0
BIN 16-bit data
0
ASCII code for tens place
ASCII code for units place
+3
S
D
D
D
D
Only
w
hen
SM701 is OFF
S
D
+1
2D
H
( )
31
H
(1)
32
H
(2)
33
H
(3)
b15
b8 b7
b0
+2
b15
b0
34
H
(4)
35
H
(5)
00
H
+3
1
2
3
4
5
D
S
D
D
D
S
D
0 0 3 2 5
Number of significant digits
20
H
is set
D