Folks,
I've run into a G-coding problem I can't seem to resolve. Here are the details:
Machine - gang tool lathe with C-axis running G7.1 (G107)
Control - Fanuc Oi Mate TB
Material diameter .5 aluminum
Error message: 021 Illegal Plane Axis Commanded
G18 is set in memory as default as well as commanded
I've just been trying to test this capability so I wrote a small program to exercise G7.1 in preparation for some live tool engraving. The program doesn't have any real funtionality yet but just moves the axes around so that I can see that I've got the fundamentals down. Then I'll work out the true details. Here's the short program - it's just meant to engrave a circle in the side of the cylinder:
O0099 (CYL INTERP TEST)
M20 (RESET TO NORMAL SPINDLE MODE)
M05 (STOP SPINDLE)
G28 U0
G28 W0
G98 G18
G40 G80
M21 (ENTER C-AXIS MODE)
T0101 (CALL FAKE TOOL)
G0 X.5 (MOVE OVER TO EXTENDED SURFACE)
G0 Z.1 (MOVE IN JUST OFF FACE)
G28 H0. (ORIENT SPINDLE)
G7.1 C.250 (ENTER CYL INTERP MODE)
G1 X.49 F100 (MOVE TO ENGRAVING DEPTH)
G0 Z0. (MOVE INTO FACE)
G18 (I put this in after I got the error, but still got the error)
(G19 gives me the same error)
(The first of the following G02 lines produces the error)
G02 Z-.250 C90. R.250 F200
G02 Z -.5 C0. R.250 F200
G02 Z-.250 C-90. R.250 F200
G02 Z0. C0. R.250 F200
(I had the following straight line code in before I put the G02 lines in shown above and the following two lines worked)
(G1 Z-.5 C90. F200)
(G1 Z0. C180. F200)
G1 X.6 (BACK OFF PART)
G1 Z.1 (BACK OFF PART)
G7.1 C0. (EXIT CYL MODE)
G0 Z1.
M20
M30
I don't understand why the straight linear G1 "ZC" code works but the circular code G2 "ZC" code doesn't. I originally tried to code 2 semicircles but broke that up into the quadrants hoping that would rid the error. I've looked at the example given in the Fanuc Descriptions manual til I'm blue in the face. What am I missing?
Any hints, please?
Cheers,
Rich
I've run into a G-coding problem I can't seem to resolve. Here are the details:
Machine - gang tool lathe with C-axis running G7.1 (G107)
Control - Fanuc Oi Mate TB
Material diameter .5 aluminum
Error message: 021 Illegal Plane Axis Commanded
G18 is set in memory as default as well as commanded
I've just been trying to test this capability so I wrote a small program to exercise G7.1 in preparation for some live tool engraving. The program doesn't have any real funtionality yet but just moves the axes around so that I can see that I've got the fundamentals down. Then I'll work out the true details. Here's the short program - it's just meant to engrave a circle in the side of the cylinder:
O0099 (CYL INTERP TEST)
M20 (RESET TO NORMAL SPINDLE MODE)
M05 (STOP SPINDLE)
G28 U0
G28 W0
G98 G18
G40 G80
M21 (ENTER C-AXIS MODE)
T0101 (CALL FAKE TOOL)
G0 X.5 (MOVE OVER TO EXTENDED SURFACE)
G0 Z.1 (MOVE IN JUST OFF FACE)
G28 H0. (ORIENT SPINDLE)
G7.1 C.250 (ENTER CYL INTERP MODE)
G1 X.49 F100 (MOVE TO ENGRAVING DEPTH)
G0 Z0. (MOVE INTO FACE)
G18 (I put this in after I got the error, but still got the error)
(G19 gives me the same error)
(The first of the following G02 lines produces the error)
G02 Z-.250 C90. R.250 F200
G02 Z -.5 C0. R.250 F200
G02 Z-.250 C-90. R.250 F200
G02 Z0. C0. R.250 F200
(I had the following straight line code in before I put the G02 lines in shown above and the following two lines worked)
(G1 Z-.5 C90. F200)
(G1 Z0. C180. F200)
G1 X.6 (BACK OFF PART)
G1 Z.1 (BACK OFF PART)
G7.1 C0. (EXIT CYL MODE)
G0 Z1.
M20
M30
I don't understand why the straight linear G1 "ZC" code works but the circular code G2 "ZC" code doesn't. I originally tried to code 2 semicircles but broke that up into the quadrants hoping that would rid the error. I've looked at the example given in the Fanuc Descriptions manual til I'm blue in the face. What am I missing?
Any hints, please?
Cheers,
Rich