Personal Data

Username:
snowman159
Joined:
2020-06-13 13:51:31

Projects

  • No projects to display.

User Activity

  • Posted a comment on discussion Runtime on CODESYS Forge

    Thank you all for the feedback. I used Edwin's suggestion and created a python script. This seems to do the trick. Kind regards

  • Posted a comment on discussion Runtime on CODESYS Forge

    I have 2 Raspberry pi boards: - pi@PLC with the codesys project - pi@raspberrypi (the other one) I already made two buttons to shutdown and restart pi@PLC without problems. Then I made a 3rd button to shutdown pi@raspberrypi with the following code: PROGRAM test VAR _xDoExecuteShell : BOOL; _Retval: DINT; _pResult : Systypes.RTS_IEC_RESULT; _sCommand : STRING; END_VAR IF _xDoExecuteShell THEN _xDoExecuteShell := FALSE; _sCommand := 'ssh pi@raspberrypi -t sudo shutdown -h -P now'; _RetVal := Sysprocess.SysProcessExecuteCommand(pszComand:=...

View All