PB_SlaveActivation (STRUCT)

TYPE PB_SlaveActivation : STRUCT

InOut:

Name

Type

Comment

xEnable

BOOL

IN: If set to TRUE, the master starts to set the slave activation

byStationAddress

BYTE

IN: Station address of the slave, which should be activated or deactivated.

udiSlaveActivaion

UDINT

INOUT: Slave activation, Input for set method, Output for get methot. PB_SLAVE_ACTIVE or PB_SLAVE_INACTIVE are valid values

wOpState

WORD

OUT: If the operation state turns to state PB_Done or PB_Error, the outputs are valid

udiError

UDINT

OUT: If the operation state turns to state PB_Error, udiError shows the error code