CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Apr 24, 2019 3:44 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Aug 22, 2018 1:17 pm 
Offline

Joined: Wed Nov 16, 2016 2:55 pm
Posts: 3
Hello together,

I try to execute reboot of Turck TX510 PLC HMI under Windows CE06 as follow:

VAR
stdout : STRING(1000) := '';
Result : RTS_IEC_RESULT;
xExecuteSysP: BOOL;
END_VAR

IF xExecuteSysP THEN
xExecuteSysP := FALSE;
SysProcess._(pszCommand:='reboot', pszStdOut:=stdout, udiStdOutLen:= SIZEOF(stdout),pResult := ADR(Result));
END_IF

Nothing happens, as REsult I get 12.

I also changed CODESYSControl.cfg as follow (not sure if that is only for Linux):

[SysProcess]
Command=AllowAll


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited