Rockwell-automation 1761 MicroLogix 1000 Programmable Controllers Manual do Utilizador Página 182

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 181
Preface
MicroLogix 1000 Programmable Controllers User Manual
10–4
Jump to Subroutine (JSR), Subroutine (SBR), and
Return (RET)
The JSR, SBR, and RET instructions are used to direct the controller to execute a
separate subroutine file within the ladder program and return to the instruction
following the JSR instruction.
Note If
you use the SBR instruction, the SBR instruction must be the first instruction on
the first rung in the pr
ogram file that contains the subr
outine.
Use a subroutine to store recurring sections of program logic that must be executed
from several points within your application program. A subroutine saves memory
because you program it only once.
Update critical I/O within subroutines using immediate input and/or output
instructions (IIM, IOM), especially if your application calls for nested or relatively
long subroutines. Otherwise, the controller does not update I/O until it reaches the
end of the main program (after executing all subroutines).
Outputs controlled within a subroutine remain in their last state until the
subroutine is executed again.
False
22.24
True
4.25
JSR
1.45 0.99SBR
Execution Times (µsec) when:
31.11 3.16RET
JSR
JUMP TO SUBROUTINE
SBR file number
SBR
SUBROUTINE
RET
RETURN
.
.
.
Vista de página 181
1 2 ... 177 178 179 180 181 182 183 184 185 186 187 ... 421 422

Comentários a estes Manuais

Sem comentários