Duet 3hc mainboard, x axis running mirrored
-
Hello this is a repost with increased information as requested, I was unable to edit the old post.
I am setting up the stronghold pro with the duet 3hc board.
The settings/config files are imported from a duet 2 running an ooznest workbee. This machine homed to the back right and the new machine is the back left.
The problem is the x axis is inverted/flipped and is running effectively mirrored and I need help flipping it.
It homes fine to the limit switch but when I test a file created in fusion 360 it runs flipped on the x axis.
I need pointing to which settings to adjust, im think its something to do with the homing and how the coordinates are set but would like confirmation before changing a million numbers and hoping for the best.
config.g
config.g ; Configuration file for Duet ; executed by the firmware on start-up ; WorkBee Firmware Version 1.0.7 ; Configure Connection - ENABLE ONLY ONE OF THE BELOW THREE ;M552 S1 ; Enable Wifi Network ;M552 S2 ; Enable Access Point Mode M552 S1 P192.168.1.14 ; Enable Ethernet - Change IP Address to suit ; - - - - - - - - - - - - - - - - - - - - ; DO NOT CHANGE ANY OF SETTINGS BELOW ; TO MAKE A CHANGE, COPY THE LINE OF CODE, PASTE IT INTO customconfig.g. THE CHANGE CAN THEN BE MADE IN customconfig.g ; ANY ADDITIONAL SETTINGS SHOULD BE PUT IN customconfig.g ; General preferences M453 ; Put the machine into CNC Modes M550 PWorkBee ; Set machine name G90 ; Set absolute coordinates ; Network M586 P0 S1 ; Enable HTTP M586 P1 S0 ; Disable FTP M586 P2 S0 ; Disable Telnet ; Configure Drives M569 P0 S1 ; Drive 0 goes forwards - X M569 P1 S0 ; Drive 1 goes forwards - Y 1 M569 P2 S0 ; Drive 2 goes forwards - z M569 P3 S1 ; Drive 3 goes forwards - Y 0 M584 X0 Y1:3 Z2 ; Apply drive mapping to axes ; Configure Axes M92 X320 Y320 Z320; Set steps per mm M350 X16 Y16 Z16 I1 ; Configure microstepping M566 X500 Y500 Z500 ; Set maximum instantaneous speed changes (mm/min) M203 X3840 Y3840 Z3840 ; Set maximum speeds (mm/min) M201 X150 Y150 Z150 ; Set accelerations (mm/s^2) M906 X3000 Y3000 Z3000 I100 ; Set motor currents (mA) ; Configure Axis Limits M208 X0 Y0 Z0 S1 ; Set axis minima M208 X1500 Y1500 Z130 S0 ; Set axis maxima ; Configure Endstops M574 X2 S1 P"io0.in"; M574 Y2 S1 P"io1.in"; M574 Z2 S1 P"io2.in"; Set active low endstops ; Emergency Stop M950 J1 C"io3.in"; M581 P1 T0 S1 R0; ;M582 T0 ; Other Settings M140 H-1 ; Disable heated bed M564 S1 H1 ; Disable jog commands when not homed M911 S21.0 R23 P"G91 G1 Z3 F1000" ; Configure power loss resume M501 ; Load Stored Parameters M98 Pcustomconfig.g ; Execute custom config settings
homeall.g
; homeall.g ; called to home all axes G91 ; relative positioning G21 ; Set units to mm G1 H1 Z94 F900 ; move quickly to Z axis endstop and stop there (first pass) G1 Z-3 F2400 ; go back a few mm G1 H1 Z94 F300 ; move slowly to z axis endstop once more (second pass) G1 H1 X1500 Y1500 F2400 ; move quickly to X and Y axis endstops and stop there (first pass) G92 X1500 Y1500 Z94 ; Set Home Position - change to your machine size. G1 X-3 Y-3 F2400 ; go back a few mm G1 H1 X1500 Y1500 F300 ; move slowly to X and Y axis endstops once more (second pass) G92 X1500 Y1500 Z94 ; Set Home Position please change to your machine size. G90 ; absolute positioning
homez.g
; homez.g ; called to home the Z axis G91 ; relative positioning G21 ; Set units to mm G1 H1 Z130 F1500 ; move quickly to Z axis endstop and stop there (first pass) G92 Z130 ; Set Home Position - change to your machine size. G1 Z-3 F2400 ; go back a few mm G1 H1 Z130 F300 ; move slowly to X axis endstop once more (second pass) G92 Z130 ; Set Home Position - change to your machine size. G90 ; absolute positioning
homex.g
; homex.g ; called to home the X axis G91 ; relative positioning G21 ; Set units to mm G1 H1 Z94 F900 ; move quickly to Z axis endstop and stop there (first pass) G1 Z-3 F2400 ; go back a few mm G1 H1 Z94 F300 ; move slowly to z axis endstop once more (second pass) G1 H1 X1500 F2400 ; move quickly to X and Y axis endstops and stop there (first pass) G92 X1500 Z94 ; Set Home Position please - to your machine size. G1 X-3 F2400 ; go back a few mm G1 H1 X1500 F300 ; move slowly to X and Y axis endstops once more (second pass) G92 X1500 Z94 ; Set Home Position please - to your machine size. G90 ; absolute positioning
homey.g
; homey.g ; called to home the Y axis G91 ; relative positioning G21 ; Set units to mm G1 H1 Z94 F900 ; move quickly to Z axis endstop and stop there (first pass) G1 Z-3 F2400 ; go back a few mm G1 H1 Z94 F300 ; move slowly to z axis endstop once more (second pass) G1 H1 Y1500 F2400 ; move quickly to X and Y axis endstops and stop there (first pass) G92 Y1500 Z94 ; Set Home Position - change to your machine size. G1 Y-3 F2400 ; go back a few mm G1 H1 Y1500 F300 ; move slowly to X and Y axis endstops once more (second pass) G92 Y1500 Z94 ; Set Home Position - change to your machine size. G90 ; absolute positioning
-
- Decide where you want X0 Y0 to be. Popular choices are the front left corner of the bed, or the centre of the bed.
- Decide which direction you want to be positive X and which direction should be positive Y. Usually positive X is to the right and positive Y is away from you. Other directions are possible but be sure to choose a right hand coordinate system.
- Adjust the motor directions in config.g to get positive X and Y movements in the desired direction.
- Establish whether your endstop switches are high end (at axis maximum) or low end (at axis minimum) and configure the endstops accordingly in the M574 commands in config.g.