14.11 ATOB (Conversion: ASCII → BIN)
14.11 ATOB (Conversion: ASCII → BIN)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
S1
Control string (2 to 16 characters)
S2
Starting number of the area that stores the ASCII data targeted for conversion
N
Conversion method
D
Starting number of the area for storing the binary data of the converted result
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S1
●
●
S2
●
●
(Note 1)
●
●
N
D
●
●
(Note 1)
To be handled as a 32-bit unsigned integer, regardless of operation unit.
■
Outline of operation
● This instruction converts the ASCII code string data stored in the area starting with [S2] into
binary data.
● Specify the conversion method for [S1] and [N].
● The conversion result is stored in the area starting with [D].
14-46
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
SS
UL
●
●
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
●
●
Real
Integer
numbe
r
D
IX
K
U
H
SF
F
●
●
WUME-FP7CPUPGR-12
DF
●
St
rin
g
Index
modifie
r
" "
●
●
●
●