Simultaneous X Y movement

Here is where you can request new features or special features.

Simultaneous X Y movement

Postby johnsattuk » Tue Jan 25, 2022 3:25 pm

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)
johnsattuk
 
Posts: 79
Joined: Thu Aug 12, 2021 1:24 pm

Re: Simultaneous X Y movement

Postby cncdrive » Tue Jan 25, 2022 7:09 pm

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.
cncdrive
Site Admin
 
Posts: 5183
Joined: Tue Aug 12, 2014 11:17 pm

Re: Simultaneous X Y movement

Postby johnsattuk » Tue Jan 25, 2022 7:50 pm

Yes understood, I did say if using seperate homing switches :D
johnsattuk
 
Posts: 79
Joined: Thu Aug 12, 2021 1:24 pm

Re: Simultaneous X Y movement

Postby spillage » Wed Jan 26, 2022 12:55 am

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.
Bryan
“Simplicity is the ultimate sophistication“ Leonardo Da Vinci
spillage
 
Posts: 48
Joined: Sat Aug 01, 2020 11:07 pm

Re: Simultaneous X Y movement

Postby cncdrive » Wed Jan 26, 2022 1:25 am

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.
cncdrive
Site Admin
 
Posts: 5183
Joined: Tue Aug 12, 2014 11:17 pm

Re: Simultaneous X Y movement

Postby eabrust » Wed Jan 26, 2022 1:51 am

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
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 361
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: Simultaneous X Y movement

Postby spillage » Wed Jan 26, 2022 3:46 am

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.
Bryan
“Simplicity is the ultimate sophistication“ Leonardo Da Vinci
spillage
 
Posts: 48
Joined: Sat Aug 01, 2020 11:07 pm

Re: Simultaneous X Y movement

Postby johnsattuk » Thu Feb 03, 2022 4:42 pm

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 ;)
johnsattuk
 
Posts: 79
Joined: Thu Aug 12, 2021 1:24 pm

Re: Simultaneous X Y movement

Postby johnsattuk » Sat Feb 05, 2022 1:28 pm

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
johnsattuk
 
Posts: 79
Joined: Thu Aug 12, 2021 1:24 pm

Re: Simultaneous X Y movement

Postby cncdrive » Sat Feb 05, 2022 2:14 pm

You can find function names in your UCCNC installation /Documentation folder.
cncdrive
Site Admin
 
Posts: 5183
Joined: Tue Aug 12, 2014 11:17 pm

Next

Return to Feature Request

Who is online

Users browsing this forum: No registered users and 13 guests