FB_Init

FB_Init 1:

Initializes the state of the persistent data handler when the instance is created.

Syntax

METHOD FB_Init : BOOL
VAR_INPUT
  bInitRetains : BOOL;
  bInCopyCode  : BOOL;
END_VAR

FB_Init 2: Inputs

Name

Type

Description

bInitRetains

BOOL

TRUE if retain variables are initialized during a warm or cold start.

bInCopyCode

BOOL

TRUE if the instance is included in the copy code after the call.