Mitsubishi Electric MELSEC IQ-R series Reference Manual page 147

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

Communication example (Byte specification)
For one-dimensional array type label 'Lbl', write 5-word data from Lbl [2].
■Data communication in ASCII code
(Request data)
Subcommand
1
4
1
A
0
0
0
0
31
34
31
41
30
30
30
30
H
H
H
H
H
H
H
H
Array data length
0
0
0
A
0
0
30
30
30
41
30
30
H
H
H
H
H
H
In the figure (1), set the value of "ASCII code" indicated in the following table.
(1) Lbl[2]
Item
Value of code corresponds to character
Label name
L
UTF-16
004C
ASCII code
30303443
■Data communication in binary code
(Request data)
Array
Abbreviation
Subcommand
points
specification
1A
14
00
00
01
00
00
00
H
H
H
H
H
H
H
H
Communication example (Abbreviate with structure type array)
Write the following data to three-dimensional structure label 'Typ1', which has the array type element.
• 8 bytes from Typ1.led[5]
• 4 bytes from Typ1.No[7]
The notation of each label when using abbreviation specification (Typ1= %1) is as follows.
(1)Typ1
Item
Value of code corresponds to character
Label name
T
UTF-16
0054
ASCII code
30303534
Binary code
5400
(2)Typ1.led[5]
Item
Value of code corresponds to character
Abbreviated notation
%
UTF-16
0025
ASCII code
30303235
Binary code
2500
Array points
Abbreviation specification
0
0
0
1
0
0
0
0
30
30
30
31
30
30
30
30
H
H
H
H
H
H
H
H
Write data
4
4
0
0
6
1
0
0
34
34
30
30
36
31
30
30
H
H
H
H
H
H
H
H
b
l
[
0062
006C
005B
30303632
30303643
30303542
Label name
Label name
length
L
b
l
06
00
4C
00
62
00
6C
00
H
H
H
H
H
H
H
H
(Fixed value)
Unit
Array data
specification
length
01
00
0A
00
44
00
61
H
H
H
H
H
H
H
y
p
1
0079
0070
0031
30303739
30303730
30303331
7900
7000
3100
1
.
l
0031
002E
006C
30303331
30303245
30303643
3100
2E00
6C00
Label name length
Label name
Unit specification (Fixed value)
0
0
0
6
(1)
30
30
30
36
30
H
H
H
H
7
4
0
0
6
1
0
0
37
34
30
30
36
31
30
30
H
H
H
H
H
H
H
H
2
]
0032
005D
30303332
30303544
[
2
]
5B
00
32
00
5D
00
H
H
H
H
H
H
Write data
00
74
00
61
00
31
00
H
H
H
H
H
H
H
e
d
[
0065
0064
005B
30303635
30303634
30303542
6500
6400
5B00
0
1
0
0
31
30
30
H
H
H
H
3
1
33
31
H
H
5
]
0035
005D
30303335
30303544
3500
5D00
9 LABEL ACCESS
9.2 Batch Read and Write
9
145

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents