L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 209

L-force | PLC Designer
Visualization
DMS 4.1 EN 03/2011 TD29
207
The application contains the following POUs:
Program PLC_PRG:
PROGRAM PLC_PRG
VAR_INPUT
i:INT; (* variable to be written by user input in visualization *)
j:REAL; (* variable to be written by user input in visualization *)
stInfo : STRING; (* information on the user input via the edit control field; string gets
composed by method VariableWritten; result is displayed in the lower rectangle of
the visualization *)
END_VAR
VAR
inst : POU;
bFirst : BOOL := TRUE;
END_VAR
IF bFirst THEN
bFirst := FALSE;
VisuElems.Visu_Globals.g_VisuEventManager.SetEditBoxEventHandler(inst); (* Call
of method VariableWritten *)
END_IF
Function block POU:
FUNCTION_BLOCK POU IMPLEMENTS VisuElems.IEditBoxInputHandler
(no further declarations, no implementation code)