Page 1 of 1
support simple math functions in X, Y, Z edit boxes

Posted:
Wed Oct 05, 2016 8:12 am
by Ivan Ionov
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
Re: support simple math functions in X, Y, Z edit boxes

Posted:
Wed Oct 05, 2016 10:34 am
by cncdrive
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.
Re: support simple math functions in X, Y, Z edit boxes

Posted:
Wed Oct 05, 2016 11:51 pm
by Derek
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:)
Re: support simple math functions in X, Y, Z edit boxes

Posted:
Wed Oct 24, 2018 11:25 pm
by andrew.g
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.
Re: support simple math functions in X, Y, Z edit boxes

Posted:
Thu Oct 25, 2018 10:29 am
by dezsoe
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.
Re: support simple math functions in X, Y, Z edit boxes

Posted:
Thu Oct 25, 2018 11:16 am
by cncdrive
As Dezsoe said the On-Screen Keyboard plugin has the function you looking for.