Skip to main content

FB_Init

code. You can evaluate the return value.methods explicitly and provide additional code there with the standard initializationThe return value is not evaluated. For a specific influence, you can also declare theFB_Init is always available implicitly and it is used primarily for initialization.

  • Return type: BOOL

Parameters

NameTypeCommentKind
bInitRetainsBOOLTRUE: the retain variables are initialized (reset warm / reset cold)input
bInCopyCodeBOOLTRUE: the instance will be copied to the copy code afterward (online change)input
collectionCNM_CollectionInterfaces.ICollection-input

Code

Declaration

METHOD FB_Init: BOOL
VAR_INPUT
bInitRetains: BOOL; // TRUE: the retain variables are initialized (reset warm / reset cold)
bInCopyCode: BOOL; // TRUE: the instance will be copied to the copy code afterward (online change)
collection : CNM_CollectionInterfaces.ICollection;
END_VAR

Implementation

usedCollection := collection;