Conversion From Hexadecimal Bin To Ascii (Asc(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.11.13

Conversion from hexadecimal BIN to ASCII (ASC(P))

ASC(P)
ASC
ASCP
Setting
Data
S
Function
(1) Converts the BIN 16-bit data stored in the area starting from the device designated by
ASCII by treating the BIN data in hexadecimal representation. Then, stores the converted
data into the area starting from the device designated by
specified by n.
b15
S
4th digit 3rd digit 2nd digit 1st digit
S
+1
4th digit 3rd digit 2nd digit 1st digit
4th digit 3rd digit 2nd digit 1st digit
b15
S
1
S
+1
5
S
+2
F
S
+3
A
Command
Command
: Head number of the devices where BIN data to be converted to a character string is stored (BIN 16 bits)
S
: Head number of the devices where the converted character string will be stored (character string)
D
n
: Number of characters to be stored (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
––
––
D
n
b12
b11
b8
b7
b4
b3
BIN data
b12
b11
b8
b7
b4
b3
2
3
4
H
H
H
H
6
7
8
H
H
H
H
E
D
C
H
H
H
H
9
B
6
H
H
H
H
Basic
ASC
ASCP
J
\
U
\G
Bit
Word
b0
b15
D
ASCII code for the 2nd digit
D
ASCII code for the 4th digit
+1
ASCII code for the 2nd digit
+2
D
ASCII code for the 4th digit
+3
D
ASCII code for the 2nd digit
b15
b0
D
33
(3)
H
D
+1
31
(1)
H
+2
D
37
(7)
H
+3
D
35
(5)
H
D
+4
44
(D)
H
D
+5
46
(F)
H
D
+6
42
(B)
H
D
+7
00
ASC(P)
High
Process
Redundant Universal
performance
n
S
D
n
S
D
Constants
Zn
K, H
––
––
, for the number of characters
D
b8b7
b0
ASCII code for the 1st digit
ASCII code for the 3rd digit
ASCII code for the 1st digit
Number of
ASCII code for the 3rd digit
characters
designated by n
ASCII code for the 1st digit
b8b7
b0
34
(4)
H
32
(2)
H
38
(8)
H
When "15" is
36
(6)
H
set for n
43
(C)
H
45
(E)
H
36
(6)
H
39
(9)
H
H
1
2
LCPU
3
4
6
6
Other
––
7
––
––
8
to
S
7-227

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents