Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: krsykes23 on July 22, 2021, 12:09:09 PM

Title: 1 axis linear actuator
Post by: krsykes23 on July 22, 2021, 12:09:09 PM
I'm making a single axis linear actuator to my mitre saw and I need help with how I configure Mach3 to move the X axis by just entering the desired length in a DRO. I'm OK with designing the screen-set (draft image attached) but unsure how to actually perform the simple 'move' of the axis.

Basically, is there a simple way to perform an MDI input......for example "G0 X250", but only using a DRO?  I've seen exactly what I require done by someone but they don't say how they achieved it in Mach3.

Any assistance would be greatly appreciated.
Title: Re: 1 axis linear actuator
Post by: Klaus1311 on July 23, 2021, 05:30:08 AM
Hi krsykes23

you could try this using MachScreen:

Set function Code “Execute Basic Script” for your buttons and add to “execution code” of every button:

Button “GO”
PosX = GetOEMDRO(800)
Code("F100 G0” & PosX)
While (IsMoving())
Sleep(100)
Wend

“Button Arrow Left”
PosX = GetOEMDRO(800)
PosX = PosX – 1.0
Code("G0 X" & PosX)
While(IsMoving())
Sleep(100)
Wend

“Button Arrow Right”
PosX = GetOEMDRO(800)
PosX = PosX + 1.0
Code("G0 X" & PosX)
While(IsMoving())
Sleep(100)
Wend

the first example sets an additional feedrate .

Klaus
Title: Re: 1 axis linear actuator
Post by: krsykes23 on July 23, 2021, 05:53:28 AM
Many thanks Klaus,

I'll give this a try!

Regards,

Keith
Title: Re: 1 axis linear actuator
Post by: TPS on July 23, 2021, 07:16:39 AM
we made a similar Thing here:

https://www.machsupport.com/forum/index.php?topic=44218.10