Init

The Init method is usually not required in a Power Monitoring application. It offers an alternative to function block initialization, which enables encapsulation of the function block. The method FB_init or the attribute 'call_after_init' must be used for this (see TwinCAT 3 PLC > Programming Reference).

Syntax

METHOD Init : BOOL
VAR_INPUT
    stInitPars  : ST_PMA_Scaling_InitPars;
END_VAR

Init 1: Inputs

Name

Type

Description

stInitPars

ST_PMA_Scaling_InitPars

Function block-specific structure with initialization parameters

Init 2: Return value

Name

Type

Description

Init

BOOL

Indicates whether the method was executed successfully. Further information is provided in the Event interface of the function block.