beautypg.com

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

Page 37

background image

PROFIBUS-DP-Slave Operating Manual

7-1

Appendix

Example

Data block DB 050 is selected for setting the parameters. The data block
is configured in OB 020. The configuration corresponds to Example 5 in
Chapter 4. SB 230 is called up in OB 001.

OB 020 Cold start ST

:A

DB 004

;Registered hardware on standard section

:L

KH B220

;Enter the code of the module (B220)

:T

DW 0027

;on slot 7

:
:A

DB 005

;Start address for Slave module

:L

KH 0000

;Start address (Offset) is 0

:T

DW 0007

;Slave module on slot 7

:
:L

KH 0000

;Reset the used flag

:T

MB 000.00

;in OB 001

:T

MW 030.00

;

:T

MW 010.00

;

:
:A

DB 050

;Data block for setting the parameters
;(input parameter “DB” from SB 230)

:L

KH 2500

;ID-Number

:T

DW 0258

;

:
:L

KH 0004

;Length of the diagnostic data [Bytes]

:T

DW 0259

;

:
:L

KH C1C0

;Configuration data

:T

DW 0384

;

:L

KH 00C0

;

:T

DW 0385

;

:L

KF 0010

;Reserved

:T

DW 0783

;

:L

KH 00F5

;Reserved

:T

DW 0795

;

:
:L

KF 0001

;Station address [0-126]

:T

DW 0800

;