Lathe Macros

More
13 Jul 2022 01:46 #247200 by arvidb
Replied by arvidb on topic Lathe Macros

Notes on the keyboard:
As well as the obvious functions and unit conversions, it can be used to enter fractions. For example if you type 1.1/2 it will automatically update to display 1.5000 and 16.17/64 will show 16.2656. This can be used in a limited way to halve the onscreen value eg for entering radius instead of diameter. However it only works for whole numbers: 100/2 will become 50 but 3.14149/2 is interpreted as 3 and 14 thousand halves so won't work.

Now that's a weird and surprising behaviour! Is there a rationale for it? If I'm not mistaken the imperial system normally uses a minus sign to denote addition: e.g. 1-1/2" means one plus a half inch? If the keyboard input supports equations I understand that the minus sign cannot be used that way. But why redefine the decimal point to mean plus? That makes no sense. Why not simply use a plus sign?

So "1.1/2" would become 0.55 and "1+1/2" would become 1.5.

Anyway, great work with the macros! Looks very useful!

Please Log in or Create an account to join the conversation.

More
13 Jul 2022 09:31 #247218 by andypugh
Replied by andypugh on topic Lathe Macros

Now that's a weird and surprising behaviour! Is there a rationale for it?


Yes, it doesn't mean finding somewhere on the keyboard for an extra button that only means "fraction follows"

I thought about using / twice, so that 1/1/2 would be 1.5 and maybe that could work. I initially thought that it might be ambiguous under some circumstances but maybe not, as the denominator is always even and the numerator is almost always odd. You almost never use 2 - 2/8, though it isn't actually wrong as such.

Please Log in or Create an account to join the conversation.

More
13 Jul 2022 10:29 - 13 Jul 2022 10:30 #247221 by arvidb
Replied by arvidb on topic Lathe Macros
Okay. I've never used (or even seen) the keyboard so I don't really know what I'm talking about.

I took a quick look at the code and the keyboard seems to be laid out with glade (loaded with a GtkBuilder from a .ui file)? Adding a '+' key to get division to act "the way it always does" (and get support for addition besides!) seems like a big improvement IMO. Obviously it's your time so please ignore my opinion as you wish. :) The macros should be very useful either way.
Last edit: 13 Jul 2022 10:30 by arvidb. Reason: Spelling...

Please Log in or Create an account to join the conversation.

More
23 Jul 2022 08:12 - 23 Jul 2022 17:21 #248103 by TurnCNCde
Replied by TurnCNCde on topic Lathe Macros
(SORTED OUT)
I DID simply copy the SIM.gmoccapy.lathe_config
and changed the DISPLAY to AXIS  and in a second copy to touchy
that did the trick
##############

Hi i'am new to Touchy and Gladevcp
i tryed ti get the ZIP file from page 2 to run
with no success
i installed from the 2.8.2 iso and updated to 2.9 pre 7123 today
no way to get this py file to a work
please can you provide the newest touchy and axis files as a ZIP
the 2.9 contains a SIM as of gmoccapy Working 

Thank You
Last edit: 23 Jul 2022 17:21 by TurnCNCde. Reason: it workes as simple as

Please Log in or Create an account to join the conversation.

More
23 Jul 2022 14:46 - 23 Jul 2022 14:48 #248123 by arvidb
Replied by arvidb on topic Lathe Macros

I have re-vamped the lathe macros for use with GTK3.It now uses features only usable in Python 3.7 , so Buster is fine, but nothing much before that.

Rather than attach a zip file, I think it makes sense to grab the up-to-date version from the LinuxCNC repository.

You will need these files:
boring.ngc
chamfer.ngc
drilling.ngc
facing.ngc
grooving.ngc
lathehandler.py
LatheMacro.svg
lathemacro.ui
radius.ngc
threading.ngc
turning.ngc


To be clear, these are the ones hiding under configs/sim/gmoccapy/lathe_configs/ , right? Not the ones under nc_files/macros/lathe/?

Are the latter unrelated or old duplicates? If the latter perhaps better remove them to avoid confusion...
Last edit: 23 Jul 2022 14:48 by arvidb. Reason: Added link

Please Log in or Create an account to join the conversation.

More
24 Jul 2022 17:02 #248176 by TurnCNCde
Replied by TurnCNCde on topic Future Macros
Is there a plan for more macros to be
I make lots of v-shaped grooves
 

Please Log in or Create an account to join the conversation.

More
24 Jul 2022 18:04 - 24 Jul 2022 18:05 #248181 by andypugh
Replied by andypugh on topic Lathe Macros

To be clear, these are the ones hiding under configs/sim/gmoccapy/lathe_configs/ , right? Not the ones under nc_files/macros/lathe/?


Yes.

Are the latter unrelated or old duplicates?


These appear to be versions modified to work with the QTCVP macros tab:

linuxcnc.org/docs/stable/html/gui/qtvcp_...tml#_macrotab_widget

I don't know if they are currently working.
Last edit: 24 Jul 2022 18:05 by andypugh.
The following user(s) said Thank You: arvidb

Please Log in or Create an account to join the conversation.

More
24 Jul 2022 18:08 #248182 by andypugh
Replied by andypugh on topic Future Macros

Is there a plan for more macros to be
I make lots of v-shaped grooves

 

The README has some info on how to add your own routines. You need to add a layer to the SVG and create a new tab in the UI file using Glade:
github.com/LinuxCNC/linuxcnc/blob/master...e_configs/README#L35

 

Please Log in or Create an account to join the conversation.

More
24 Jul 2022 18:12 #248183 by andypugh
Replied by andypugh on topic Lathe Macros

please can you provide the newest touchy and axis files as a ZIP

I think that it is better to keep an up-to-date version of the files in the LinuxCNC repository rather than to have several out-of-date ZIP files in this forum thread. 

Ideally there would be a  .deb package that would put the files where needed, but that would not make the required INI file changes.
 

Please Log in or Create an account to join the conversation.

More
27 Sep 2022 10:20 #252840 by virencq
Replied by virencq on topic Lathe Macros
I am using older Lathe macros in Raspberry pi. Latest Lathe macros SVG image not showing.
I am using in Gmoccapy.

Please Log in or Create an account to join the conversation.

Time to create page: 0.155 seconds
Powered by Kunena Forum