Zendstop inverse
-
Hello everyone. I've modified an ender to use as an idex, but instead of hotends, I've designed syringe extruders. I need to be able to zero each tool (x and u) before each print (because syringe tips of different lengths can be used) I'm working on a macro for each tool, but I can't get the Z direction set correctly. The Z endstop It is at the top of the machine. when activating the macro, the z axis rises correctly until the homming is done and then the G28 s-2 is activated to search for the zero of the syringe tip of the X-carriage. But when the printing started, the zero was not saved and the print direction is reversed. This is my macro:
T0
G28
G0 Z30 X120 Y90
G30 S-2
G28This is my config.
; Drives
M569 P0 S1 ; physical drive 0 goes forwards using default driver timings
M569 P1 S0 ; physical drive 1 goes forwards using default driver timings
M569 P2 S1 ; physical drive 2 goes forwards using default driver timings
M569 P3 S1 ; physical drive 3 goes forwards using default driver timings
M569 P4 S1 D3 ; physical drive 4 goes forwards using default driver timings
M569 P5 S1 D3
M584 X0 Y1 Z2 U3 E4:5 ; set drive mapping
M350 X16 Y16 Z16 U16 E16 I1 ; configure microstepping with interpolation
M92 X80.00 Y80.00 Z400 U80 E400:80 ; set steps per mm
M566 X900.00 Y900.00 Z100 U900 E300:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180 U6000 E6000:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20 U500 E250.0:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z1600 U800 E670:400 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
M302 P1
; Axis Limits
M208 X-50 Y0 Z0 U0 S1 ; set axis minima
M208 X210 Y220 U260 Z200 S0 ; set axis maxima; Endstops
M574 X1 S1 P"io0" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io0
M574 Y1 S1 P"io1"
M574 Z2 S1 P"io2" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io1
; configure switch-type (e.g. microswitch) endstop for low end on Z via pin io2
M574 U2 S1 P"io3" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin io2; Z-Probe
M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X15:215 Y15:195 S20 ; define mesh grid; Heaters
M308 S0 P"ADC_0" Y"thermistor" T100000 B4092 ; configure sensor 0 as thermistor on pin ADC_0
M950 H0 C"bed" T0 ; create bed heater output on bed and map it to sensor 0
M307 H0 B1 S1.00 P0 A191.5 C1032.9 D5.0 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M308 S1 P"ADC_1" Y"thermistor" T100000 B4092 ; configure sensor 1 as thermistor on pin ADC_1
M950 H1 C"heat0" T1 ; create nozzle heater output on heat0 and map it to sensor 1
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S280 ; set temperature limit for heater 1 to 280C
M308 S2 P"ADC_2" Y"thermistor" T100000 B4092 ; configure sensor 2 as thermistor on pin ADC_2
M950 H2 C"heat1" T2 ; create nozzle heater output on heat1 and map it to sensor 2
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H2 S280 ; set temperature limit for heater 2 to 280C; Fans
M106 P4 S1
M950 F0 C"fan0" Q120 ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"fan1" Q1000 ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned onM950 F2 C"fan2" Q120 ; create fan 0 on pin fan0 and set its frequency
M106 P2 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
M950 F3 C"fan3" Q1000 ; create fan 1 on pin fan1 and set its frequency
M106 P3 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned onM950 F4 C"fan4" Q500 ; fan PCB
M106 P4 C"PCB" S0 H-1 ;; Tools
; Create a tool that uses the low end (X) carriage
M563 P0 D0 H1 F0 ; tool 0 uses extruder 0, heater 1 and fan 0
G10 P0 X0 Y0 Z0 S0 R0 ; set tool 0 offsets and temperatures; Create a tool that uses the high end (U) carriage
M563 P1 D1 H2 X3 F1 ; tool 1 uses extruder 1, heater 2, fan 2, and maps X to U
G10 P1 Y0 U0 Z0 S0 R0 ; set tool 1 offsets and temperatures ; set initial tool 1 active and standby temperatures to 0CM501
-
-
@tecno I understand that he! is to modify the state of the endstop.
-
@falco22 said in Zendstop inverse:
G28
What do you have in homeall? It could be resetting your Z position.