2-237MACHINE OPERATIONS OPERACIONES DE MECANIZADO
Programming using M98 and M99 Programación mediante M98 y M99
Programming using M99 Programación mediante M99
1. If a P command is omitted, the program
flow returns to the block that follows the
one where jump to the sub-program has
been made.
Address P is not normally specified in
an M99 block.
2. If "M99 P_ ;" is specified in the main
program:
The program flow jumps to the
sequence number specified by P in the
main program.
If a P command is omitted, the program
flow jumps to the start of the main
program. The main program is
executed endlessly.
1. Si se omite una instrucción P, el flujo de programa
regresa al bloque que sigue al bloque en el que
se ha realizado el salto al subprograma.
Normalmente, la dirección P no se especifica en
un bloque M99.
2. Si se especifica "M99 P_ ;" en el programa
principal:
El flujo de programa salta al número de
secuencia especificado mediante P en el
programa principal.
Si se omite una instrucción P, el flujo de programa
salta hasta el principio del programa principal. El
programa principal se ejecuta de manera
continua.
Main program
Programa principal
Sub-program
Subprograma
O1; O100;
N001
; N101 ;
N002 M98 P100;
N102 ;
N003 ; N103 M99;
N004 ;
N005 M98 P200 L2
;
O200;
N006
; N201 ;
N202 ;
N203 M99;
(Repeats twice)
(Se repite dos veces)
N011;
N012 M98 P300;
O300;
N013
; N301 ;
N014
; N302 ;
N015
; N303 M99 P015;
1
2
3
The command can also be given with M198
instead of M98.
El comando también se puede indicar mediante M198
en lugar de M98.
O1;
N1;
N2;
/N7 M99; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . When the block delete function
is invalid:
The "N7 M99;" command is
executed and the program flow
returns to the start of the
program. The program is
repeated endlessly between N1
and N7 blocks until the block
delete function becomes
invalid.
Cuando la función de borrado de
bloque es inválida:
Se ejecuta la instrucción "N7 M99;"
y el flujo de programa regresa al
inicio del mismo. El programa se
repite continuamente entre los
bloques N1 y N7 hasta que se
invalida la función de borrado de
bloque.
N8;
M30; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ends program execution Finaliza la ejecución del programa