138
9 LABEL ACCESS
9.2 Batch Read and Write
Communication example (Bit specification)
For one-dimensional array type label 'Lbl', read 2-bit data from Lbl [2].
The value of the read label is as follows:
■Data communication in ASCII code
(Request data)
In the figure (1), set the value of "ASCII code" indicated in the following table.
(1) Lbl[2]
(Response data)
■Data communication in binary code
(Request data)
(Response data)
Item Value of code corresponds to character
Label name L b l [ 2 ]
UTF-16 004C 0062 006C 005B 0032 005D
ASCII code 30303443 30303632 30303643 30303542 30303332 30303544
Fixed to 0 Access target data
0000000000000010
b15 b0
0
30
H
4
34
H
1
31
H
A
41
H
30
H
30
H
30
H
36
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
1
31
H
0
30
H
0
30
H
0
30
H
0
30
H
0006
30
H
30
H
30
H
30
H
30
H
30
H
30
H
32
H
00000002(1)
Subcommand Array points
Abbreviation specification
Label name length Label name
Unit specification
Array data length
(Fixed value)
Array specification (Array one point)
30
H
30
H
30
H
32
H
0
30
H
0
30
H
0
30
H
1
31
H
0002
30
H
31
H
30
H
30
H
30
H
32
H
0100 02
Data
type ID
Unit
specification
Read
data
Array points
Array data length
Array data (Array one point)
1A
H
04
H
00
H
00
H
01
H
00
H
00
H
00
H
06
H
00
H
4C
H
00
H
62
H
00
H
6C
H
00
H
5B
H
00
H
32
H
00
H
Lbl [2
5D
H
00
H
00
H
00
H
]
02
H
00
H
(Fixed value)
Subcommand
Array
points
Abbreviation
specification
Label name
length
Unit
specification
Array data
length
Label name
Array specification (Array one point)
01
H
00
H
01
H
00
H
02
H
00
H
02
H
00
H
Data type ID
Unit
specification
Array data
length
Read
data
Array
points
Array data (Array one point)