Hello Everybody, my first post here.
I can't find my way to add an on screen command (it's a touch panel) to shut down the HMI runtime just like "Alt+F4" would do.
That's because it happens that there's no keyboard connected.
Thanks for you help.
Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Marcel,
thanks for your reply, but I still can't make it:
I added the library Componentmanager, then added a pushbutton with the properties shown in the attached image, compiled, downloaded into target, the button is there but on click nothing happens.
Any suggestion?
Thanks, Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
another option would be to use
close only the HMI screen ( not the HMI itself):
"C:\Program Files\3S CODESYS\GatewayPLC\VisualClientController.exe" --application=Application --flags=2
open it again:
"C:\Program Files\3S CODESYS\GatewayPLC\VisualClientController.exe" --application=Application --flags=1
guess better then the hard way
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Everybody, my first post here.
I can't find my way to add an on screen command (it's a touch panel) to shut down the HMI runtime just like "Alt+F4" would do.
That's because it happens that there's no keyboard connected.
Thanks for you help.
Marco
Hello Marco,
you can add the library ComponentManager and then use CMShutdown(0).
Best regards,
Marcel
Hello Marcel,
thanks for your reply, but I still can't make it:
I added the library Componentmanager, then added a pushbutton with the properties shown in the attached image, compiled, downloaded into target, the button is there but on click nothing happens.
Any suggestion?
Thanks, Marco
Hello Marco,
no, that should work.
Please report the issue in the store using the "my question" feature (https://store.codesys.com/).
Best regards,
Marcel
^^^
they say it's a well known issue.
The suggestion is to use the taskkill function.
I've decided to write a simple file:
and execute it by means of my on screen command:
And all went good...
Hope this helps,
Marco
Hi,
another option would be to use
close only the HMI screen ( not the HMI itself):
"C:\Program Files\3S CODESYS\GatewayPLC\VisualClientController.exe" --application=Application --flags=2
open it again:
"C:\Program Files\3S CODESYS\GatewayPLC\VisualClientController.exe" --application=Application --flags=1
guess better then the hard way
BR
Edwin
My bad, I tested it with a HMI, which was not installed as a service and there it worked fine...
Best regards,
Marcel