12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For/Break <strong>Instructions</strong> (FOR, FOR...DO, BRK, EXIT, RET) 475Break (BRK)The BRK instruction interrupts the execution of a routine that wascalled by a FOR instruction.Operands:Relay LaddernoneEXIT;Structured TextUse the EXIT statement in a loop construct. See Appendix B forinformation on structured text constructs.Description:When enabled, the BRK instruction exits the routine and returns thecontroller to the instruction that follows the FOR.If there are nested FOR instructions, a BRK instruction returns controlto the innermost FOR instruction.Arithmetic Status Flags:Fault Conditions:not affectednoneExecution:Conditionprescanrung-condition-in is falserung-condition-in is truepostscanRelay Ladder ActionThe 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 currentroutine and returns to the instruction that follows the callingFOR instruction.Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!