06-13-2023 04:13 PM
Hello,
Is there a way to enable/disable the visibility of the Stop button in Automatic mode by code?
I want to block the possibility for the operator to press the Stop button in some conditions
06-14-2023 08:09 AM - edited 06-14-2023 08:37 AM
This should not be a problem - You simply have to modify the StopVisible bit of your Station.Extension...
You can take a look into the OnModeChanged method of the Station.Extension,
there you can see how the visibility of the buttons is manged, when you change the mode...
The code of the OnModeChanged method is generated according to your mode settings in CpStudio :
But remember that this only affects the software button - if you have an EasyPanel, for example, then you can still press Stop there...