Is there a way to stop Code Execution in Control Builder based in an Option flag? Like EN terminal in some functio
Like EN terminal in some function block. Perhaps a Header Function Block?
Answers
Its called an EN terminal. Hard to believe I know. ;)
When you're inserting blocks its on the right click menu. You can also modify the block to enable the EN terminal (again, right click menu ). I agree its not obvious, but once you've found it, its quite easy.
In Structured Text you can also use the "Return" statement to end code blocks early. Be careful when doing this and it can have different effects depending on when its called and whether its a Control Module or POU. Control Modules do not execute the Code Blocks in the order you might expect because of code sorting - only POU's execute Left to Right. See the on-line help file for more info.
When you're inserting blocks its on the right click menu. You can also modify the block to enable the EN terminal (again, right click menu ). I agree its not obvious, but once you've found it, its quite easy.
In Structured Text you can also use the "Return" statement to end code blocks early. Be careful when doing this and it can have different effects depending on when its called and whether its a Control Module or POU. Control Modules do not execute the Code Blocks in the order you might expect because of code sorting - only POU's execute Left to Right. See the on-line help file for more info.
Add new comment