setting up home location in none standard orientation
-
some confusion on my part on a previous post so deleted and reworded.
looking for some advice on the positioning of End stops in relation to axis minimum and maximum.
i have my end stops set up in the following configuration:
X- Low End
Y- High End
Z-High endthey were set up in this orientation rather than the standard due to access for loading stock and tool changes.
i'm getting an issue when homed that my tool position reads :
Tool Position
X 0.0
Y 1400.0
Z 120.00Y/Z should read 0 when homed shouldn't they, if end stops are configured this way?
config.g:
; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Lead 1510" ; set printer name; Network
M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P0.1 S0 ; physical drive 0.1 goes backwards
M569 P0.3 S0 ; physical drive 0.3 goes backwards
M569 P0.2 S0 ; physical drive 0.2 goes backwards
M569 P0.4 S0 ; physical drive 0.5 goes backwards
M584 X0.1 Y0.3:04 Z0.2 E0.5 ; set drive mapping
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X401.69 Y401.57 Z400.76 E401.50 ; set steps per mm
M566 X300.00 Y300.00 Z60.00 E900.00 ; set maximum instantaneous speed changes (mm/min)
M203 X2500 Y2500 Z1000.00 E3000 ; set maximum speeds (mm/min)
M201 X400.00 Y400.00 Z50.00 E400.00 ; set accelerations (mm/s^2)
M906 X2100 Y2100 Z2100 E1400 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X730 Y1400 Z120 S0 ; set axis maxima; Endstops
M574 X1 S1 P"!io1.in" ; configure active-high endstop for low end on X via pin !io1.in
M574 Y2 S1 P"!io2.in" ; configure active-high endstop for high end on Y via pin !io2.in
M574 Z2 S1 P"!io5.in" ; configure active-high endstop for high end on Z via pin !io5.ini have tried switching my mimima and maxima values around but this makes no difference, if its possible to do this would all of the HomeX.g/HomeY.g/HomeZ.g and homeALL.g files need to be changed also relative to the home position on the axis being 0 rather than 1400 as currently shown?
-
Hi,
It can be confusing.
Many folks think home should be at X=0 Y=0 Z=0 and you can code your homing scripts so that is true.
But an endstop does not have to be at the 0 position of an axis.
The purpose of an endstop here is just to inform that firmware that the axis is at some known position. Knowing the min and max of an axis and knowing the current position on that axis the firmware can correctly move to any position on that axis.
The only real criteria is that the endstop be at a position so the homing script always knows in what direction to move to find the endstop.
Imagine if the axis min/max was 0,100 and the endstop was at 50. At the start of the homing script the firmware does not know the current axis position so it cannot determine if it should move in the direction min to max or max to min to find the endstop.
I use IR beam break endstop sensors and they often are placed near one end of the axis but not exactly at the end.
For example I might have an axis with min/max of 0,300 but the endstop sensor might trigger over the range of 295 to 300.
At the start of homing if the current position of the axis was in the range 295 to 300 the endstop would already be triggered.
If that was the case the homing script can back away until the endstop is not triggered and then move toward 300 until the endstop does trigger at 295.
If the endstop sensor was not triggered at the start of homing the homing script simply moves towards 300 until the endstop is triggered.
In either case the current position is now known (295) and if desired the homing script can stop there or it could move to 0 or 300 - or some other position you prefer.
Frederick
-
right, thanks for the quick reply, this makes slightly more sense to me now.
the issue i am having is my CAM (fusion 360) and post processer arent alligned with my CNC router setup, so when i tried to cut my first job the first movement the router makes from the home position starts heading to the other end of the Y Axis and ii get the following error:
3/17/2021, 5:22:18 PM M120 G91 G1 X-10 F6000 G90 M121
Error: G0/G1: target position outside machine limitsis it easier to change the config of the duet or the parameters of the post processor and fusion to be aligned with my router?
-
@UcantCNCme said in setting up home location in none standard orientation:
is it easier to change the config of the duet or the parameters of the post processor and fusion to be aligned with my router?
That is entirely up to you. If both approaches will solve the problem pick which one makes the most sense to your way of thinking.
Frederick