Reboot of Windows CE 06 over CODESYS CODE

Slava
2018-08-22
2022-05-30
  • Slava - 2018-08-22

    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

     
  • necati - 2022-05-30

    I also need to reboot windows via Codesys. Does anybody tried this before?

     

Log in to post a comment.