7
PROGRAMMING
7.4.1 READ services (Class1_SERVICE, Class2_SERVICE)
This section explains the request and response formats of the READ services
(Class1_SERVICE, Class2_SERVICE).
(1) Request format
Offset Address
+ 0 (+ 0
)
H
+ 1 (+ 1
)
H
+ 2 (+ 2
)
H
+ 3 (+ 3
)
H
+ 4 (+ 4
)
H
+ 5 (+ 5
) to +127 (+7F
)
H
H
7
- 17
7.4 Program Example for Acyclic Communication with DP-Slaves
7.4.1 READ services (Class1_SERVICE, Class2_SERVICE)
Table7.15 Request Format
Set a request code.
(1) In READ service (Class1_SERVICE)
Set value: 1400
H
(2) In READ service (Class2_SERVICE)
Set value: 1410
H
(1) In READ service (Class1_SERVICE)
b15
0
1) Set the FDL address of the target DP-Slave.
Set value: 00
to 7D
(0 to 125)
H
H
(2) In READ service (Class2_SERVICE)
b15
2)
1) Set the FDL address of the target DP-Slave.
Set value: 00
to 7D
(0 to 125)
H
H
2) Set CommRef No. contained in the response format of the INITIATE service.
Set value: 00
to 7E
(0 to 126) (0 to 126)
H
H
Set the length of the data to read. (Unit: byte)
Set value: 1 to 240
Set the slot No. to read.
Set value: 0 to 254
Set the index to read.
Set value: 0 to 255
Empty area (Write 0000
.)
H
Set value: Fixed to 0000
H
Description/Set Value
b8
b7
1)
b8
b7
1)
b0
b0