[r2]: / trunk / linux-shell / Device / Plc Logic / Application / LinuxShell / EventCallback / svnobj  Maximize  Restore  History

Download this file

13 lines (12 with data), 3.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
pParam := pEventParam^.pParameter;
Shell.PlcShellAppend(pParam^.pszArguments, pParam^.diBlockID);
(* The interface ICmpEventCallback must be registered for an event. If this event is posted, this callback method is called.*)
METHOD EventCallback : SysTypes.RTS_IEC_RESULT
VAR_INPUT
	(*Pointer to the event parameters, see Struct EventParam*)
	pEventParam	: POINTER TO Shell.EventParam;
END_VAR
VAR
	pParam : POINTER TO Shell.EVTPARAM_PlcShellCommand;
	pszOutput : STRING(256);
	Result : SysTypes.RTS_IEC_RESULT;