beautypg.com

Baumer GK473 User Manual

Page 19

background image

Manual_GK473_S7_Profibus_EN.doc 19/32

Baumer IVO GmbH & Co. KG

04.05.11

Villingen-Schwenningen,

Germany

L

#OB86_EV_CLASS

// Event class and marks

L

B#16#39

// Mark incoming event
// (B#16#38 is outgoing event)

==

I //

Identical?

SPB KOMM


GEHT: NOP 0

L

W#16#FF

//Switch on LEDs of output component group

T AW

4

CALL

"DPNRM_DG"

//

SFC13

REQ :=TRUE
LADDR :=W#16#3FE

// Diagnostic address 1022=3FEh,
// see Hardware Config Slave

RET_VAL :=MW20

// any free memory word available

RECORD :=P#DB20.DBX 0.0 BYTE 11 // Target is data block DB20,

// Start of byte 0, length 6+5=11bByte

BUSY := M1.0

// any memory bit as Busy mark
// Repeat as long as Busy

U

M

1.0

// Poll memory word bit M1.0 ab; set VKE

correspondingly
SPB

GEHT

//

Repeat

SFC13

// as long as VKE=1 (linked result)

BEA

//

end

current

block


KOMM: NOP 0

L W#16#FF00
T AW

4

CALL

"DPNRM_DG"

//

SFC13

REQ :=TRUE
LADDR :=W#16#3FE

// Diagnostic address 1022=3FEh, s. HW Config

Slave

RET_VAL:=MW20

// any free memory word available

RECORD :=P#DB20.DBX 0.0 BYTE 11 // Target is data block DB20,

// Start byte 0, length 6+5=11 byte

BUSY :=M1.0

// any memory bit for Busy mark;
// Repeat as long as Busy

U

M

1.0

// Poll memory word bit M1.0; set VKE

correspondingly
SPB

KOMM

//

Repeat

SFC13

// as long as VKE=1 (linked result)