Squaring gantry with home switches

Post anything you want to discuss with others about the software.

Squaring gantry with home switches

Postby Derek » Wed Sep 07, 2016 11:50 am

One of my routers is a stepper unit with A slaved to X. I have a home switch on A and X. Unless I'm mistaken the only way to set the squareness of the gantry is to physically move the limit switch on one of the axis. For me this is a real pain getting it right.

Is there anyway to change the function of the slaved home switch home offset to be an offset in +/- to the master axis? This would allow people to get the switches close and then let UCCNC to do the fine adjustment.

Thanks
Derek
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: Squaring gantry with home switches

Postby Derek » Wed Sep 07, 2016 5:01 pm

Vmax549 wrote:HI Derek can you set the home offsets different with a slaved axis ? That it seems would do it IF it worked with a slaved axis that is.

I am SURE a routine could be created to make it all work.

(;-) TP


I tried that but it seemed like it ignores the A axis offset when it is slaved to the X. If that's not the case then hopefully Balazs will chime in.
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: Squaring gantry with home switches

Postby cncdrive » Thu Sep 08, 2016 11:42 am

Hi Derek,

The UCCNC don't have that option yet, but I think there is a way of doing it is to replace the homing button on the screen with your own macro call button with a macro script which then calls the homing button code and after call this function to unslave the axis:

Function: void Slaveaxis(int masteraxis, int slaveaxis)
Description: This function slaves an axis to an axis. The masteraxis can be axis X, Y and Z axis (numbers 0, 1, 2 respectively) and the slave axis can be A, B and C axis (3, 4, 5 respectively). To remove the slave from the master axis use value 0 on the slaveaxis parameter.
Be careful with saving the axis settings when the slaveaxis function is in use. If the settings are saved without pressing the Apply settings button first then the slave parameter will be saved for the master axis!
Example: exec.Slaveaxis(0,3); //Makes A-axis slaving the X-axis.

And then command the sepearate movements you require on the master and the slave. like exec.Code("G0 A1"); or something like that. :)

And then slave the 2 axis together again with calling the Slaveaxis function on them.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Squaring gantry with home switches

Postby Derek » Thu Sep 08, 2016 11:58 am

I think there is a way of doing it is to replace the homing button on the screen with your own macro call button


Derek calling Vmax549.....Come in Vmax549....Are you receiving over?
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: Squaring gantry with home switches

Postby cncdrive » Thu Sep 08, 2016 12:05 pm

:)
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 24 guests