Long timelurker, first time poster, as I have a pretty specific problem.
i moved this thread to the correct sub forum. question remains the same.
Im writinga general warmup program to use in multiple Fanuc CNC mills, using G-code. My programlooks as follows:
Code:
%
O1111
(REV 0)
(EDITEDBY JVE)
(DATE26-08-16)
(WARMUP)
(---------------------------------)
N1
G0G28G91Z0
G40G49G80G90
(---INITIALIZE---)
M6T1
#901=0(COUNTER)
#902=1(LIM 1)
#903=3(LIM 2)
#904=5(LIM 3)
#909=#902(LIMIT)
#911=1000(RPMSTARTVALUE)
#912=4000(FEEDSTARTVALUE)
GOTO20
(-------------------)
(-----CTRLLOOP-----)
N10
#911=#911*2
IF[#911GT1000]THEN#909=#903
IF[#911GT8000]THEN#909=#904
#912=#912*2
#901=0
(-------------------)
(-----MAINLOOP-----)
N20
#901=#901+1
M102(CLOSECLAMPS)
S#911M3
F#912
G4X1.
G90G1G53X700.
G1G53Y-300.
G1G53X0
G1G53Y0
M112(OPENCLAMPS)
G4X1.
IF[#901LT#909]GOTO20
IF[#911GT20000]GOTO1(FULLLOOP)
GOTO10
(-------------------)
M30
%
Now my problem currently is that my machine uses the traverse rate instead of the feedrate in te 'main loop'. Does anyone know what I’m doing wrong?