I'm trying to write a warm up program that steps through rpm values. I found you can use Variables in Section 5 LINK of the manual. When I load this into the cnc (fadal 4020 with 88HS in format 2) all I get is "ERROR" with no explanation on the MU-47 screen.
Any ideas?
%
O1001 (WARM UP)
L0100 // Define Sub 01
S+R0 M3 // Sets spindle speed to current R0 value
R0+500. // Increase rpm by 500 each loop
L0201 // Run sub 02
M17 // End Sub 01
L0200 // Define Sub 02 - draw two circles close to the extents of machine travel
G0 G53 X-0.025 Y0.
G2 X-19.975 I-9.975 F100.
X-0.025 I9.975
G1 X0.025 Y0. F100.
G3 X19.975 I9.975 F100.
X0.025 I-9.975
M17 // End Sub 02
M30 // End of sub section
G90 G94 G17
G20
G28 G91 Z0.
G90
R0+500. // Sets initial rpm of 500
T2 M6 // Put tool in spindle for warm up
L0120 // Call sub 01 twenty times
M5
G28 G91 Z0.
G90
M30
%
I've also tried reducing the program to limit what could be wrong and it still doesn't work: