
15.
CUSTOM
MACRO
G65P9011AlOM;
Calls custom macro
body 9011 and sets
variables
#I
and
#4
tolOand5
respectively.
be
used instead of the
unknown
traverse distance.
Fig.1 5 (b)
Custom macro instruction and variables
This means that a function of general use can be formed when programming a certain
function as a custom macro. That is, programs can be written using variables for data
that might change or be unknown. This can be further applied to group technology.
Similar workpieces can be collected as a group and a universal custom macro body
can be programmed using variables applicable to each group. In this way,
programming is not required for the workpieces in the group. The programmer only
need to assign actual values to the variables.
Bolt hole circles as shown in the above figure can be made easily.
Once a custom macro body for the bolt hole circle is programmed and registered, the
CNC can operate as if it has the bolt hole circle cutting function.
Programmers can use the bolt hole circle function by using the following command
only: __
(Example of calling bolt hole circle)
G65P
p
R
r
A
a
B
B
K k
;
P
.
.
Macro number of bolt hole circle
I
:
Radius
a
:
Start angle
P
.
.
Angle between circles
k
.
.
Number of circles