Festo Кабели и принадлежности User Manual
Page 105
A. Technical appendix
A−17
Festo P.BE−SPC200−COM−CANDN−EN en 0511a
Read number of the selected NC program
Command Message, WRC = 22
d
Byte
Function
Contents
Byte 0
Control byte
LOAD = 1 (see section 5.2.3)
Byte 1
Subindex
1: Program Task A
2: Program Task B
Byte 2
Command Message type
22
d
Byte 3
Response Message type
0 (no update permitted)
Byte 4
Cmd. Data 1
Not relevant
Byte 5
Cmd. Data 2
Byte 6
Cmd. Data 3
Byte 7
Cmd. Data 4
Response Message
Byte
Function
Contents
Byte 0
Status byte
LOAD COMPLETED = 1 (see section 5.2.3)
Byte 1
*)
Byte 2
Fault code
See fault treatment in section 6.5
Byte 3
RMT
Copy from byte 2 of the Command Message
Byte 4
Resp. Data 1
0...99 Program number
**)
Byte 5
Resp. Data 2
0
Byte 6
Resp. Data 3
*)
Byte 7
Resp. Data 4
*)
Not relevant
**)
In the event of a fault: extended fault code (see section 6.5)