Three Z Axis Endstops
-
I have three Z steppers called Z, U and V with separate endstops . The V endstop does not work. I changed cable and switch. When I have all endstops lid the V stepper tries to turn. I bet it is a typo. But I cannot find it. One typo I fixed. But this didn't do the trick.
; Configuration file for Duet Maestro (firmware version 1.21)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2 on Sun Aug 04 2019 20:08:20 GMT+0200 (Central European Summer Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder movesM667 S1 ; Select CoreXY mode
; Network
M550 P"My Printer" ; Set machine name
M551 P"7072560" ; Set password
M552 P192.168.1.10 S1 ; Enable network and set IP address
M553 P255.255.0.0 ; Set netmask
M554 P0.0.0.0 ; Set gateway
M586 P0 S1 ; Enable HTTP
M586 P1 S1 ; Enable FTP
M586 P2 S1 ; Enable Telnet; Drives
M569 P0 S0 ; Physical drive 0 goes backwards
M569 P1 S1 ; Physical drive 1 goes forwards
M569 P2 S0 ; Physical drive 2 goes backwards
M569 P3 S0 ; Physical drive 2 goes backwards
M569 P4 S0 ; Physical drive 2 goes backwards
M569 P5 S1 ; Physical drive 5 goes forwards
M569 P6 S1 ; Physical drive 6 goes forwards
M584 X0 Y1 Z2 U3 V4 E5:6 ; Apply custom drive mapping
M671 X380:0:0 Y120:240:0 ; leadscrews at rear middle, front left and front rightM350 X8 Y8 Z8 U8 V8 E8:8 I0 ; Configure microstepping without interpolation
M92 X160.00 Y160.00 Z1600.00 U1600.00 V1600.00 E635.69:635.69 ; Set steps per mm
M566 X900.00 Y900.00 Z90.00 U90.00 V90.00 E120.00:120.00 ; Set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z300.00 U300.00 V300.00 E1200.00:1200.00 ; Set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z1.00 U1.00 V1.00 E250.00:250.00 ; Set accelerations (mm/s^2)
M906 X800.00 Y800.00 Z1600.00 U1600.00 V1600.00 E800.00:800.00 ; Set motor currents (mA)
M84 S0 ; Disable motor idle current reduction; Endstops
M574 X0 Y1 Z2 U3 V4 S0 ; Set active low and disabled endstops; Join Z Axis
M584 Z2:3:4 ; Join Z, U, V; Axis Limits
M208 X0 Y0 Z0 U0 V0 S1 ; Set axis minima
M208 X200 Y160 Z160 U160 V160 S0 ; Set axis maxima; Z-Probe
M558 P5 H5 F120 T6000 ; Set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
M557 X0:200 Y0:160 S20 ; Define mesh grid; Heaters
M305 P0 X500 R ; Configure PT1000 for heater 0
M143 H0 S90 ; Set temperature limit for heater 0 to 90C; Fans
; Tools
M563 P0 D0 ; Define tool 0
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
M563 P1 D1 ; Define tool 1
G10 P1 X0 Y0 Z0 ; Set tool 1 axis offsets
G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C; Automatic saving after power loss is not enabled
; Custom settings
M555 P2 ; Set output to look like Marlin; Miscellaneous
T0 ; Select first tooland
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2 on Sun Aug 04 2019 20:08:21 GMT+0200 (Central European Summer Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
M584 Z2 U3 V4 ; split Z
G1 S1 Z165 U165 V165 F1800 ; move Z, U and V up until the endstop is triggered
M584 Z2:3:4 ; Join Z, U, V -
This is the console output for M119. How do I associate the endstops to the axis and tell min or max endstop?
M119
Endstops - X: not stopped, Y: not stopped, Z: at max stop, U: at min stop, V: not stopped, Z probe: not stopped -
@thomas_rudloff said in Three Z Axis Endstops:
M574 X0 Y1 Z2 U3 V4 S0 ; Set active low and disabled endstops
https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration
The Parameter are 0,1,2 There is no 3 or 4M350 X8 Y8 Z8 U8 V8 E8:8 I0 ; Configure microstepping without interpolation
Why would you use x8 microsteppings? x16 with interpolation will be much quieter.
M584 Z2:3:4 ; Join Z, U, V
VERY IMPORTANT! Assigning a drive using M584 does not remove its old assignment. Therefore, if you assign a drive that defaults to being an extruder drive, you should also assign the extruder drives explicitly as in the above example. Failure to do so may result in unexpected behaviour.
-
To expand a little bit more on what @Veti said about
M574
: the number behind the axis letter is not the endstop input it is assigned to but where it is located.0
means no end stop on this axis1
axis min end stop2
axis max end stop
On RRF 2.x you have to plug them in the correct order, i.e. corresponding to the stepper driver you use for a axis. With RRF 3 you can define which end stop is connected to which axis and arbitrary assignments are possible.
-
Many thanks to all. I guess I got it.
The x8 is a relic from the time I used TB6600s for the Z Axis and is just preliminary. I will change this later. Wish I would be that far already.