Skip to main content

setReferences

Short Summary

This method distributes the global control signals to the node tree. It is called implicitly by TwinCat after all FB_Inits are done (after a Download).

Attention:: it is not neccesary called after an onlne change!

Parameters

none

Code

Declaration

{attribute 'call_after_global_init_slot' := '10'}
METHOD setReferences
VAR_INPUT
END_VAR

Implementation

IF THIS^.isObjectValid(THIS^.root) THEN
THIS^.root.setHandlerReferences(
data := THIS^.modeControlGlobal,
messageService := THIS^.messageService
);
END_IF