Threaded View
-
13-06-2020 #9
Hi Kit,
Quick answer, once the sequence is finished the gantry is square.
So the normal single motor home search (used by everything from gbrl on your 3d printer, mach3 and the DDCS) is:
1. Drive axis until home switch activates (at which point you have likely gone past it)
2. Retract axis very slowly until home switch releases (you are now at 'home').
In a setup with two motors one driving each side of the gantry adjust the switches/inductive targets so that when each respective release point is reached the axis is square.
Challenge now is to 'trick' the controller that is executing the single motor home search algo above into locating the point where both switches exactly release.
This is what the logic I described does. Step 4 is required during retraction as when a motor's home switch releases that motor is at 'home', whilst the remaining motor isn't yet there so requires more steps. My board never generates steps, it only suppresses steps if required. So in this case DDCS still believes it needs further retraction so continues to generate retraction steps, however my board only passes these onto the motor that has not yet reached 'home'. When this motor does finally activate it's switch both motors are at 'home' and my board signals this to the DDCS.
If your question was due to believing that because at step 2 both motors have activated their home switch and the DDCS has been signalled meant that the motors were at 'home' then this is not true. It wouldn't work as you may have overshot due to the momentum of the gantry and the angular momentum in the screw and it is highly unlikely the hysteresis of two switches is identical. This is why everyone does the very slow retraction until release which avoids both these problems.
This whole process will re-square a machine that has gone out of square. The machine only goes out of square if a driver misses some steps due to noise, a motor stalls or if someone turned a ballscrew by hand when the machine was off.Last edited by devmonkey; 13-06-2020 at 03:31 PM.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
BUILD LOG: 8x4 router build. Steel base & Aluminium gantry gantry
By D-man in forum DIY Router Build LogsReplies: 57Last Post: 13-12-2019, 10:43 AM -
BUILD LOG: Design stage - All steel - 1200x750x110 - aluminium capable (hopefully)
By oliv49 in forum DIY Router Build LogsReplies: 3Last Post: 08-06-2018, 01:18 PM -
welding steel base or just getting aluminium extrusion
By reefy86 in forum Gantry/Router Machines & BuildingReplies: 200Last Post: 15-01-2018, 08:55 AM -
BUILD LOG: Steel Frame, Aluminium Hybrid Design Thread
By f1sy in forum DIY Router Build LogsReplies: 0Last Post: 23-02-2016, 10:04 AM -
Steel vs Aluminium
By gavztheouch in forum Metalwork DiscussionReplies: 4Last Post: 26-05-2014, 10:11 PM
Bookmarks