Simple/Manual Centre Finder

More
1 year 2 months ago - 1 year 2 months ago #334234 by JT
Replied by JT on topic Simple/Manual Centre Finder
Actually I'm going to add that to the Flex calculators so all you need to do is drag a container into the GUI and give it the proper name. You can't get much more flexible than that. I'll also add a go to center button.

JT
Last edit: 1 year 2 months ago by JT.
The following user(s) said Thank You: tlightus, Waldemar

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

More
1 year 2 months ago #334237 by JT
Replied by JT on topic Simple/Manual Centre Finder
Now you can just drag a container into any Flex GUI and name it and magically the 3 point center calculator shows up.

This is the Axis style Flex GUI

JT
The following user(s) said Thank You: Waldemar

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

More
1 year 2 months ago - 1 year 2 months ago #334244 by Waldemar
Great work JT. Looks ace. I can't see myself going over to Flex GUI - my 2.8.4 install is super stable and I'm one of those 'if it ain't broke...' guys (my mini mill runs an ancient version of LinuxCNC and has been for the last 11 years or so...) I'm about to install 2.9.2 on a spare stand alone PC to have a play with GladeVCP, so may try out Flex GUI on that machine once I've figured out I can't get anything to work in Glade...  image missing /media/kunena/emoticons/laughing.png

Hey, if you need an image file that integrates better into your tab I'm attaching one here (says POINT 1 instead of POS A etc. is 1:1 ratio and the background colour should match your tab's bg colour).

 
Last edit: 1 year 2 months ago by Waldemar.
The following user(s) said Thank You: JT

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

More
1 year 2 months ago #334245 by JT
Replied by JT on topic Simple/Manual Centre Finder
The cool thing about Flex is you don't need to program anything, the center calculator is built in now. Glade is very old and might not work well with new OS's while Flex is based on PyQt6 and is the only gui to use PyQt6 the rest of Qt gui's use PyQt5 which is at EOL.

And I'm from the same old school as you if it ain't broke don't fix it... my Hardinge CHNC runs on Ubuntu 10 with EMC 2.7 so it's 15 years old and works fine.

JT

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

More
1 year 2 months ago #334246 by Waldemar
Just been perusing some of the threads on Flex - really interesting. I'll definitely have a closer look..!
The following user(s) said Thank You: JT

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

More
1 year 1 month ago - 1 year 1 month ago #334448 by andypugh
This captured my interest, so I made one.
Drop the two attached files into the same folder as your INI file.
Then, in the [DISPLAY] section of the INI file add:
Code:
EMBED_TAB_NAME=Centre Finder EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID} -u ./CentreFinder.py ./CentreFinder.ui
Be careful with the buttons, they are not tested on real hardware.Set Zero - should set the coordinate system zero to be the centre of the probed circle (considers G54 etc but not G92 at the moment)GotoZero does a Z-hop of (currently) 20mm then G0 X0 Y0.The diameter measured has 6mm subtracted from it to allow for probe diameter.The Z-hop and probe diameter are constants defined near the top of the python file. Feel free to edit to suit.This uses GladeVCP. As has been suggested elsewhere, there are other VCP frameworks, but Glade works well enough with Axis.
Last edit: 1 year 1 month ago by andypugh.
The following user(s) said Thank You: Waldemar

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

Time to create page: 0.379 seconds
Powered by Kunena Forum