MaslowCNC / GroundControl

This is the Ground Control software used to control the Maslow CNC Machine
https://www.MaslowCNC.com
GNU General Public License v3.0
275 stars 122 forks source link

Relax chain after measuring chain length in calibration process #787

Open guidobender opened 5 years ago

guidobender commented 5 years ago

I noticed that the 1.26 version does not give an option to relax chain tension again after measuring the chain length. I would suggest that either: a) the chain is tensioned, chain length measured, and the chain automatically relaxed again or b) a button appears that allows to relax the chain length manually

Currently the calibration jumps to the next step and no option exists to remove the chain from the right motor without overcoming the tension.

BarbourSmith commented 5 years ago

a) the chain is tensioned, chain length measured, and the chain automatically relaxed again

I am 99.99% sure that this is the behavior currently.

The function to read the spacing between the motors goes

    def readMotorSpacing(self, dist):
        dist = dist - 2*6.35                                #subtract off the extra two links

        print "Read motor spacing: " + str(dist)
        self.data.config.set('Maslow Settings', 'motorSpacingX', str(dist))

        #put some slack in the chain
        self.data.gcode_queue.put("G91 ")
        self.data.gcode_queue.put("B09 L10 ")
        self.data.gcode_queue.put("G90 ")

        self.readyToMoveOn()

And the way that should work is that G91 switches the machine to relative mode, B09 L10 should add 10mm of slack and G90 switches back to absolute mode.

Can you confirm that this isn't working right, and grab a copy of your log file when it doesn't work so I can dig into what is going on?

guidobender commented 5 years ago

I can confirm that this was not working. My chain remained under tension after the measurement step. Where do I find the log file? My maslow box is shut down right now, but I can get the file out to you tomorrow night.

guidobender commented 5 years ago

Here is the log file that I found. Looks to me like the one you were asking for. Let me know if that helps. log.txt

GeroBH commented 5 years ago

To save some time searching: Line 97736 - 97756 of 157027 The B09 L10 is there. Did the warning "Unable to find valid machine position for chain lengths 2885.65" make it skip the command?