Break (Brk); Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Break (BRK)

EXIT;
Description:
Arithmetic Status Flags:
Fault Conditions:
Condition
Prescan
Rung-condition-in is false
Rung-condition-in is true
Postscan
The BRK instruction interrupts the execution of a routine that was called by a
FOR instruction.
Operands:

Relay Ladder

None

Structured Text

Use the EXIT statement in a loop construct. See
structured text constructs.
When enabled, the BRK instruction exits the routine and returns the controller
to the instruction that follows the FOR.
If there are nested FOR instructions, a BRK instruction returns control to the
innermost FOR instruction.
Not affected
None
Execution:
Relay Ladder Action
The rung-condition-out is set to false.
The rung-condition-out is set to false.
The rung-condition-out is set to true.
Execution returns to the instruction that follows the calling FOR instruction.
The rung-condition-out is set to false.
Example:
When enabled, the BRK instruction stops executing the current routine and
returns to the instruction that follows the calling FOR instruction.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
For/Break Instructions (FOR, FOR...DO, BRK, EXIT, RET)
Appendix B
Chapter 12
for information on
489

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents