Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 682

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• Converts the 16-bit binary data in the device number specified by (s) and later to hexadecimal ASCII, and stores the
converted data by the number of characters in the device specified by (n) in the device number specified by (d) and later.
b15
∙∙∙
b12
b11
(s)
4th digit
3rd digit
(s)+1
4th digit
3rd digit
• Setting the number of bytes by (n) automatically determines the range of binary data in the device specified by (s) and the
range of the device specified by (d) for storing the character string data.
• Processing is performed normally even if the device range in which the binary data to be converted and the device range
for storing the converted binary data are overlapping.
b15
∙∙∙
b12
b11
∙∙∙
D11
4H
3H
D12
8H
7H
D13
• If the number of characters in the device specified by (n) is an odd number, 00H is automatically stored in the upper 8 bits
of the last device number among device numbers for storing the converted character string data.
b15
∙∙∙
b12
b11
∙∙∙
(s)
1H
2H
(s)+1
5H
6H
FH
EH
(s)+2
(s)+3
AH
9H
(1) 00H is automatically stored.
• If the number of characters in the device specified by (n) is 0, no processing is performed.
Operation error
Error code
Description
(SD0)
3405H
An out-of-range value is set to (n).
• The specified number of characters is not between 0 and 16383.
7 APPLICATION INSTRUCTIONS
680
7.8 String Processing Instructions
∙∙∙
b8
b7
∙∙∙
b4
b3
∙∙∙
2nd digit
1st digit
2nd digit
1st digit
BIN16
b8
b7
∙∙∙
b4
b3
∙∙∙
b0
2H
1H
6H
5H
AH
9H
b8
b7
∙∙∙
b4
b3
∙∙∙
b0
3H
4H
7H
8H
DH
CH
BH
6H
b0
b15
(d)
ASCII code (2nd digit)
(d)+1
ASCII code (4th digit)
ASCII code (2nd digit)
(d)+2
ASCII code (4th digit)
(d)+3
b15
∙∙∙
b8
b7
D10
32H (2)
D11
34H (4)
D12
36H (6)
D13
38H (8)
D14
41H (A)
b15
∙∙∙
b8
(d)
33H (3)
(d)+1
31H (1)
(d)+2
37H (7)
(d)+3
35H (5)
(d)+4
44H (D)
46H (F)
(d)+5
42H (B)
(d)+6
(d)+7
00H
(1)
∙∙∙
b8
b7
∙∙∙
ASCII code (1st digit)
ASCII code (3rd digit)
ASCII code (1st digit)
ASCII code (3rd digit)
∙∙∙
b0
31H (1)
33H (3)
35H (5)
37H (7)
39H (9)
b7
∙∙∙
b0
34H (4)
32H (2)
38H (8)
36H (6)
43H (C)
45H (E)
36H (6)
39H (9)
b0
Number of characters
specified by (n)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents