beautypg.com

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

Page 212

background image

L-force | PLC Designer

Visualization

210

DMS 4.1 EN 03/2011 TD29

Program PLC_PRG:

PROGRAM PLC_PRG
VAR_INPUT
stInfo : STRING;
END_VAR
VAR
inst : POU;
bFirst : BOOL := TRUE;
END_VAR

IF bFirst THEN
bFirst := FALSE;
VisuElems.Visu_Globals.g_VisuEventManager.SetKeyEventHandler(inst);
END_IF

This allows to get notification when a key event is released.

Function block POU:

FUNCTION_BLOCK POU IMPLEMENTS VisuElems.IKeyEventHandler
(no further declarations, no implementation code)