Converting Hexadecimal Ascii To Hexadecimal Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting hexadecimal ASCII to hexadecimal binary data

ASC2INT(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert hexadecimal ASCII data to binary data.
Ladder
(s)
(d)
(n)
FBD/LD
EN
ENO
s
d
n
■Execution condition
Instruction
ASC2INT
ASC2INTP
Setting data
■Description, range, data type
Operand
Description
(s)
Start device where the string data to be converted to binary
data
(d)
Start device for storing the converted binary data
(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:=ASC2INT(EN,s,n,d);
ENO:=ASC2INTP(EN,s,n,d);
Range
Data type
String
16-bit signed binary
0 to 16383
16-bit signed binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
6.6 Data Conversion Instructions
Data type (label)
ANYSTRING_SINGLE
*1
ANY16
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
6 BASIC INSTRUCTIONS
6
*1
463

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents