support simple math functions in X, Y, Z edit boxes

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

support simple math functions in X, Y, Z edit boxes

Postby Ivan Ionov » Wed Oct 05, 2016 8:12 am

Hello,

Sometimes I need to find center of my block. I jog manually to one edge, set coordinate to 0, jog to another edge and want to divide current coordinate by 2 to set axis zero at center of my block.

Mach3 allows to enter in axis fields something like "=/2" instead of numbers to divide current value by 2.
Can you support something similar? At least for division by 2.
You can support only one keyword "/2" or "x/2" - that will be enough for me. But some people may need to enter "x+10" for example to manually offset current coordinate.

Regards, Ivan
Ivan Ionov
 
Posts: 15
Joined: Tue Sep 20, 2016 9:33 pm

Re: support simple math functions in X, Y, Z edit boxes

Postby cncdrive » Wed Oct 05, 2016 10:34 am

Well, I will have to think about how to implement this, ofcourse as most of things this is also possible, but not very easy for first thought.
However to temporary resolve this you could create a macro to divide the value of the current position.
The macro could read the value of the DRO and then make a division on the number and then write it back to the DRO and Validate the DRO,
that is the same action as if you entered in a new value, so it will become the current point.
cncdrive
Site Admin
 
Posts: 5198
Joined: Tue Aug 12, 2014 11:17 pm

Re: support simple math functions in X, Y, Z edit boxes

Postby Derek » Wed Oct 05, 2016 11:51 pm

This is a cautionary warning from an old time Mach user. Beware of adding too many bells and whistles to the core product. I saw this happen when Art, the nice guy that he is, tried to accommodate too many requests. Mach3 became a bloated POS that caused me many $$$$ ruining things because it became undependable and unpredictable.

Buy a calculator and keep it by your machine:)
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: support simple math functions in X, Y, Z edit boxes

Postby andrew.g » Wed Oct 24, 2018 11:25 pm

I vote for this issue. I've never seen a DRO on a manual machine that does not have the /2 function. Until it is implemented, if anyone has done a macro for this I'd appreciate it.
andrew.g
 
Posts: 2
Joined: Sun Oct 21, 2018 6:14 pm

Re: support simple math functions in X, Y, Z edit boxes

Postby dezsoe » Thu Oct 25, 2018 10:29 am

You just need to enable the On-Screen Keyboard plugin. That has a full calculator which knows all functions that UCCNC knows and much more.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: support simple math functions in X, Y, Z edit boxes

Postby cncdrive » Thu Oct 25, 2018 11:16 am

As Dezsoe said the On-Screen Keyboard plugin has the function you looking for.
cncdrive
Site Admin
 
Posts: 5198
Joined: Tue Aug 12, 2014 11:17 pm


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 0 guests