Skip to main content

registerNode

Short Summary

This method is used for initialization of the nodes.

                    ┌───────────┐
│ │ parentNode.registerNode( subNode :=THIS^, modeData := THIS^.modeData )
│node.FB_init────────────────────────────┐
│ │ │
└───────────┘ │

┌───────▼────────┐
│ │ the parent node appends
│ parent node │ the subnode to its subnode array list
└────────────────┘

Parameters

NameTypeCommentKind
subNodeINodeApithe node that should be registered, usually THIS^input

Code

Declaration

METHOD registerNode
VAR_INPUT
(* the node that should be registered, usually THIS^ *)
subNode : INodeApi;
END_VAR