14.10 ACHK (ASCII Data Check)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF
i ● ● ● ● ● ●
■
List of operands
Operand Description
S1 Control string (2 to 16 characters)
S2 Starting number of the area that stores an ASCII code
N Conversion method
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S1 ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ● ● ●
N
(Note 1)
● ● ● ● ● ● ● ● ●
(Note 1) To be handled as a 32-bit integer (UL), regardless of operation unit.
■
Outline of operation
● This instruction checks whether the specified ASCII code string can be converted using the
ATOB instruction.
● According to the control characters specified by [S1], this instruction checks whether the
ASCII code stored in the area specified by [S2] can be normally converted using the
conversion method specified by [N].
● If the check result is normal, the system relay SRB turns ON (1), and if abnormal, SRB turns
OFF (0).
● Specify the same value as the ATOB instruction for [S1] the control string, [S2] the beginning
of the source data, and [N] the conversion method.
14.10 ACHK (ASCII Data Check)
14-44 WUME-FP7CPUPGR-12