L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 993
Advertising
L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
991
Syntax:
{attribute 'attribute call_after_init’}
Example:
With the following definition:
{attribute 'call_after_init'}
FUNCTION_BLOCK FB
... <functionblock definition>
{attribute 'call_after_init'}
METHOD FB_AfterInit
... <method definition>
... a declaration like this:
inst : FB := (in1 := 99);
... will result in the following order of code processing:
inst.FB_Init();
inst.in1 := 99;
inst.FB_AfterInit();
So in FB_Afterinit you can react on the user defined initialization.
Advertising