Mitsubishi Electric MELSEC-Q/L Programming Manual page 534

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

Advertisement

■DBINHA
• Converts the individual digit numbers of hexadecimal notation of the BIN 32-bit data designated by (S) into ASCII codes,
and stores the results into the area starting from the device designated by (D).
S
+1
Upper 16 bits
BIN 32-bit data
For example, if the value 03AC625EH has been designated by (S), it would be stored following (D) in the following manner:
S
+1
S
0 3 A C 6 2 5E
H
• The BIN data designated by (S) can be in the range from 0H to FFFFFFFFH.
• The operation results stored at (D) are processed as 8-digit hexadecimal values. For this reason, zeros which are
significant digits on the left side of the value are processed as "0". (No zero suppression is conducted.)
• The data to be stored at the device designated by (D)+2 differs depending on the ON/OFF status of SM701 (number of
characters to output select signal).
• When SM701 is OFF: Stores "0"
• When SM701 is ON: Does not change
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
4101
The range of the device specified in (D) exceeds the range of the
corresponding device.
7 APPLICATION INSTRUCTIONS
532
7.11 Character String Processing Instructions
D
D
S
D
Lower 16 bits
D
D
b15
D
33
(3)
H
D
+1
43
(C)
H
D
+2
32
(2)
H
D
+3
45
(E)
H
D
+4
b15
b8b7
ASCII code for the 7th digit
ASCII code for the 8th digit
ASCII code for the 5th digit
ASCII code for the 6th digit
+1
ASCII code for the 3rd digit
ASCII code for the 4th digit
+2
ASCII code for the 1st digit
ASCII code for the 2nd digit
+3
+4
0
b8 b7
b0
30
(0)
H
41
(A)
H
36
(6)
H
35
(5)
H
00
H
Q00J/
Q00/
Q01
b0
(Only when
SM701 is OFF)
QnH
QnPH
QnPRH
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents