Config.g file for CNC Application with dual Y drives Question
-
I created this Duet 3 (latest version) config.g file using RRF configurator in custom mode for the CNC machine I am building. I removed the commands related to heaters and extruders as there are none in a CNC router and the machine only has one fan and that is used to cool the control box. The machine has two Y axis drive motors and I would like them both to be controlled with one end stop. I assigned the second Y axis to the E0 pins and I would like to know if this file is properly set up to control both Y axis with the io1.in end stop. If anyone has any comments on anything else in this file please comment on that as well. Thanks
; Configuration file for Duet 3 (firmware version 3.3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.10 on Tue Apr 19 2022 16:45:47 GMT-0400 (Eastern Daylight Time); General preferences
M575 P1 S1 B57600 ; enable support for PanelDue
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Jim’s Duet 3" ; set printer name; Drives
M569 P0.0 S1 ; physical drive 0.0 goes forwards
M569 P0.1 S1 ; physical drive 0.1 goes forwards
M569 P0.2 S1 ; physical drive 0.2 goes forwards
M569 P0.3 S1 ; physical drive 0.3 goes forwards
M584 X0.0 Y0.1 E0.3 Z0.2 ; set drive mapping
M350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation
M92 X80.00 Y80.00 Z400.00 E420.00:420.00 ; set steps per mm
M566 X900.00 Y900.00 Z60.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800:800 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 X800 Y800 Z800 S0 ; set axis maxima; Endstops
M574 X1 S1 P"io0.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io0.in
M574 Y1 S1 P"io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Left Y via pin io1.in
M574 E0 S1 P"io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Right Y via pin io1.in
M574 Z1 S1 P"io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin io2.in; Fans
M950 F0 C"out4" Q500 ; create fan 0 on pin out4 and set its frequency
M106 P0 S1 H-1 ; set fan 0 value. Thermostatic control is turned off; Tools
M563 P0 S"Router" D0 ; define tool 0
G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets; set initial tool 0 active and standby temperatures to 0C; Custom settings are not defined
; Miscellaneous
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
T0 ; select first tool -
@jadoglio said in Config.g file for CNC Application with dual Y drives Question:
M574 Y1 S1 P"io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Left Y via pin io1.in
M574 E0 S1 P"io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Right Y via pin io1.inYou're trying to use the same pin for two endstops here.
If you send M98 P"config.g" to check for syntax errors it will likely complain.
If you have two motors for Y each with their own drivers and you want to use them both for the Y axis you need to specify that in the M584 command. Such as
M584 Y0.1:0.3
That tells it that Y axis is made up of drivers 1 and 3 together.For the endstop, if you only have a single one, you just need to define it for the Y axis and that's it. It will stop both motors when the endstop is triggered.
So remove this line entirely
M574 E0 S1 P"io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Right Y via pin io1.in
-
@phaedrux Thank You that is exactly what I needed to know. Appreciate the help.
-
-