Page 1 of 2

Simultaneous X Y movement

PostPosted: Tue Jan 25, 2022 3:25 pm
by johnsattuk
If using seperate homing switches could simultaneous X Y homing be implemented
Similarly could diagonal jogging be implemented

These are features I am used to on my Mill. (PlanetCNC)

Re: Simultaneous X Y movement

PostPosted: Tue Jan 25, 2022 7:09 pm
by cncdrive
We could implement it, but it could work only with separate home input pins, because if the home input is common then the controller would not know which axis triggered the home input.

Re: Simultaneous X Y movement

PostPosted: Tue Jan 25, 2022 7:50 pm
by johnsattuk
Yes understood, I did say if using seperate homing switches :D

Re: Simultaneous X Y movement

PostPosted: Wed Jan 26, 2022 12:55 am
by spillage
I guess you could start out with an XY homing move until you trip a switch, back off all axis to clear the (unknown) switch, then continue with the individual axis to finish.
Depending on where you’re starting from, it may or may not save much time.

Re: Simultaneous X Y movement

PostPosted: Wed Jan 26, 2022 1:25 am
by cncdrive
But if there is one common home switch for the XY and you homing them together and the switch triggers then the controller have no idea which axis triggered the switch.
If X or Y or both triggered it.
And the controller will be then unable to decide which axis triggered the switch, because if it will start to move X or Y or XY down the switch will still not make it clear which axis is on the switch.
If it starts moving X to backoff then if it was who triggered the switch then all is OK, but if it was not the axis who triggered the switch then the backing off movement would be infinate, the same if both XY ran onto it's switch etc.

So, I see the only way to make this to work is if you have individual home inputs for the home switches.

Re: Simultaneous X Y movement

PostPosted: Wed Jan 26, 2022 1:51 am
by eabrust
johnsattuk wrote:Similarly could diagonal jogging be implemented




Diagonal jogging can be done now. Options:
1) use xbox controller w/ xbox plugin, you can jog x/y together w/ a single stick and variable velocity
2) assign a keyboard button to 2 separate 'hotkey' events, with the key activating an x-jog and a y-jog at the same time. reference: http://www.forum.cncdrive.com/viewtopic.php?f=2&t=2341&hilit=jogging

regards,
Eric

Re: Simultaneous X Y movement

PostPosted: Wed Jan 26, 2022 3:46 am
by spillage
Move X-,Y- until a switch is triggered.
Incremental move X+0.5,Y+0.5 (enough to close the triggered switch… doesn’t matter which it was).
Move X- until switch is triggered.
Back off X until the switch closes.
X=0
Move Y- until switch is triggered.
Back off Y until switch closes.
Y=0


cncdrive wrote:But if there is one common home switch for the XY and you homing them together and the switch triggers then the controller have no idea which axis triggered the switch.
If X or Y or both triggered it.
And the controller will be then unable to decide which axis triggered the switch, because if it will start to move X or Y or XY down the switch will still not make it clear which axis is on the switch.
If it starts moving X to backoff then if it was who triggered the switch then all is OK, but if it was not the axis who triggered the switch then the backing off movement would be infinate, the same if both XY ran onto it's switch etc.

So, I see the only way to make this to work is if you have individual home inputs for the home switches.

Re: Simultaneous X Y movement

PostPosted: Thu Feb 03, 2022 4:42 pm
by johnsattuk
eabrust wrote:
johnsattuk wrote:Similarly could diagonal jogging be implemented




Diagonal jogging can be done now. Options:
1) use xbox controller w/ xbox plugin, you can jog x/y together w/ a single stick and variable velocity
2) assign a keyboard button to 2 separate 'hotkey' events, with the key activating an x-jog and a y-jog at the same time. reference: http://www.forum.cncdrive.com/viewtopic.php?f=2&t=2341&hilit=jogging

regards,
Eric

Have an MPG so no Xbox

Had a go at programming this, can assign a keyboard key as you suggest, that would mean aasigning 4 keys and remembering what they are. Have a job remembering if I've had my breakfast :D
Have created onsceen buttons but don't know what to do next to create the movements.
Want to use sceen buttons on the jog panel, the hotkey method does not seem to allow screen buttons, so more help needed ;)

Re: Simultaneous X Y movement

PostPosted: Sat Feb 05, 2022 1:28 pm
by johnsattuk
Simultaneous X Y movement from a screen button.
Seems a faily simple thing to do - however have spent quite a lot of time looking at othr macros for ideas without success.

Tried creating two buttons on top of one another with different action - does'nt work. Is there a way to make this work, would make life simpler

tried creating amacros

exec.148();
exec.149();

- unable to read error

Guessing it's because it needs thr function name for the moves, not found where I can see the internal function names.

Please help

Re: Simultaneous X Y movement

PostPosted: Sat Feb 05, 2022 2:14 pm
by cncdrive
You can find function names in your UCCNC installation /Documentation folder.