Hello Guest it is August 07, 2022, 10:08:25 PM

Author Topic: Changing current position mid program in Mach4  (Read 297 times)

0 Members and 1 Guest are viewing this topic.

Changing current position mid program in Mach4
« on: April 01, 2021, 07:56:43 PM »
Hello All,

I am a complete newb with Mach4, but I was hoping someone could point me in the right direction. We are building a rotary plasma cutter, and we want to be able to cut tubes that are longer than the machine.

There are a couple ways this could be accomplished, but I was wondering if it would be possible to move the tube a known amount (tracked with a rotary encoder) and then change what the 'current position' is in mach4 during a pause state between cuts?

Doing this by hand isnt the end of the world, but do you know if it would also be possible to feed the rotary encoder output into Mach4 for this displacement to be updated automatically?


Offline Graham Waterworth

  • *
  •  2,459 2,459
  • Yorkshire Dales, England
    • View Profile
Re: Changing current position mid program in Mach4
« Reply #1 on: April 01, 2021, 08:02:31 PM »
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.
Without engineers the world stops