Profibus DP 65/176
3 842 530 344/2014-05, MIT: ID 40,
Bosch Rexroth AG
7.9.4
“Resetting SLK” application
This example allows the SLK to be reset in the
DISCONNECTED
link state. The actual
link state here is not important. In addition, all preconnect settings and auto mode
are deleted.
No.
Command-oriented data
exchange
CMD
Data0 Data1 Data2 Data3 Data4 Data5 Data6
1
Switch SLK to
DISCON-
NECTED
state
0x06
0x00
0x03
0x00
0x01
0x00
0x01
0x02
6
Turn off SLK in auto
mode
0x06
0x00
0x03
0x00
0x02
0x00
0x01
0x00
2
Stop pretransmit
0x08
0x05
4
Finish setting pretrans-
mit parameters
0x08
0x01
3
Delete pretransmit data
0x08
0x04
5
Finish setting param-
eters for unbuffered
prefetch
0x0B
0x01
4
Delete unbuffered
prefetch
0x0B
0x04
5
Finish setting param-
eters for buffered
prefetch
0x0A
0x01
5
Delete buffered prefetch
0x0A
0x04
6
Wait until actual link state is
DISCONNECTED
7.9.5
Handling “E00” errors
This example terminates direct data exchange with the MDT. The commanded link
state DISCONNECT fails and the SLK switches to the
ERROR
state.
No.
Command-oriented data
exchange
CMD
Data0 Data1 Data2 Data3 Data4 Data5 Data6
1
Switch SLK to
DISCONNECTED
state
0x06
0x00
0x03
0x00
0x01
0x00
0x01
0x02
2
Wait until actual link state is
DISCONNECTED
or
ERROR
3
DISCONNECT unsuccessful, link state is now
ERROR
4
Switch SLK to
DISCONNECTED
state
0x06
0x00
0x03
0x00
0x01
0x00
0x01
0x02
5
Wait until actual link state is
DISCONNECTED
6
The SLK is now in the initial
DISCONNECTED
state and the application can start over
PROOF COPy 1 | 20.05.2014 | FOR INTERNAL USE ONLy
EN
GLISH