Search Google

Search CNC Information

Pick Your Native Language!

Untitled Document English CNC Information Arabic CNC Information Bulgarian CNC Information Chinese (Simplified) CNC Information Chinese (Traditional) CNC Information Croatian CNC Information Czech CNC Information Danish CNC Information Dutch CNC Information Finnish CNC Information French CNC Information German CNC Information Greek CNC Information Hindi CNC Information Italian CNC Information Japanese CNC Information Korean CNC Information Norwegian CNC Information Polish CNC Information Portuguese CNC Information Romanian CNC Information Russian CNC Information Spanish CNC Information Swedish CNC Information
CNC Info Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Why does this program start with... (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Why does this program start with...
#974
FHarris (User)
Fresh CNC Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Why does this program start with... 2 Months, 1 Week ago  
Hi, Im new to gcode and I have been looking through some of the programs at work
and have found that they all start with the following line
G40 G49 G80
I know G40 means cancel cutter diameter compensation and G49 means cancel tool
length offset and G80 means cancel motion mode, but I dont understand why they are at the first line in the program.

The programs are all for drilling on a Fanuc.

Any info appreciated thanks...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#976
enrique (User)
Fresh CNC Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Re:Why does this program start with... 2 Months, 1 Week ago  
i don't know
but as a quick shot in the dark could it be because the previous code had set those parameters ?
and could there be a return to default settings or a previous profile setting that has been over ridden
it may be the handshake is indicative of set parameters in the post processor
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#977
FHarris (User)
Fresh CNC Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Why does this program start with... 2 Months, 1 Week ago  
Thanks, but the thing is that no length or diameter offset gets set in the
program prior to the G40 G49 and G80 commands.

Here is an example program(n.n is some decimal value)...

:5655
G40 G49 G80;
G92 Xn.n Yn.n Zn.n;
G90 G00 Xn.n Yn.n;
M06 T1;
S1500 M03;
G00 G43 Zn.n H1 M08;
G98 G82 Xn.n Yn.n Zn.n R3.0 F100;
Xn.n Yn.n;

M09;
G80
G00 G49 G27 Zn.n M05;
M06 T3;
S1000 M03;
G00 G43 Zn.n H2 M08;
G98 G83 Xn.n Yn.n Zn.n R3.0 Q4.0 F88.0;
Xn.n Yn.n;

M09;
G80 M05;
G00 G27 G49 Zn.n;
G27 Xn.n Yn.n;
M30;

Thanx
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#980
sdtasman (User)
Junior CNC Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Re:Why does this program start with... 2 Months, 1 Week ago  
Dude ahh

This is a programmers religion! ESPECIALLY ON fanuc
always start your program with:
G40 G49 G80 G90
G40=CUTTER COMPENSATION CANCEL
G49=TOOL LENGTH COMPENSATION CANCEL
G80=CANCEL OR END CANNED CYCLE
G90=ABSOLUTE MODE

G80 IS VERY IMPORTANT WHEN DRILLING USING G81, G83, G84 AND SUB PROGRAMS
OTHERWISE WHETHER STARTING THE PROGRAM OR EVEN REPEATING A BLOCK OR IN THE MIDDLE OF A PROGRAM IT CAN REPEAT THE LAST CANNED CYCLE USED IN THE PROGRAM
SCAREY BUT TRUE, SO LIKE ALL OLD WISE KUNGFU MASTERS SAY, SAFETY BEFORE ACTION.

ANOTHER IMPORTANT CODE TO USE WHEN TURNING, ALWAYS USE G50 AND MAXIMUM SPEED ON THAT SAME LINE, EG N10 G50 S2000.
THIS WILL INSURE THE SPINDLE DOESNT REV OVER 2000RPM NO MATTER WHAT SPEED U PUT IN AFTERWARDS WITH G96 OR G97
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#981
FHarris (User)
Fresh CNC Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Why does this program start with... 2 Months ago  
Thank you very much, now i understand...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by CNC Informationget the latest posts directly to your desktop
CNC Information