Page 1 of 1

Diagonal movement button with Screen Editor

PostPosted: Wed Jun 03, 2020 8:47 pm
by mr_cg
Hello,
i have understood the basics about the screen editor when using custom M-Codes (>20000).
But i would like to understand how to modify e.g. axis movement function to add also diagonal movement for X and Y.

diagonal.JPG
diagonal.JPG (28.57 KiB) Viewed 6450 times


How is it possible to add some diagonal movement buttons and assign combined movement from two axis?

Thanks for your help.
Chris

Re: Diagonal movement button with Screen Editor

PostPosted: Wed Jun 03, 2020 9:50 pm
by dezsoe
You cannot do this. You could start the diagonal movement, but you cannot stop it, because you don't know when the button was released.

Re: Diagonal movement button with Screen Editor

PostPosted: Fri Jun 05, 2020 3:46 pm
by mr_cg
I do not understand why it's not possible.
For the other movements (up, down, left, right) it's also possible to detect that the button is released why this should not be possible for diagonoal movement button?
Lot of other CNC software support diagonal movement, why this is not possible with UCCNC?

Re: Diagonal movement button with Screen Editor

PostPosted: Fri Jun 05, 2020 7:32 pm
by dezsoe
I didn't write that it's impossible, but that you cannot do it. Write to the feature request thread and Balázs will decide if he will make it. The move buttons are programmed internally to detect when they are released to stop the motion, but all other buttons are not.

Re: Diagonal movement button with Screen Editor

PostPosted: Fri Jun 05, 2020 10:55 pm
by Vmax549
IF you build your jogging panel as a plugin then it should be no problem to detect button push/release.

Just a thought, (;-) TP

Re: Diagonal movement button with Screen Editor

PostPosted: Tue Jun 16, 2020 7:42 pm
by mr_cg
I will write feature request because i really think it's good improvement.
Most of the CNC control SW i know are supporting also diagonal movement and i was using this a lot.

Re: Diagonal movement button with Screen Editor

PostPosted: Tue Jun 16, 2020 11:15 pm
by beefy
Some time ago I made a remote pendant with serial coms and wrote a plugin that calls 2 jog buttons at the same time to cause diagonal movement. It worked well.

I later binned the project because I ended up buying the wireless UCR201 pendant.

Point is with some extra DIY screen buttons and say a macroloop, you could implement diagonal buttons on screen.