ConnectorFlagController.Init (METH)

METHOD Init

Initialisation method. This FB saves the state of the connector. Only when the state changes, the runtime functions are called. Saves the given varaibles, instead of passing them always to the methods/properties (demo, diagAvailable, state). If you want to force definilty set the next calls to DemolicenseActive, DiagnosticAvaiable and State (buffering “for set on change” reseted), call init again.

InOut:

Scope

Name

Type

Comment

Input

pConnector

POINTER TO IoConfigConnector

The connector which ConnectorFlags should be controlled.

uiNCount

DINT

If the slaves should be set, the list counter needs to be known.

xSetChildren

BOOL

Should the child connectors ConnectorFlags also be controlled?