Appendix – Pilz ST SB DP S, SW paket PROFIBUS-DP User Manual
Page 39

PROFIBUS-DP-Slave Operating Manual
7-3
Appendix
OB 001
Comment: Segment 00
************************************************************************************
*
Sample program *********************************************************
************************************************************************************
*
*
*
2 Words input data
*
*
1 Word output data
*
*
1 Word diagnostic data
*
*
*
* Key to
inputs / outputs:
*
*
E 02.00
triggers a module reset
*
*
E 02.01
Slave goes to a static diagnostic condition
*
*
*
* Cyclical data transfer
:
*
* PSS -> Master(output data):
*
*
AW 0.0 -> DW 0128 -> Master
*
*
*
* PSS <- Master(input data):
*
*
EW 1.0 <- DW 0000 <- Master
*
*
EW 1.16 <- DW 0001 <- Master
*
*
*
* If an error occurs in the FS Section of the PSS (M113.01 = 1),
*
* the slave module will go to a static diagnostic condition.
*
* In the example, the value KH FFFF is sent to the Master as diagnostic *
* data.
*
*************************************************************************************
:L
E 02.00
:SPB = reset
:L
E 02.01
:SPB = stat.diag
:L
KF 000000
:T
MB 000.00
:SPA = start
reset:
Segment 01
:L
KB 002
:T
MB 000.00
:SPA = start