API Runtime - Krystian-L-Lis/Stage GitHub Wiki
#API #Runtime
Type: Function
Description:
Manages the initialization and cyclic execution of registered function blocks.
Signature: FUNCTION Runtime
Type: Interface
Description:
Interface for function blocks that require initialization upon program startup.
Type: Method
Description:
Executed once during system startup if the function block is registered.
Signature:
METHOD Execute
VAR_INPUT
nPhase: INT;
END_VAR
Type: Function Block
Description:
Allows registration of function blocks implementing the I_Init
interface.
Type: Method
Description:
Initializes the function block and registers an I_Init
interface for startup initialization.
Signature:
METHOD FB_Init : BOOL
VAR_INPUT
bInitRetains : BOOL;
bInCopyCode : BOOL;
iInit : I_Init;
END_VAR
Type: Interface
Description:
Interface for function blocks that should be executed cyclically during each control loop.
Type: Method
Description:
Executed cyclically if the function block is registered.
Signature:
METHOD Execute
VAR_INPUT
nPhase: INT;
END_VAR
Type: Function Block
Description:
Allows registration of function blocks implementing the I_Execute
interface.
Type: Method
Description:
Initializes the function block and registers an I_Execute
interface for cyclic execution.
Signature:
METHOD FB_Init : BOOL
VAR_INPUT
bInitRetains : BOOL;
bInCopyCode : BOOL;
iExecute : I_Execute;
END_VAR