Hello Guest it is April 25, 2024, 03:18:40 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Graham Waterworth

441
Mach4 General Discussion / Re: My tool runs off
« on: December 08, 2020, 08:59:41 AM »
Some code and pictures would help us

442
Mach4 General Discussion / Re: My tool runs off
« on: December 07, 2020, 10:31:01 AM »
It could be you are loosing steps, is the Z depth shallow?

443
Mach4 General Discussion / Re: Mach 4 with analog drives not working.
« on: December 07, 2020, 10:28:31 AM »
Mach4 only tells the Hicon what to do the Hicon is in control of the motors so my guess is you need to correct the config in the Hicon

444
Load the macro into the Mach3 editor and single step it through to find the error.

You may need to pre set the tool numbers in the code for it to work.

445
General Mach Discussion / Re: Need Help Connecting USB CNC Board to Mach3
« on: December 03, 2020, 08:34:28 PM »
Have you purchased new stepper drivers too because the old board had them built in.


446
General Mach Discussion / Re: Nested Subroutine hangs after 1 iteration
« on: December 03, 2020, 05:30:35 PM »
You are probably missing an end of line at the end of the code try starting and ending the code with a %

%
#1=-0.1
#2=1
#3=0
#4=60
G20 G40 G80 G90 G00
Z1.1
G1 F60
G1Z[#2]
(Calling sub O125)
M98 P125 Q5 (Repeat 5 times)
G00 Z1
G0A0
M30 (end program)

O124 (this is a sub)
G1 X0Z[#2] F60
#2=[#2+#1] (Step decrease Z by value of #1)
G1 Z1
G1 X6
M99

O125 (this is a sub)
(Call Sub O124)
M98 P124 Q5
#3=[#3+#4] (increase #3 by 60)
G0A[#3] (Rotate A axis 60 degrees)
M99
%

447
Forget the G55 and the others, set G54 to a fixed place on the fixture and then use G52 to provide a local offset for each part.

This way you program one part and use the code in subs to do the other parts with G52 set to the fixture point of the other parts.

Example

You have 6 parts set out on a 3 x 2 grid about 50mm pitch we have 3 tools, T1 spot drill, T2 5mm drill, T3 M6 tap

Datum is X & Y rear right corner, Z face of fixture, part finished height from fixture is 10.00MM

So here is some of the best free code you will ever get.

%
O0001 (MAIN PROGRAM)

G21 G40 G00 G17
G91 G28 X0 Y0 Z0
G52 X0 Y0 Z0 (clear any offset)

N1(SPOT DRILL)
T1 M6
G54 G00 G90 G43 X0 Y0 Z50. H1 S1500 M3
G52 X0 Y0 Z10.
M98 P0002
G52 X-50. Y0 Z10.1
M98 P0002
G52 X-100. Y0 Z10.05
M98 P0002
G52 X-100.15 Y-50. Z10.02
M98 P0002
G52 X-50. Y-50. Z10.1
M98 P0002
G52 X0 Y-50. Z10.05
M98 P0002
G91 G28 Z0
M1

N2 (5MM DRILL)
T2 M6
G54 G00 G90 G43 X0 Y0 Z50. H2 S1500 M3
G52 X0 Y0 Z10.
M98 P0003
G52 X-50. Y0 Z10.1
M98 P0003
G52 X-100. Y0 Z10.05
M98 P0003
G52 X-100.15 Y-50. Z10.02
M98 P0003
G52 X-50. Y-50. Z10.1
M98 P0003
G52 X0 Y-50. Z10.05
M98 P0003
G91 G28 Z0
M1

N3(M6 X 1.0 TAP)
T3 M6
G54 G00 G90 G43 X0 Y0 Z50. H3 S250 M3
G52 X0 Y0 Z10.
M98 P0004
G52 X-50. Y0 Z10.1
M98 P0004
G52 X-100. Y0 Z10.05
M98 P0004
G52 X-100.15. Y-50. Z10.02
M98 P0004
G52 X-50. Y-50. Z10.1
M98 P0004
G52 X0 Y-50. Z10.05
M98 P0004
G91 G28 Z0
G52 X0 Y0 Z0
M30

O0002(SPOT DRILL)
G00 X-10. Y-10.
Z10.
G82 Z-2.75 R1. P500 F.1 M8
X-40.
Y-40.
X-10.
G80
G52 X0 Y0 Z0
G00 Z50.
M99

O0003(5MM DRILL)
G00 X-10. Y-10.
Z10.
G81 Z-12. R1. F.2 M8
X-40.
Y-40.
X-10.
G80
G52 X0 Y0 Z0
G00 Z50.
M99

O0004(M6 TAP)
G00 X-10. Y-10.
Z10.
G84 Z-14. R3. F250. M8
X-40.
Y-40.
X-10.
G80
G52 X0 Y0 Z0
G00 Z50.
M99
%

The output on screen in Mach3 could be messed up but will work just fine,  in Mach4 it should be perfect.


448
Mach4 General Discussion / Re: Cutter compensation issue
« on: December 02, 2020, 12:37:41 PM »
The cutter comp only works if the tool radius is smaller than the smallest radius on the part.

449
General Mach Discussion / Re: 4th axis setup
« on: November 28, 2020, 10:06:35 PM »
Yes you can enter the amount you want the home offset by and then zero will be in the plane you set.

So home the A axis, clock the table level, then enter the offset in the home off dro, you might have to set it the opposite sign depending on your set up.  e.g. swap + and - if it goes the wrong way after a re-home.


450
The X axis works in Diameter unless you have it set to radius mode, most lathes work be in diameter as do lathe CAM systems.