Programming manual
154
CNC 8070
8.
ADDITIONAL PREPARATORY FUNCTIONS
OEM subroutines (G180-G189)
(SOFT V02.0X)
148
8.4 OEM subroutines (G180-G189)
The OEM subroutines are defined by the machine manufacturer. The
machine manufacturer may define up to 10 subroutines and associate
them with functions G180 through G189 in such a way that when
executing one of these functions its associated subroutine will also be
executed.
Executing the subroutine associated with one these functions
generates a new nesting level for local parameters (up to 7 nesting
levels)
Programming
Functions G180 through G189 allow initializing local parameters of
the subroutine. The parameter values may be defined after the
subroutine calling function and may be defined using the parameter
numbers P0-P25 or their letters A-Z (except "Ñ"), "A" for P0 and "Z"
for P25.
Besides initializing the parameters, any other type of additional
information may be added to these functions, even movements. This
information must be programmed before the subroutine calling
function; otherwise, the data will considered as for initializing the
parameters.
The associated subroutine is executed once the execution of the rest
of the information programmed in the block has ended.
%PROGRAM
F1000
P0=10 P1=20 P2=30
G1 XP0 YP1 ZP2
G180 P0=100 P1=200 C300 (Initialize parameters)
M30
%SUB_180 (Subroutine associated with G180)
G1 XP0 YP1 ZP2
M29
In the main program, the axes move to X10 Y20 Z30. Executing the
subroutine, they move to X100 Y200 Z300.
...
G01 X50 F450 G180 P0=15 P1=20
...
It executes the programmed movement and, then, the subroutine
associated with G180 and setting parameters P0 and P1.
...
G180 P0=15 P1=20 G01 X50 F450
...
All the data is interpreted as parameter setting, where P6(G)=1, P23(X)=50
and P5(F)=450.