DC42 IR sensor and Z homing
-
Trying to program everything. I got the IR sensor detecting but when I it goes to home Z the carriage moves all the way past X300 and Y300 and grinds. So My axis 's home to the front left as minimum then the head moves all the way to the back right and grinds to keep going to probe Z ill post my homez and bed files below tell me what Im missing.
-
this is my bed file.
; bed.g
G28 ; home
M401 ; deploy Z probe (omit if using bltouch)
G30 P0 X20 Y150 Z-99999 ; probe near a leadscrew
G30 P1 X280 Y280 Z-99999 ; probe near a leadscrew
G30 P2 X280 Y10 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors
M402 ; retract probe (omit if using bltouch) -
; homez.g
; called to home the Z axisG91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G90 ; absolute positioning
G1 X150 Y150 F6000 ; go to first probe point
G30 ; home Z by probing the bed; Uncomment the following lines to lift Z after probing
G91 ; relative positioning
G1 S2 Z5 F100 ; lift Z relative to current position
G90 ; absolute positioning -
; Configuration file for Duet WiFi (firmware version 1.21)
; executed by the firmware on start-up
; General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder movesM667 S1 ; Select CoreXY mode
; Network
M550 P"FT5XY-2" ; Set machine name
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Drives
M584 X0 Y1 Z2:6:7 E3 ; Map Z to drivers 2,6,7 Define unused drivers 3 as extruders
M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it)| X stepper
M569 P1 S1 ; Drive 1 goes backwards(change to S1 to reverse it)| Y Stepper
M569 P2 S1 ; Drive 2 goes forwards | left center Z
M569 P3 S1 ; Drive 3 goes forwards | Extruder S1 for Bondtech, S0 for Titan
M569 P4 S1 ; Drive 4 goes forwards | Extruder (unused)
M569 P5 S1 ; Drive 5 goes backwards | unused, dead
M569 P6 S1 ; Drive 6 goes backwards | right rear Z
M569 P7 S1 ; drive 7 goes backwards | right front z;Leadscrew locations
M671 X-61:361:361 Y150:310:-40 S7.5 ;Front left,(-10,22.5) Rear Left (-10.,227.5) , Right (333,160) S7.5 is the max correction - measure your own offsets, to the bolt for the yoke of each leadscrew; Axis and motor configuration
M350 X16 Y16 Z16 E16 I1 ; Set 16x microstepping for axes & extruder, with interpolation.
M574 X1 Y1 Z0 S1 ; Set homing switch configuration (x,y at min, z at max) IF YOU NEED TO REVERSE YOUR HOMING SWITCHES CHANGE S1 to S0
M906 X800 Y800 Z800 E700 I60 ; Motor currents (mA) - WARNING: Conservative - May trigger stallguard (and prematurely during homing) if sensorless.
M201 X500 Y500 Z02 E500 ; Accelerations (mm/s^2) - WARNING: Conservative
M203 X3000 Y3000 Z150 E1800 ; Maximum speeds (mm/min) - WARNING: Conservative
M566 X200 Y200 Z5 E10 ; Maximum jerk speeds mm/minute - WARNING: Conservative
M92 X200 Y200 Z1600 ; Steps/mm for X.Y
M92 Z1600 ; Steps/mm for Z - TR82 / 1.8 deg stepper or TR84 / 0.9 deg stepper
M92 E837 ; Extruder - 0.9 deg/step (ProjectR3D kit with E3D stepper MT-1701HSM140AE or Standard Titan stepp; Axis Limits
M208 X5 Y0 Z-2 S1 ; Set axis minima
M208 X310 Y310 Z425 S0 ; Set axis maxima; Endstops
M574 X1 Y1 S0 ; Set active low endstops; Z-Probe
M574 Z1 S2 ; Set endstops controlled by probe
M558 P1 H3 F200 T6000 ; Set Z probe type to DC42 IR Sensor and the dive height + speeds
G31 P500 X0 Y-19 Z1 ; Set Z probe trigger value, offset and trigger height
M557 X20:305 Y20:305 S20 ; Define mesh grid; Heaters
M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C; Fans
M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on; Tools
M563 P0 D0 H1 ; 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; Automatic power saving
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss; Custom settings are not configured
; Miscellaneous
T0 ; Select first tool -
As you can see Im using 3 Z axis motors, this is my first time doing that too so maybe I have something wrong there?
-
oh hell it was because my steps per mm for my X and Y were set to 400 instead of 100 doohh so they were moving too far
-
so it homed Z but shows this error? What does this mean? I can't find any M280 command?
Error: M280: Invalid servo index 7 in M280 command
PMG28 Z
Error: M280: Invalid servo index 7 in M280 command -
again, answered my own question, apparently the old deploy and retract g files for when I had the bltouch were conflicting. I deleted those files and error went away
-
Hi,
You seem to be having a very productive conversation with yourself.
Glad to hear you got it working.
Frederick
-
@fcwilt said in DC42 IR sensor and Z homing:
Hi,
You seem to be having a very productive conversation with yourself.
Glad to hear you got it working.
Frederick
LOL yea I'm slowly figuring things out mistake after mistake