CNC Fanuc controls, how to program lathe and mills?
Answer:
It would be too complicated to give an entire course on CNC programming but here is an example of a milling program.
N001 G00 X10.0 Y10.0 Z10.0
X5.0 Y5.0
G01 X2. F50.0
Y6.
N is optional you can leave it out or in, it is just a line number.
G00 is rapid traverse, G01 is linear interpolation in this case 50. per minute.
X is the distance to move to in left to right axis. Y is distance to move to in forward and back axis. Z is distance to move to in up down axis.
On the line with 3 axis locations given all 3 will move unless one or more is already at that location then only the ones that need to be updated will move.
Line 1 and 2 are both rapid because the G00 is modal and remains in effect until another G code of the same class is given, that would be G00, G01, G02, G03
Line 3 and 4 are both linear moves at 50 per. Line 3 will only move the X and line 4 will only move the Y.
Circular moves are G02(or G03) X__._ Y__._ I__._ J__._
G03 X5. Y5. I5. J5. F100.
The G03 is direction XY are end location. I and J are the incremental distance from the center of the tool at the start point of the arc to the center of the arc not the other way around. You have to get the exact definition here or it won't work properly and you must include a minus sign if it is in the minus direction
I have like years and years of experience as a programmer set-up tech and stuff.
Email me if you need some more examples or if you have questions.
Good Luck!
]-)
.
The answers post by the user, for information only, FunQA.com does not guarantee the right.
More Questions and Answers: