EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #601 background imageLoading...
Page #601 background image
7-227
ASC(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))
7.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))
ASC(P)
Function
(1) Converts the BIN 16-bit data stored in the area starting from the device designated by to
ASCII by treating the BIN data in hexadecimal representation. Then, stores the converted
data into the area starting from the device designated by , for the number of characters
specified by n.
: Head number of the devices where BIN data to be converted to a character string is stored (BIN 16 bits)
: Head number of the devices where the converted character string will be stored (character string)
n : Number of characters to be stored (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– ––
–– –– ––
n ––
Process
High
performance
Redundant
Universal
Basic
LCPU
Command
Command
ASC
ASCP
n
n
ASC
ASCP
S D
S D
S
D
S
D
S
D
+1
+2
+3
+6
When "15" is
set for n
1
H 2H 3H 4H
+1
+4
+5
+7
5H 6H 7H 8H
FH
EH DH
CH
AH 9H
BH
6H
BIN data
+1
+2
+3
+1
+2
+3
ASCII code for the 1st digitASCII code for the 2nd digit
ASCII code for the 3rd digitASCII code for the 4th digit
b15 b8b7 b0
ASCII code for the 1st digitASCII code for the 2nd digit
ASCII code for the 3rd digitASCII code for the 4th digit
ASCII code for the 1st digitASCII code for the 2nd digit
34H (4)33H (3)
32
H (2)31H (1)
38H (8)37H (7)
36
H (6)35H (5)
44H (D)
46
H (F)
42
H (B)
00
H
43H (C)
45
H (E)
36
H (6)
39
H (9)
4th digit 3rd digit 2nd digit 1st digit
4th digit 3rd digit 2nd digit 1st digit
4th digit 3rd digit 2nd digit 1st digit
b15 b12 b8b11 b7 b4 b0b3
S
D
S
D
D
D
b15 b12 b8b11 b7 b4 b0b3
b15 b8b7 b0
D
D
D
D
D
D
D
D
S
S
S
S
Number of
characters
designated by n

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals