Congig.g and bed.g files modified program confirmation
-
Greetings,
I have recently added Duet 3D Expansion Board 3 HC to my Duet 3D Main Board 6 HC. And have made changes to the config.g and bed.g files. Request the Input of members to check for any corrections, improvements or suggestions
Config.g file
; Drives
G4 S2 ; wait for expansion boards to start
M569 P0.0 S0 ; physical drive 0.0 goes backwards
M569 P0.1 S0 ; physical drive 0.1 goes backwards
M569 P0.2 S0 ; physical drive 0.2 goes backwards
M569 P0.3 S0 ; physical drive 0.3 goes backwards
M569 P1.0 S0 ; physical drive 1.0 goes backwards
M569 P1.1 S0 ; physical drive 1.1 goes backwards
M569 P1.2 S0 ; physical drive 1.2 goes backwards
M584 X1.0 Y1.1:1.2 Z0.0:0.1:0.2:0.3 ; set drive mapping, Z Motors dr 0(front left),dr 1(rear left),dr 2(rear right),dr 3(front right)
M671 X5:5:545:545 Y70:455:455:70 S5.0 ; leadscrews at Front left, Rear Left, Rear Right and Front right
M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation
M92 X400.00 Y400.00 Z400.00 ; set steps per mm
M566 X300.00 Y300.00 Z180.00 ; set maximum instantaneous speed changes (mm/min)
M203 X3000.00 Y3000.00 Z600.00 ; set maximum speeds (mm/min)
M201 X100.00 Y100.00 Z20.00 ; set accelerations (mm/s^2)
M906 X2520 Y2520 Z2520 I100 ; set motor currents (mA) and motor idle factor in per cent
M84 S3600 ; Set idle timeout; Endstops
M574 X1 S1 P"!1.io0.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io0.in via CAN address 1
M574 Y1 S1 P"!1.io1.in+!1.io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y1 & Y2 via pin io1.in & io2.in via CAN address 1
M574 Z2 S1 P"!io0.in+!io1.in+!io2.in+!io3.in" ; configure switch-type (e.g. microswitch) endstop for High end on Z via pin io0.in,io1.in,io2.in,io3.in in the Main Board; bed.g
; called to perform automatic bed compensation via G32
M561 ; clear any bed transform
G28 ; home
G90 ; set to absolute positioning
G30 P0 X5 Y70 Z-1.0 ; probe near a leadscrew
G30 P1 X5 Y455 Z-1.0 ; probe near a leadscrew
G30 P2 X545 Y455 Z-1.0 ; probe near a leadscrew
G30 P3 X545 Y70 Z-1.0 S4 ; probe near a leadscrew and calibrate 4 motors
M400 ; wait for current moves to finish -
@SANJR your configuration file looks plausible to me, except that 400 steps/mm for X and Y would be unusual unless those axes are driven by leadscrews or ball screws. You have not declared any extruder drives, so I guess it is a CNC machine.
I don't see any M558 command to configure the Z probe.
-
@dc42 Thanks for the feedback
Yes, M8 lead screws are being used for the axes, and the machine is planned for CNC purposes.
Heregoes the M558 command
; Z-Probe
M558 P5 C"!io8.in" H30 F300 T6000 ; enable Z probe sensor endstop io8.in (Main Board) set dive height, probe speed and travel speed
G31 X0 Y0 Z15.0 ; set or report current probe status
M557 X0:550 Y70:460 S100 ; define mesh grid