Converting hexadecimal binary data to hexadecimal ASCII code
INT2ASC(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert 16-bit binary data to the hexadecimal ASCII code and store it in any specified range.
Ladder
(s)
(d)
(n)
FBD/LD
EN
ENO
s
d
n
■Execution condition
Instruction
INT2ASC
INT2ASCP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Start device containing the binary data to be exchanged to
a character string
(d)
Start device for storing the converted character string
(n)
Number of characters to be stored
EN
Execution condition
ENO
Execution result
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
(n)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=INT2ASC(EN,s,n,d);
ENO:=INT2ASCP(EN,s,n,d)
Range
Data type
16-bit signed binary
String
0 to 16383
16-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
Data type (label)
*1
ANY16
ANYSTRING_SINGLE
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
7
679