Hello Guest it is March 28, 2024, 09:18:39 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

811
Mach4 General Discussion / Re: Changing G54 inside script
« on: June 19, 2019, 06:21:08 PM »
If I am understanding your problem right you need to offset the x axis depending on which tool you use.

why not set up a sub routines for each tool with a G52 x-50 or what ever you need the offset to be and another sub with G52 x0 in it to call to cancel that offset. You can also set the Y and Z for each tool this way.

All the subs could be coded into your cad system or stored in Machs subs folder.

So your code would look along these lines
%
M98 P251(CALL TOOL 1)
G00 X150 Y20.
G01 ETC.
M98 P250 (CANCEL OFFSET)

M98 P252 (CALL TOOL 2)
ETC.
M98 P250 (CANCEL TOOLS)
ETC.
M30

Subs would be
O250
T0 M6
G52 X0
M99

O251
T1 M6
G52 X-50.
M99

O252
T2 M6
G52 X-100.
M99
%


812
General Mach Discussion / Re: Ref all home does nothing?
« on: June 19, 2019, 04:18:03 PM »
All you need in the Home All Button is this.

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)

Do you have home switches setup in ports and pins?


813
Works in progress / Re: Coming soon to a lathe near you
« on: June 18, 2019, 09:03:12 AM »
Here are some images of the Portrait version of the screens, again 768 x 1366 or can be scaled to any widescreen size.


814
Works in progress / Coming soon to a lathe near you
« on: June 17, 2019, 09:16:31 PM »
Well folks here is a new lathe screen.

I am just finishing off a few bits and then the Mach3 version will be ready for you all to try.

This is a wide screen set best at 1366 x 768

This was done for education so its colourful and easy to read and use.  Most of what you need is there if its not well its tough.

Bug fixes is all that will change.




815
General Mach Discussion / Re: mach3 milling errors
« on: June 10, 2019, 09:28:37 AM »
Edit your g-code so the last move is the same position as the first move so you can see if its back to the right place.

816
General Mach Discussion / Re: mach3 milling errors
« on: June 10, 2019, 09:13:15 AM »
Are you using shielded cable to the motors and step/dir grounded at one end only?

For the moment ignore the steps/per as it has no bearing on your problem.

Your problem is missed steps or extra steps.  This can be noise on the motor cables from power lines being too close or on the step/dir lines or even a dodgy power supply.  it may be you need a filter on the AC input or a different motor PSU for testing.

Once the cut design is starting and finishing in the correct place then worry about fine tuning the steps/per.


817
G-Code, CAD, and CAM discussions / Re: G10 offsets
« on: June 04, 2019, 09:32:02 AM »
G10 is a global setting G52 is a local shift on the current work offset e.g. G54

G10 can be used in G91 mode to update the fixture offset or G90 mode to replace the current values.

Using it in program to offset a fixture is dodgy, if you get a program crash you can loose the original offset.

Look at G52 its safer, you can just issue a G52 X0 Y0 Z0 at the start of the program to go back to the original fixture offset.

818
Share Your GCode / Re: Mach3 and Mach4 Show Demo Code
« on: May 19, 2019, 12:04:55 PM »
The whole lot was produced with AlphaCAM but most CAM systems will produce some form of code from IGES files.

819
Mach4 General Discussion / Re: Mach 4 Mill CSS
« on: May 01, 2019, 06:03:00 AM »
It sure can be done, here is a video :- https://www.youtube.com/watch?v=i02DmXtH3XM

820
G-Code, CAD, and CAM discussions / Re: Homing on the fly
« on: April 02, 2019, 09:26:30 PM »
You could try something like this, NOT tested so be careful

Put a copy of these lines where you think they are needed

M1001 (call macro to record current positions)
G00 Z(Move to save level)
G91 G28.1 X0 Y0 Z0
G00 G90 X#1000 Y#1001
G01 Z#1002 Fffff
continue with code
....

Macro M1001 to be stored as M1001.m1s in current profile macro folder

‘ Get Machine Positions and store into #vars
SetVar(1000,GetABSPosition(0))
SetVar(1001,GetABSPosition(1))
SetVar(1002,GetABSPosition(2))