values, using many other features (just like the calcula tor functions) Specific constants, such as the pifunction (p =

3141592654), are not avail able, but can angle bender be de fined Cal cu lated val ues can be stored into a

mem ory reg is ter and used in the cur rent pro gram, or any other pro gram

There is no doubt that macros can elevate CNC pro gramming to the levels never before possible

with only main pro grams or subprograms alone Knowledge of subprograms, how they work,

how they are struc tured and how they in ter act with main pro gram, is the key knowl edge re quired

for any pro gram mer try ing to un ravel the mys tery of cus tom mac ros

CNC Lathe Ap pli ca tions

Mac ros are use ful for any type of a ma chine tool Al punch equipment though ma chin ing cen ters (used so far as il –

lus tra tive ex am ples) have be come the most likely sources of macro pro grams, that does not mean

other ma chine tools are ex cluded The one ma chine tool that is widely used in ev ery day pro duc –

tion, the one ma chine tool that will ben e fit from cus tom mac ros is – the CNC lathe

In Fig ure 8 shows a draw ing of a lathe part with three iden ti cal grooves


Figure 8



cnc Boring Machine

2X 05×45

Sample drawing for

subprogram example

– lathe application












Groove de tail shows a 4x3x05 mm groove Al though all three grooves are lo cated at the same

di am e ter, it is quite likely that this groove – or any stan dard groove – can still have the same over –

all di men sions but be placed at dif fer ent di am e ters Whether de vel op ing a subprogram or a macro,

this is a very im por tant con sid er ation While grooves that do not change di am e ters can be pro –

grammed in ab so lute mode along the X-axis and in cre men tal mode along the hydraulic busbar bending Z-axis, grooves that

will be at var i ous di am e ters have to be pro grammed incrementally along both axes

Copyright 2005, Industrial Press Inc, New York, NY – wwwindustrialpresscom

FANUC CNC Custom Macros