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_EL3783_InitPars;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stInitPars | Function block-specific structure with initialization parameters |
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. |