
Programming manual
154
CNC 8070
8.
ADDI
TI
ONAL PREPARATORY
FUNCTI
O
NS
O
E
M
subr
out
in
e
s
(
G
180-
G
189)
(S
OFT
V02.0
X
)
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.
Summary of Contents for CNC 8070
Page 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Page 2: ......
Page 4: ......
Page 6: ......
Page 12: ......
Page 14: ......
Page 16: ......
Page 22: ......
Page 26: ......
Page 28: ......
Page 30: ......
Page 32: ......
Page 34: ......
Page 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Page 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Page 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Page 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...