7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
541
7
■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).
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:
• 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".
• 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
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
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.
+1
ASCII code for the 8th digitASCII code for the 7th digit
ASCII code for the 6th digitASCII code for the 5th digit
b15 b8b7 b0
+2
ASCII code for the 4th digitASCII code for the 3rd digit
ASCII code for the 2nd digit
ASCII code for the 1st digit
+3
Upper 16 bits Lower 16 bits
BIN 32 bits
+1
b31 b16 b15 b0
S
D
S
S
S
D
35
H
(5)43
H
(C)
42
H
(B)38
H
(8)
b8b7 b0
30
H
(0)37
H
(7)
45
H
(E)31
H
(1)
5CB8H 07E1H
+1
b31 b15 b0
D
b15
D
b16
+1
+2
+3
S
S
S
S