Baumer GK473 User Manual

Page 16

Advertising
background image

Manual_GK473_S7_Profibus_EN.doc 16/32

Baumer IVO GmbH & Co. KG

04.05.11

Villingen-Schwenningen,

Germany


U

E

0.3

// Reset key operated? (at input module group ID 0)

SPBN NOCL

// clear outputs ID 4 and 5 of OB82

L W#16#0
T AW

4

NOCL NOP 0

CALL SFC

14

// Read input data to DB10

LADDR :=W#16#14

// E/A range of the gateways starts with 20d=14h

RET_VAL:=MW10

// Status and error messages after memory word 10

RECORD :=P#DB10.DBX 0.0 BYTE 16 // Target is data block DB10, start byte 0,

// Length 16 bytes

CALL SFC

15

// Output of output data of DB11

LADDR :=W#16#14

// E/A range of the gateways starts with 20d=14h

RECORD :=P#DB11.DBX 0.0 BYTE 16 // Source is data block DB11,

// Start byte 0, length 16 bytes

RET_VAL:=MW11

// Status- and error messages after memory word 11


L

MD

1

// Visualized by LEDs of
// output module group ID 6 and 7

+

L#1

// add Long 1 to AKKU1 (increment)

T

MD

1

// Double memory word 1

T

AW

6

// Output module group here on IDs 6...7

NOP 0

Advertising