Converting Hex Code Data To Ascii - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

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
$

Advertisement

Table of Contents
loading

Table of Contents