Mitsubishi Electric MELSEC IQ-R series Reference Manual page 150

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

Advertisement

Data stored in response data
■Label points
The same data as request data are stored.
■Label data
The data of read label for the specified number of label points is stored.
Spare
Read data length
Data type ID
data
Label data (1 point)
The following items are stored for each label.
• Data type ID: The data type of label name is stored with the defined ID. (Page 132 Data type ID)
• Read data length: Specify the read data size in byte units. (Page 133 Data length, unit specification)
• Read data: The value of read label is stored in the format of "Data type ID". (Page 135 Read data, write data)
• Spare data: The 2-byte of system data for data communication in ASCII code, and the 1-byte
communication in binary code is stored.
*1 For C24, the additional code may be added. (Page 35 Additional code (10H))
Communication example
Read data from three labels.
• Lbl1 (bit type) = 1 (ON)
• Lbl2.Lbl[2] (word type array element of structure label) = 0031H
• Lbl3 (word type) =0001H
The notation of each label when using abbreviation specification (Lbl2 = %1) is as follows.
(1) Lbl2 (abbreviation specification)
Item
Label name
UTF-16
ASCII code
Binary code
(2) Lbl1
Item
Label name
UTF-16
ASCII code
Binary code
(3) Lbl2.Lbl[2]
Item
Abbreviated notation
UTF-16
ASCII code
Binary code
(4) Lbl3
Item
Label name
UTF-16
ASCII code
Binary code
9 LABEL ACCESS
148
9.3 Random Read and Write
Read data
Value of code corresponds to character
L
b
l
004C
0062
006C
30303443
30303632
30303643
4C00
6200
6C00
Value of code corresponds to character
L
b
l
004C
0062
006C
30303443
30303632
30303643
4C00
6200
6C00
Value of code corresponds to character
%
1
.
0025
0031
002E
30303235
30303331
30303245
2500
3100
2E00
Value of code corresponds to character
L
b
l
004C
0062
006C
30303443
30303632
30303643
4C00
6200
6C00
2
0032
30303332
3200
1
0031
30303331
3100
L
b
l
004C
0062
006C
30303443
30303632
30303643
4C00
6200
6C00
3
0033
30303333
3300
*1
of system data for data
[
2
]
005B
0032
005D
30303542
30303332
30303544
5B00
3200
5D00

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents