Hello Guest it is March 28, 2024, 05:23:32 AM

Author Topic: G66 Calls not working in Mach4?  (Read 2163 times)

0 Members and 1 Guest are viewing this topic.

G66 Calls not working in Mach4?
« on: May 12, 2016, 07:05:26 PM »
I can get G65 to work, but G66 is puking. Is there a format error?
Code like this;
N54 (Drill - J End Bottom)
N55 G66 P10003 X1.3100 Y0.9400 K0.14 J1 I0
N56 X2.7400 Y0.9400 K0.14 J1 I0
N57 X1.3100 Y-0.9400 K0.14 J1 I0
N58 X2.7400 Y-0.9400 K0.14 J1 I0
N59 G67
Re: G66 Calls not working in Mach4?
« Reply #1 on: May 23, 2016, 07:17:11 AM »
Can you attach your sub program?
Andrew
MachMotion
Re: G66 Calls not working in Mach4?
« Reply #2 on: May 23, 2016, 09:24:55 AM »
O10003 %Drill Bottom Flange
IF [#4 EQ 0] GOTO 1000
IF [#5 EQ 0] GOTO 2000
M0 (COULD NOT FIND I OR J, Stop Machine and Check Program) %Will show in status bar if there is a problem.
GOTO 4000
N1000
G90 G54.1 P3 (Drill Single Hole, Bottom Flange, J End)
#7 = #24
GOTO 3000
N2000
G90 G54.1 P30 (Drill Single Hole, Bottom Flange, I End)
#7 = [0-#24]
GOTO 3000
N3000
%M10 Disabled until macro is created
%M15 Disabled until macro is created
%M20 Disabled until macro is created
%M03 M07 Disabled for testing
G00 Z[[13-#102]-0.5]
G00 X#7 Y[[#103/2]+#25]
G01 Z[[13-#102]+#6+#503] F100
G00 Z[[13-#102]-0.5]
GOTO 4000
N4000
#7 = 0
G54
M99
%

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: G66 Calls not working in Mach4?
« Reply #3 on: May 29, 2016, 06:12:21 AM »
That's looking very '80s spaghetti code.
Just saying.
Cheers
Roger
Re: G66 Calls not working in Mach4?
« Reply #4 on: May 29, 2016, 08:21:16 AM »
I just tested it worked fine for me... I had to add a 2 lines to define #102 and #103, I'm not sure what you were doing with these.

Mach needs to be licensed for Industrial before it will run these files.

Thanks,
Andrew

PS. You need to rename the file O10003.txt to O10003 remove the file extension.
Andrew
MachMotion