-codes of all modal groups can be

Sep 04
2017

-codes of all modal groups can be


saved into a lo cal or a com mon macro vari able, typ i cally be fore the G-code is changed in the


macro The main pur pose of the sav ing the cur rent modal G-code(-s) is the safety be ing built into


the macro pro gram, busbar bending machine but also the ef fort of main tain ing pro fes sional pro gram ming en vi ron ment


For ex am ple, if the work off set G56 is used in the macro, and no ac tion is taken, the G56 will be –


busbar Machine


come the cur rent co or di nate sys tem af ter the macro is com pleted, for any pro gram that is loaded


af ter Such a sit u a tion may be very de struc tive, if – for in stance – the flow of the main pro gram ex –


e cu tion de pends on the G54 work off set A pro fes sional pro gram mer al ways saves the cur rent


modal G-values within the macro, then changes the val ues that need to be used in the macro body


The new val ues can be used freely, as needed, as many times as needed, within the macro, while


the macro is active Fi nally, be fore the macro ex its, the orig i nal val ues used in the main pro gram


or an other macro are re stored and ap plied for the sub se quent pro gram flow


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


FANUC CNC Custom Macros


MODAL DATA


165


Fanuc 0/16/18/21


Typ i cal list ing of G-codes (pre pa ra tory commands) modal in for ma Dished Head Punching Machine tion for the lower level CNC


con trols (pre ced ing block only – ex e cut ing block is not avail able):


System


Variable


G-code


G-code


Number


Group


Commands


#4001


01


G00 G01 G02 G03 G33


Note: G31 belongs to Group 00


#4002


02


G17 G18 G19


#4003


03


G90 G91


#4004


04


G22 copper busbar machine G23


#4005


05


G93 G94 G95


#4006


06


G20 G21


#4007


07


G40 G41 G42


#4008


08


G43 G44 G45


#4009


09


G73 G74 G76 G80 G81 G82 G83 G84 G85 G86 G87 G88 G89


#4010


10


G98 G99


#4011


11


G50 G51


#4012


12


G65 G66 G67


#4013


13


G96 G97


#4014


14


G54 G55 G56 G57 G58 G59

Leave a Reply

Visit Our Friends!

A few highly recommended friends...

Pages List

General info about this blog...