EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 150

Mitsubishi Electric MELSEC iQ-R Series
498 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
148
9 LABEL ACCESS
9.3 Random Read and Write
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.
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
*1
of system data for data
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)
(2) Lbl1
(3) Lbl2.Lbl[2]
(4) Lbl3
Item Value of code corresponds to character
Label name L b l 2
UTF-16 004C 0062 006C 0032
ASCII code 30303443 30303632 30303643 30303332
Binary code 4C00 6200 6C00 3200
Item Value of code corresponds to character
Label name L b l 1
UTF-16 004C 0062 006C 0031
ASCII code 30303443 30303632 30303643 30303331
Binary code 4C00 6200 6C00 3100
Item Value of code corresponds to character
Abbreviated notation % 1 . L b l [ 2 ]
UTF-16 0025 0031 002E 004C 0062 006C 005B 0032 005D
ASCII code 30303235 30303331 30303245 30303443 30303632 30303643 30303542 30303332 30303544
Binary code 2500 3100 2E00 4C00 6200 6C00 5B00 3200 5D00
Item Value of code corresponds to character
Label name L b l 3
UTF-16 004C 0062 006C 0033
ASCII code 30303443 30303632 30303643 30303333
Binary code 4C00 6200 6C00 3300
Spare
data
Read data length Read data
Data type ID
Label data (1 point)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals