Converting HEX code data to ASCII
ASCI(P)
These instructions convert the (n) characters (digits) within the hexadecimal code data specified by (s) to ASCII, and store the
converted data in the device specified by (d) and later.
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device number storing hexadecimal code to be converted
(d)
Head device number storing converted ASCII code
(n)
Number of characters (digits) of hexadecimal code to be
converted
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
(n)
*1 T, ST, C cannot be used.
7 APPLICATION INSTRUCTION
374
7.6 Character string operation instruction
(d)
(n)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
*1
Structured text
ENO:=ASCI(EN,s,n,d);
ENO:=ASCIP(EN,s,n,d);
Range
1 to 32767
Double word Indirect
U\G
Z
LC
LZ
Data type
Data type (label)
16-bit signed binary
ANY16
Character string
Character string
16-bit unsigned binary
ANY16
Constant
specification
K, H
E
Others
$