My custom designed GUI

More
28 Apr 2018 21:16 #109767 by Grotius
Replied by Grotius on topic My custom designed GUI
Hi kcj,

I would do so. I Have tried several times in the past to home with the -1 command, in the python code and also in glade.
In the gmocappy python code it is also done by this way. But it is not showing why it works over there. And that is a big puzzle.

If you trigger the home all button multiple times, then i get complaint's in the past. So to avoid that i did hard coding.
I was not able to find the solution, even asked this before on this forum. If you say that it has to do with the ini file. i will try your advise. Thanks a lot.

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

More
29 Apr 2018 18:02 #109811 by tripwire
Replied by tripwire on topic My custom designed GUI
fwiw, the self.c.home(-1) was the only thing that worked for me to home all axis.

I tried the following, separate homing sequences with the noted results:
#===============================================
        self.c.home(0) 
        self.c.wait_complete()
        self.c.home(1) 
        self.c.wait_complete()
        self.c.home(2)
        self.c.wait_complete()                      
        # this just homes my Y axis, consiting of joints 1 & 2

#==================================================
        self.c.home(0) 
        self.c.wait_complete()
        self.c.home(1) 
        self.c.wait_complete()
        self.c.home(3) 
        self.c.wait_complete()                      
        # This homes axis Y and Z (joints 1, 2 and 3)

#======================================
        self.c.home(3) 
        self.c.wait_complete()
        self.c.home(0) 
        self.c.wait_complete()
        self.c.home(1)
        self.c.wait_complete()                      
        # just homes Y axis (joints 1 & 2)

#============================================
        self.c.home(0) 
        self.c.wait_complete()
        self.c.home(0) 
        self.c.wait_complete()
        self.c.home(1)
        self.c.wait_complete()                      
        # just homes Y

#===========================================
        self.c.home(0) 
        self.c.wait_complete()
        self.c.home(2) 
        self.c.wait_complete()
        self.c.home(3)
        self.c.wait_complete()                      
        # homes Y & Z

I never did manage to home the X-axis this way. The one cool thing about the "separate" method is when more than one axis was homed, they homed simultaneously, instead of waiting for each axis' homing to complete.

One day I'll have this all figured out...! (But then the fun will be gone :) )

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

More
30 Apr 2018 14:04 #109854 by KCJ
Replied by KCJ on topic My custom designed GUI
Grotius: Home all can trigger errors if a shared limit switch is closed when you initiate the homing sequence. I noticed that your python snippet uses an unusual homing sequence, XYZA. Typically you would home Z first to clear any work on the table, and then home X and Y simultaneously. Since neither X or Y will ever be homing at the same time as Z, a lot of configs will be set up to use the same input on the BOB for the X (or Y) and Z switches. So if the X switch is closed after homing (possibly due to poorly configured homing parameters in INI), and you try to re-home all it will fail as the the X and Z share the same input, and since X is already closed closing Z won't do anything.

tripwire: The above is probably the reason you could not get the X axis to home. You can configure multiple axis to home simultaneously in the INI. Just set both axes so they have the same homing sequence number.

The homing parameters in the INI allow for extremely flexible homing configuration, with out having to write any python code! I would strongly suggest you both look at homing documentation. It is one of the best documented parts of LCNC.

This has some very good explanations a diagrams:
linuxcnc.org/docs/devel/html/config/ini-...homing-configuration

Look at the Homing subsection in the INI docs (unfortunate it is not a link-able section):
linuxcnc.org/docs/devel/html/config/ini-config.html

Cheers,
Kurt

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

More
30 Apr 2018 18:15 #109863 by tripwire
Replied by tripwire on topic My custom designed GUI

tripwire: The above is probably the reason you could not get the X axis to home. You can configure multiple axis to home simultaneously in the INI. Just set both axes so they have the same homing sequence number.


Thanks for the homing tip!

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

More
26 Jan 2019 17:13 #124906 by alecuba16
Replied by alecuba16 on topic My custom designed GUI
Hello, someone has an updated version (for 2.8) of this amazing gui?

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

More
29 Mar 2019 14:17 #129897 by terminills
Replied by terminills on topic My custom designed GUI
I know this is an old thread but does anyone have this gui? I really like it. :)

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

More
30 Mar 2019 18:01 #129984 by persei8
Replied by persei8 on topic My custom designed GUI
It is cool but incompatible with the current Linuxcnc release. It would take a significant reprogramming effort. Considering the new GUIs currently in the pipeline, it's not worth the effort. However, you could probably make something that looks similar with the qtpyvcp environment.
The following user(s) said Thank You: KCJ

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

More
26 Jul 2022 12:08 #248316 by pietvr
Replied by pietvr on topic My custom designed GUI
I have made an update for LinuxCNC 2.8. The zipped file is unfortunately to big to upload here.
Here is a link to the zip on gdrive - craftsman2_8.zip
Cheers
Piet

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

More
31 Jul 2022 11:33 #248719 by andypugh
Replied by andypugh on topic My custom designed GUI
Do you want to add it to the next LinuxCNC ISO?

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

More
01 Aug 2022 08:03 #248777 by pietvr
Replied by pietvr on topic My custom designed GUI
Hey Andy,

If you think it is good enough to add to the LinuxCNC ISO then yes go ahead.

I will feel very flattered and regard it as a compliment. Thank you.

Regards

Piet
The following user(s) said Thank You: tommylight

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

Time to create page: 0.098 seconds
Powered by Kunena Forum