Mitsubishi Electric MELSEC IQ-R series Reference Manual page 142

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

Advertisement

Communication example (Abbreviate with structure type array)
Read the following data from the structure label 'Typ1', which has the array type element.
• 8 bytes from Typ1.led[2]
• 4 bytes from Typ1.No[1]
The notation of each label when using abbreviation specification (Typ1= %1) is as follows.
(1)Typ1
Item
Label name
UTF-16
ASCII code
Binary code
(2)Typ1.led[2]
Item
Abbreviated notation
UTF-16
ASCII code
Binary code
(3)Typ1.No[1]
Item
Abbreviated notation
UTF-16
ASCII code
Binary code
■Data communication in ASCII code
(Request data)
Subcommand
0
4
1
A
0
0
30
34
31
41
30
30
H
H
H
H
H
Label name length
0
0
0
9
30
30
30
39
H
H
H
Label name length
0
0
0
8
30
30
30
38
H
H
H
In the figure (1) to (3), set the value of "ASCII code" indicated in the table of "Value of code corresponds to character" of each
label.
(Response data)
9 LABEL ACCESS
140
9.2 Batch Read and Write
Value of code corresponds to character
T
y
p
0054
0079
0070
30303534
30303739
30303730
5400
7900
7000
Value of code corresponds to character
%
1
.
0025
0031
002E
30303235
30303331
30303245
2500
3100
2E00
Value of code corresponds to character
%
1
.
0025
0031
002E
30303235
30303331
30303245
2500
3100
2E00
Array points
Number of abbreviated points
0
0
0
0
0
2
0
30
30
30
30
30
32
30
H
H
H
H
H
H
H
H
Label name
(2)
H
Label name
(3)
H
1
0031
30303331
3100
l
e
006C
0065
30303643
30303635
6C00
6500
N
o
004E
006F
30303445
30303646
4E00
6F00
Label name length
0
0
1
0
0
0
4
30
30
31
30
30
30
34
H
H
H
H
H
H
H
Abbreviation specification
Unit specification (Fixed value) Array data length
0
1
0
30
31
30
H
H
Unit specification (Fixed value) Array data length
0
1
0
30
31
30
H
H
d
[
2
0064
005B
0032
30303634
30303542
30303332
6400
5B00
3200
[
1
]
005B
0031
005D
30303542
30303331
30303544
5B00
3100
5D00
Label name
(1)
0
0
0
0
8
30
30
30
30
38
H
H
H
H
H
H
0
0
0
0
4
30
30
30
30
34
H
H
H
H
H
H
]
005D
30303544
5D00

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents