IoDrvSercos3_Diag (FB)

FUNCTION_BLOCK IoDrvSercos3_Diag EXTENDS IoDrvSercos3 IMPLEMENTS IBus, IStack

InOut:

Scope

Name

Type

Comment

Inherited from

Input

xRestart

BOOL

A rising edge at this input will restart the master. All configuration data will be reloaded.

IoDrvSercos3

wRequiredTopology

SERCOS_TOPOLOGY

The required topology (Ring, L1, L2 etc)

IoDrvSercos3

xRecoverRingTopology

BOOL

If a ring topology is required and a ring break was detected then it is possible to recover the ring topology with this input.

IoDrvSercos3

Output

xConfigFinished

BOOL

If the output is TRUE, the transmission of all configuration data has been executed properly. The communication on the bus is in process.

IoDrvSercos3

wState

WORD

The parameter wState has a value between 0 and 100 telling about the state of the initialization phase; the greater the value, the more the initialization process is advanced.

IoDrvSercos3

wTopology

SERCOS_TOPOLOGY

The current topology of the Sercos III bus.

IoDrvSercos3

xTopologyError

BOOL

IF wRequiredTopologiy is not equal to wTopology there is an error.

IoDrvSercos3

xBusError

BOOL

If the bus is not working then this output is set to true

IoDrvSercos3