[r8]: / Execute Command Example / Device / Plc Logic / Application / PLC_PRG / svnobj  Maximize  Restore  History

Download this file

6 lines (6 with data), 2.7 kB

Gx_l 
!0…jüo¿Ððâ¼¹oy»ÂSystem.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument	L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagText IF xExecute THENp	// Note: don't forget to enable this in the cfg file!!!l	SysProcessExecuteCommand2( 	pszCommand 		:= sCommand,D								pszStdOut		:= sCommandOut,T								udiStdOutLen 	:= udiCommandOutLen,D								pResult 		:= ADR(result));&	xExecute := FALSE;END_IFInterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}PROGRAM PLC_PRGVARÎ	sCommand : STRING := 'echo "Hello World!"'; // the command to execute. Tye espeack "Hello World" next!®	sCommandOut : STRING[255]; // a buffer for the stdOut text the command prints to go to„	udiCommandOutLen : UDINT := 255; // the size of the stdOut buffer2	result : RTS_IEC_RESULT; j	xExecute : BOOL; // trigger execution of the command!END_VAR""UniqueIdGenerator#17$POULevel%L{8e575c5b-1d37-49c6-941b-5c0ec7874787}&Standard' ChildObjectGuids(8System.Collections.ArrayList),AddAttributeSubsequent*boolÐÐ-ÐÐ	E
ÐÐ
­	ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ	E
ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ- ÐÐ
­ÚÐ-!Ð"-#Ð$%-&'(Ð)*­