User Description
This convention detects a read or write access to a global variable from the FB_INIT, FB_EXIT or FB_REINIT method of a function block.
NOTE: Do not access global variables while executing these methods.
Example
FUNCTION_BLOCK FB_TEST
VAR
END_VAR
METHOD FB_INIT: BOOL
VAR_INPUT
bInitRetains: BOOL;
bInCopyCode: BOOL;
END_VAR
GVL.g_iInitState := 3; // Global varible is accessed from FB_INIT