Issue
At times it is necessary to programmatically disable a program from another program
Product Line
EcoStruxure Building Operation
Environment
- EcoStruxure Building Operation Workstation
- EcoStruxure Building Operation Server (ES/ASP/ASB)
Cause
A program will not just stop another program without some additional steps. In Continuum there was an ability to just name another program stop it.
Resolution
A program can stop itself, however, here is a way for one program to stop another program. The user can declare an input variable in a program, check it and stop the program, based on the value of that variable. That input variable would be set from outside the program.
Example: Prog1 stops Prog2
========================
‘Prog1
Numeric Output OutStopProg ‘bound to the input variable InStopProg of prog2
‘Stop program Prog2
OutStopProg = true ‘this statement sets the input variable InStopProg of Prog2 to true
========================
‘Prog2
Numeric Input InStopProg ‘bound to the OutStopProg variable of Prog1
If InStopProg = true then Stop ‘this statement stops prog2 if InStopProg is true