Hello Guest it is April 18, 2024, 08:17:08 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.


Topics - MXJ

Pages: 1
1
Mach4 General Discussion / Laser offset relative to Router spindle
« on: December 21, 2021, 11:49:43 PM »
Hi Guys,

I have added a Laser to my CNC router and its sit to the left of the router. Next is to measure the exact offset between laser and router, then to correct for this offset. This is fiddly but can be done and will require some twigging.
In the meantime, I would like to assign one of the spare buttons in MACH4 screen, to offset the laser head relative to the router spindle. This will enable me to use the router to route something and then by applying the offset do laser engraving to the routed material.

This is what I have come up with so far

function LaserOffset()
   GoToWorkZero()
   mc.mcCntlSetLastError(inst,"Setting Laser Position Relative To Router")
   mc.mcCntlGcodeExecute(inst,"G54 G0 X25.203 \n G0 Y12.375")
   end
This function hopefully will move the CNC machine to position X25.203 and Y12.375, relative to the workpiece so that the laser head is now set over the workpiece Zero.
However, I don’t want the machine to first move to the workpiece Zero position, I want to be able to use the X and Y values from the workpiece Zero position, and move the machine to X25.203 and Y12.375, from this Zero position.

So, if the workpiece Zero is at X10 and Y10, by pressing the laser offset button, I want the machine to move to X35.203 and Y22.375.  This is then the new workpiece Zero, and must replace to old value of X10 and Y10.
I would greatly appreciate help with this problem

Best Regards

Max

2
Hi Guys,

I do humbly apologize if this question has been asked and answered, as my search could not yield anything.

I need to upskill myself from Mach3 to Mach4, and during my search for information came across this video https://youtu.be/8m_K9WfCiEY

Has anybody done this modification to the Mach4 standard screen, by adding this zero position feature to it ?

Regards

Max

Pages: 1