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.
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 :) )
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
More
30 Apr 2018 18:15 #109863 by tripwire
Replied by tripwire on topic My custom designed GUI

kcj wrote: 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!
Time to create page: 0.067 seconds
Powered by Kunena Forum