AlfredoQuintero
Lifetime Supporting Member
Hello.
I need to be able to put CodesysControlService.exe (Windows) in stop mode from the Codesys PLC application "itself". I have searched in Codesys documentation and forums but cannot find any examples.
I do not need to kill CodesysControlService.exe, rather make it go into STOP mode. With the "SysProcess_ExecuteCommand()" function I have been able to start other Windows application so I was wondering whether using this function and using the string below as an argument, whether there is a switch that would set the PLC application into stop.
↓↓↓↓↓↓ argument for function (minus switch) ↓↓↓↓↓↓
"C:\Program Files\CODESYS 3.5.17.10\GatewayPLC\CODESYSControlService.exe" -(Some kind of swtich)
(note: the actual function name does not have underscore, but the "s*x" (capital 'E' instead of '*') text gets automatically replaced by "***" when publishing.)
Of course if the application needs to be restarted, the only way to do it would be through the task bar. I hope the above question does not sound too weird. Thanks for reading and if you have any hint it will be most welcome.
I need to be able to put CodesysControlService.exe (Windows) in stop mode from the Codesys PLC application "itself". I have searched in Codesys documentation and forums but cannot find any examples.
I do not need to kill CodesysControlService.exe, rather make it go into STOP mode. With the "SysProcess_ExecuteCommand()" function I have been able to start other Windows application so I was wondering whether using this function and using the string below as an argument, whether there is a switch that would set the PLC application into stop.
↓↓↓↓↓↓ argument for function (minus switch) ↓↓↓↓↓↓
"C:\Program Files\CODESYS 3.5.17.10\GatewayPLC\CODESYSControlService.exe" -(Some kind of swtich)
(note: the actual function name does not have underscore, but the "s*x" (capital 'E' instead of '*') text gets automatically replaced by "***" when publishing.)
Of course if the application needs to be restarted, the only way to do it would be through the task bar. I hope the above question does not sound too weird. Thanks for reading and if you have any hint it will be most welcome.