Hello Guest it is April 19, 2024, 05:48:39 PM

Author Topic: 1 axis linear actuator  (Read 849 times)

0 Members and 1 Guest are viewing this topic.

1 axis linear actuator
« 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.
Re: 1 axis linear actuator
« Reply #1 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
The brain isn't a soap, it doesn't shrink when used.
Re: 1 axis linear actuator
« Reply #2 on: July 23, 2021, 05:53:28 AM »
Many thanks Klaus,

I'll give this a try!

Regards,

Keith

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: 1 axis linear actuator
« Reply #3 on: July 23, 2021, 07:16:39 AM »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.