Omron SYSMAC CP CP1E-N@@D@-@ Manual do Utilizador Página 95

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 467
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 94
2-59
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Control Instructions
2
BREAK
BREAK
Applicable Program Areas
Flags
Function
Precautions
A BREAK(514) instruction cancels only one loop, so several BREAK(514) instructions (the number of
levels nested) are required to escape from nested loops.
BREAK(514) can be used only in a FOR-NEXT loop.
Instruction Mnemonic Variations
Function
code
Function
BREAK LOOP BREAK --- 514
Programmed in a FOR-NEXT loop to cancel the
execution of the loop for a given execution condi-
tion. The remaining instructions in the loop are
processed as NOP(000) instructions.
Symbol
BREAK
Area Step program areas Subroutines Interrupt tasks
Usage --- OK OK
Name Label Operation
Error Flag P_ER OFF
Equals Flag P_EQ OFF
Negative Flag P_N OFF
Program BREAK(514) between FOR(512) and
NEXT(513) to cancel the FOR-NEXT loop
when BREAK(514) is executed. When
BREAK(514) is executed, the rest of the
instructions up to NEXT(513) are processed as
NOP(000).
BREAK(514)
N repetitions
Condition a ON
Processed as
NOP(000).
Repetitions
forced to
end.
FOR
N
BREAK
NEXT
a
Vista de página 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 466 467

Comentários a estes Manuais

Sem comentários