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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

For/Break <strong>Instructions</strong> (FOR, FOR...DO, BRK, EXIT, RET) 477Example:The FOR instruction repeatedly executes routine_2 and incrementsvalue_2 by 1 each time. When value_2 is > 10 or a BRK instruction isenabled, the FOR instruction no longer executes routine_2.The RET instruction returns to the calling FOR instruction. The FORinstruction either executes the subroutine again and increments theIndex value by the Step size or, if the Index value exceeds theTerminal value, the FOR instruction is complete and execution moveson to the instruction that follows the FOR instruction.calling routinesubroutinePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!