Hello Guest it is May 03, 2024, 09:14:51 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

381
Mach4 General Discussion / Re: Tool setter, M6, tool length offsets
« on: April 06, 2021, 08:14:36 AM »
G43 is normally called before the first Z move

E.g. G00 G90 G43 Z10. H1

382
The 'Work Offsets' are stored in a block of #Vars starting at #5221 for G54 X, #5222 for Y and #5223 for Z

To get to G55 you increment the base value by 20 so #5241 = G55's X value.

I have used this method for storing probed points and the like when the control had limited spare #vars.

I would suggest using G59 P100 and above to read and write user values.

So the base value would be #7201 for your tool one X value.

You can write them with #[7201 + [tool * 20]] = GetOEMDRO (800)

And read them with G52 X[#7201 + [tool * 20]], Y[#7202 + [tool * 20]], Z[#7203 + [tool * 20]] or use the Get/Setvar method or some variation of your own.

You can open the fixture table with Oem Code 122

383
You could if you want use the fixture offsets to hold the G52 XY & Z values and read them using #5221 onward.

If you then want to change an offset on the fly its easy to change the fixture value.


384
In MDI enter G31 G91 Z-1. F2. and see if it moves down 1" before stopping, make sure you are in fresh air and not going to crash.

You can trigger the probe at any point and it should stop.

385
You can use a Macro and have that set a G52 offset in XYZ for the given tool.  then you could tell Fusion to output M600 P1 or M600 P2 etc.  and at the end of the run call M600 P0 to cancel the G52.

for example the macro could look something like this:-

M600.m1s
nxt = Param1()
if nxt = 0 then
  code "G52 x0 y0 z0"
end if
if nxt = 1 then
  code "G52 X-25. Y25. Z21."
end if
if nxt = 2 then
  code "G52 X-25. Y-25. Z22."
end if
if nxt = 3 then
  code "G52 X25. Y-25. Z23."
end if
end

In your code you issue :-

M600 P1
G00 X0 Y0 Z10.

This way you always clock the same point on the tool fixture and the local G52 offsets in the macro take care of the rest.

386
You can use a G52 X100. command to shift the current position but you must remember to use G52 X0 at the end of the run.

387
59K of code to go around a rectangle is embarrassing to say the least and ridiculous for an adaptive strategy.

10 lines per pass is all that is needed and a change of feed rate for the corners so get rid of the crap g-code and everything will run smooth as silk.

There is nothing in your part to make adaptive.

Use a standard 2D contour with a step over and see what a difference it makes.

388
Fusion 360 is known for outputting 10000 lines of code when 10 will do, I would use 2D profile and see what happens.

389
Mach4 General Discussion / Re: Mach4 Lathe Tool Probing (Help)
« on: March 21, 2021, 09:39:44 PM »
On a lathe it is normal to use a fixed point for reference, in most cases this is the face of the chuck and the spindle centre line of a drilling tool holder are stored in the G54 fixture offset relative to home.

Then 2 values are calculated relating to the z distance to the tool setter z trigger point and the x diameter of the setters x trigger face.  Depending on the type of tool setter you may need 4 saved values to allow for internal and external tools and front and rear edges of tips e.g. grooving and parting tools.

In Mach4 you then use the work shift to set the length to the work face, distance from chuck face to end of finished part.  Not the end of the material as you need some material to face to length.

When you touch a tool on the setter the macro used the known values to work out the offset.


390
General Mach Discussion / Re: Ref All Home
« on: March 21, 2021, 09:15:56 PM »
Forget soft limits for now and get the machine homing right, if its a standard mill x axis should home at right most point of table and y should be at the rear of table and z at the top.

You can reverse the direction in mach3 in homing and limits, or in mach4 in the motor setup page.

Once you have this the soft limits will be more like X max 0 X min -700