Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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.
-
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
-
Many thanks Klaus,
I'll give this a try!
Regards,
Keith
-
we made a similar Thing here:
https://www.machsupport.com/forum/index.php?topic=44218.10