I've been asked to "Post the definition and parameters of the Fagor G68 cycle for lathe and the meaning of the 004 alarm to your thread"
P0 = Absolute X coordinate value of the starting point
P1 = Absolute Z coordinate value of the starting point
P5 = Max. DOC per pass (radius). It must be greater than zero.
P7 = Finishing stock allowance along X axis (radius). Must be equal to or greater than zero
P8 = Finishing stock allowance along Z axis (radius). Must be equal to or greater than zero
P9 = Feedrate of the finishing pass. If P9=0, there will be no finishing pass: but there will be a final roughing pass maintaining the excess material indicated by P7 and P8. If it has a negative value, neither a final roughing pass nor a finishing pass will be carried out.
P10: This parameter must be assigned a value other than "0" in order for the CNC to carry out a final roughing pass prior to the finishing pass.
P13 = Number of the first block to define the pattern
P14 = Number of the last block to define the pattern. It must be greater than P13.
A couple notes (there are others) that follow the definition/parameters in the manual are:
The machining conditions (feedrate, spindle rotation, etc.) must be programmed before calling the cycle.
If arcs are included in the definition, they must be programmed with the center's I,K coordinates, referred to the arc's starting point and with the relevant sign.
You may have noticed I include I0 in the program. This is necessary or it will give you an error message for the arc. It is also necessary to include an X and Z value in each block even if they are the same as in previous block(s).
004 alarm states: A canned cycle has been defined while function G02, G03 or G33 was active.
This alarm is very confusing as you don't need any of those commands anywhere in the operation to get it. As you can see, there are none in my program until near the middle of the contour.
I just went out and deleted the G3I0K-.141 and made P7=K.005. Received 004 alarm. Changed back to "0", and it ran. With the G3 removed, there is nothing in the program except G0 and G1 so where is the 004 alarm coming from?