ETCSlave_Diag (FB)

FUNCTION_BLOCK ETCSlave_Diag EXTENDS ETCSlave IMPLEMENTS DED.IDevice2

Implicit extended Instance of Slave

Extended instance of ETCSlave with device diagnosis functions

InOut:

Scope

Name

Type

Comment

Inherited from

Input

xSetOperational

BOOL

Rising edge: An attempt is made to switch to the ETC_SLAVE_OPERATIONAL mode.

ETCSlaveStack

Output

wState

ETC_SLAVE_STATE

Current state of the slave:

0: ETC_SLAVE_BOOT

1: ETC_SLAVE_Init

2: ETC_SLAVE_PREOPERATIONAL

4: ETC_SLAVE_SAVEOPERATIONAL

8: ETC_SLAVE_OPERATIONAL

Configuration was successfully completed.

If errors occur during the configuration, the slave can fall back into an earlier state.

ETCSlaveStack

Properties:

Methods:

Structure: