Mitsubishi Electric MELSEC-Q/L Programming Manual page 543

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

■DHABIN
• Converts hexadecimal ASCII data stored in the area starting from the device number designated by (S) into BIN 32-bit data,
and stores it in the device number designated by (D).
b15
b8b7
ASCII code for the 7th digit
ASCII code for the 8th digit
S
+1
ASCII code for the 5th digit
ASCII code for the 6th digit
S
+2
ASCII code for the 3rd digit
ASCII code for the 4th digit
S
+3
ASCII code for the 1st digit
ASCII code for the 2nd digit
S
For example, if the ASCII code of 5CB807E1H is designated for the area starting from (S), the operation result would be
stored at (D)+1 and (D) in the following manner:
b15
b8b7
43
(C)
S
H
38
(8)
S
+1
H
+2
37
(7)
S
H
+3
31
(1)
S
H
• The ASCII data designated by (S) to (S)+3 can be in the range of from 00000000H to FFFFFFFFH.
• The ASCII codes can be in the range of "30H" to "39H" and from "41H" to "46H".
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4100
The ASCII codes specified in (S) to (S) +3 are other than "30H" to "39H" and
from "41H" to "46H".
4101
The range of the device specified in (S) exceeds the range of the
corresponding device.
b0
b31
Upper 16 bits
b0
35
(5)
H
b31
42
(B)
H
5CB8
30
(0)
H
45
(E)
H
D
+1
D
b16 b15
Lower 16 bits
BIN 32 bits
D
+1
D
b16
b15
b0
07E1
H
H
Q00J/
QnH
Q00/
Q01
7.11 Character String Processing Instructions
b0
QnPH
QnPRH
QnU
7 APPLICATION INSTRUCTIONS
LCPU
7
541

Advertisement

Table of Contents
loading

Table of Contents