Siemens IP-Module Manual Pagina 149

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 360
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 148
IP 266 Machine Data, Modes and Traversing Programs
G20: End of loop
G24: Start of loop
Loops may be nested. Subroutines which themselves contain loops may also
be called in a loop. The nesting depth for loops and subroutine calls together
may not exceed five. A continuous loop may be programmed only once, and
only at the highest level. A program invoked via an L function may not
contain a continuous loop.
G20: End of loop
G20
identifies the end of a program loop. A block containing G20 may con-
tain no other functions.
G24: Start of loop
The G24 function identifies the start of a program loop.
The number of loop passes must be specified via the F function.
Example 1: N20 G24 F5
.
.
.
.
.
.
N120 G20
A loop with five passes begins on
this line
The loop ends on this line
N20 G24 F0
.
.
.
.
.
.
.
N130 G20
Example 2:
When you specify a 0 as the
parameter for the number of loop
passes, you define the loop as
continuous loop.
End of the continuous loop.
EWA 4NEB 812 6057-02
5-77
Vista de pagina 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 359 360

Comentarios a estos manuales

Sin comentarios