Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
IFGlobalVariables.resetFromVISUTHEN
  GlobalVariables.power_led :=FALSE;
  _(pszComand:='sudo reboot' , pResult:=ADR(Result));END_IFIFGlobalVariables.poweroffFromVISUTHEN
  GlobalVariables.power_led :=FALSE;
  _(pszComand:='sudo poweroff' , pResult:=ADR(Result));END_IF
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
How can I implement a button to restart and shutdown raspberry pi on the web visu ?
Thаnks