Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    U axis malfunction

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    9
    361
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • VA3Dnimersundefined
      VA3Dnimers
      last edited by

      Hi,
      I've got a problem with the U axis configuration. I've checked the following topic: U axis don't print but couldn't find the right solution for my printer. U axis homes well, but during printing it stays in place or hits the X axis extruder which is waiting in its homing position on the other side of the axis. I cannot get it to print anything. Maybe you wil be able tell me what I did wrong, because I'm on the verge of giving up on the second extruder.

      The problem occurs always during printing, no matter if copy or multicolour mode.
      My configuration looks like this:

      ; Drives
      M584 X0.2 Y40.0 Z0.0:0.1 E0.5:0.4 U0.3                     ; set drive mapping
      M569 P0.2 S1                                       ; physical drive 0.2 goes forwards
      M569 P40.0 S1 R0 T5:5:5:5							; physical drive 40.0 goes forwards
      M569 P0.1 S0
      M569 P0.3 S0
      M569 P0.0 S0                                       ; physical drive 0.0 goes forwards
      M569 P0.5 S1                                       ; physical drive 0.5 goes forwards
      M569 P0.4 S1                                       ; physical drive 0.4 goes forwards
      M671 X-20:220 Y0:0 U-20:220 S0.5
      M208 X-5:205 Y0:200 U-5:205
      M350 X16 Y16 Z16 E16:16 U16 I0                         ; configure microstepping with interpolation
      M92 X100.35 Y80.10 Z320.00:320.00 E896.15:896.15 U100.35         ; set steps per mm
      M566 X500.00 Y500.00 Z1000.00:60.00 E500.00:500.00 U500.00         ; set maximum instantaneous speed changes (mm/min)
      M203 X12000.00 Y12000.00 Z800.00:800.00 E12000.01:12000.01 U12000.00    ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z200.00:200.00 E500.01:500.01 U500.00        ; set accelerations (mm/s^2)
      M906 X1200 Y3000 Z900:900 E1900:1900 U1200 I30                ; set motor currents (mA) and motor idle factor in per cent
      M84 S300000                                            ; Set idle timeout
      
      M572 D0:1 S0.2                  ; set extruder 0, 1 and 2 pressure advance to 0.2 seconds (RepRapFirmware 1.20 and later)
      
      ; Axis Limits
      M208 X0 Y0 Z0 U0 S1                                  ; set axis minima
      M208 X450 Y500 Z475 U450 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"io2.in"                               ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io2.in
      M574 Z2 S1 P"io5.in+io4.in"                               ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io4.in
      M574 U1 S1 P"io3.in"
      
      ; 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"temp2" Y"thermistor" T100000 B4138       ; configure sensor 0 as thermistor on pin temp2
      M950 H0 C"out0" T0                                 ; create bed heater output on out0 and map it to sensor 0
      M307 H0 R5.187 K0.400:0.000 D41.47 E1.35 S0.00 B1  ; enable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                            ; map heated bed to heater 0
      M143 H0 S100                                       ; set temperature limit for heater 0 to 100C
      M308 S2 P"temp0" Y"thermistor" T100000 B4138       ; configure sensor 1 as thermistor on pin temp0
      M950 H2 C"out2" T2                                 ; create nozzle heater output on out1 and map it to sensor 1
      M307 H2 R2.962 K0.727:0.000 D8.70 E1.35 S1.00 B0
      M307 H2 S240                                       ; set temperature limit for heater 1 to 240C
      M308 S1 P"temp1" Y"thermistor" T100000 B4138       ; configure sensor 1 as thermistor on pin temp1
      M950 H1 C"out1" T1                                 ; create nozzle heater output on out1 and map it to sensor 1
      M307 H1 R80.490 K900:0.0 D20.02 E1.35 S0.05 B0 I0.5 V23.8                                   ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S260                                       ; set temperature limit for heater 1 to 240C
      
      ; Fans
      M950 F0 C"out9" Q500                               ; create fan 0 on pin out7 and set its frequency
      M106 P0 S1 H1 T45                                  ; set fan 0 value. Thermostatic control is turned on
      M950 F1 C"out8" Q500                               ; create fan 1 on pin out8 and set its frequency
      M106 P1 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
      M950 F2 C"out7" Q500                               ; create fan 1 on pin out8 and set its frequency
      M106 P2 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
      M950 F3 C"out4" Q500                               ; create fan 1 on pin out8 and set its frequency
      M106 P3 S1 H0 T28:40                                  ; set fan 1 value. Thermostatic control is turned on
      M950 F4 C"out5" Q500                               ; create fan 1 on pin out8 and set its frequency
      M106 P4 S1 H1 T120                                  ; set fan 1 value. Thermostatic control is turned on
      
      ; Tools
      M563 P0 D0 H1 F0                                 ; define tool 0
      G10 P0 X0 Y0 Z0                                    ; set tool 0 axis offsets
      G10 P0 R215 S215                                       ; set initial tool 0 active and standby temperatures to 70C
      
      M563 P1 D1 H2 X3 F1                                    ; define tool 1
      G10 P1 X0 Y0 Z0                                    ; set tool 1 axis offsets
      G10 P1 R215 S215                                       ; set initial tool 1 active and standby temperatures to 70C
      
      ; Create a tool that prints 2 copies of the object using both carriages
      M563 P2 D0:1 H1:2 X0:3 F0:1 ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U
      G10 P2 X0 Y0 U0 S215 R215 ; set tool offsets and temperatures
      M567 P2 E1:1 ; set mix ratio 100% on both extruders```
      
      ; tfree0.g
      
      M83              ; relative extruder movement
      M106 S0          ; turn off our print cooling fan
      G91              ; relative axis movement
      G1 Z5 F500       ; up 3mm
      G90              ; absolute axis movement
      G1 H2 X10 F6000 ; park the X carriage at -200mm
      ```
      ; tpost0.g
      
      M106 R2     ; restore print cooling fan speed
      M116 P0     ; wait for tool 0 only to reach operating temperature
      M83         ; relative extruder mode
      
      
      ; tfree1.g
      
      M83              ; relative extruder movement
      M106 S0          ; turn off our print cooling fan
      G91              ; relative axis movement
      G1 Z5 F500       ; up 3mm
      G90              ; absolute axis movement
      G1 H2 U10 F6000 ; park the U carriage at -200mm
      M579 
      
      ; tpost1.g
      
      M106 R2     ; restore print cooling fan speed
      M116 P1     ; wait for tool 1 heaters to reach operating temperature
      M83         ; relative extruder movement
      
      ; tfree2.g
      
      M83          ; relative extruder movement
      M106 S0      ; turn off our print cooling fan
      G91          ; relative axis movement
      G1 Z5 F500   ; up 5mm
      G90          ; absolute axis movement
      G28 X U      ; home the X and U carriages
      
      ; tpost2.g
      
      M106 R2      ; restore print cooling fan speed
      M116 P2      ; wait for tool 2 heaters to reach operating temperature
      M83          ; relative extruder movement
      M567 P2 E0.5:0.5 ; set tool mix ratio
      M568 P2 S1   ; turn on mixing
      1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators
        last edited by

        @VA3Dnimers I'm guessing this is an IDEX machine? Is there part of your config.g that is before the ;Drives section? Because you need to define it as an IDEX machine if so, usually using M669. There's also a page here on setting up IDEX machines: https://docs.duet3d.com/User_manual/Machine_configuration/Configuration_IDEX

        There are some errors in your config.g. First, all of the following should only have one Z parameter:

        M92 X100.35 Y80.10 Z320.00:320.00 E896.15:896.15 U100.35         ; set steps per mm
        M566 X500.00 Y500.00 Z1000.00:60.00 E500.00:500.00 U500.00         ; set maximum instantaneous speed changes (mm/min)
        M203 X12000.00 Y12000.00 Z800.00:800.00 E12000.01:12000.01 U12000.00    ; set maximum speeds (mm/min)
        M201 X500.00 Y500.00 Z200.00:200.00 E500.01:500.01 U500.00        ; set accelerations (mm/s^2)
        M906 X1200 Y3000 Z900:900 E1900:1900 U1200 I30                ; set motor currents (mA) and motor idle factor in per cent
        

        Motors on axes with multiple motors must be identical, because they need to share the settings.

        Generally, on an IDEX, you set the X limits so the X tool can't reach the tool on U. This usually means there is a limit on how far across the bed each of the tools can move, and both tools may not be able to cover the whole bed. You also have two places where M208 is being set, so these lines also need adjusting:

        ; Drives
        M208 X-5:205 Y0:200 U-5:205
        
        ; Axis Limits
        M208 X0 Y0 Z0 U0 S1                                  ; set axis minima
        M208 X450 Y500 Z475 U450 S0                             ; set axis maxima
        

        Assuming X tool is parked at X0, and U tool is parked at 220, you probably want to limit them so X can't reach to U, something like:
        M208 X-5:180 Y0:200 U50:205
        Your U endstop is currently marked as being at the low end, ie where the X tool homes:

        M574 U1 S1 P"io3.in"
        

        Again, assuming this is an IDEX machine, you probably want it to home to the max end, so this should be M574 U2 S1 P"io3.in". What does your homeu.g file look like?

        M671 only uses X and Y positions:

        M671 X-20:220 Y0:0 U-20:220 S0.5
        

        Delete the U values.

        When creating a tool that prints multiple copies you need to offset the X and U axes; currently they are trying to print in the same place because of the G10 offsets. See https://docs.duet3d.com/User_manual/Machine_configuration/Configuration_IDEX#creating-a-tool-that-uses-more-than-one-carriage-to-print-multiple-copies-of-an-object

        M563 P2 D0:1 H1:2 X0:3 F0:1 ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U
        G10 P2 X0 Y0 U0 S215 R215 ; set tool offsets and temperatures
        

        You can check that your config.g is formatted correctly, even if the numbers are not correct, by sending G98 P"config.g". This should highlight some errors in the use of Gcodes.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        VA3Dnimersundefined 1 Reply Last reply Reply Quote 0
        • VA3Dnimersundefined
          VA3Dnimers @droftarts
          last edited by

          @droftarts
          Hi, thank you for your reply. Yes, it is an IDEX machine.
          I've applied most of the changes you listed. However, I still have some issues.
          First thing is, after applying G98 P"config.g" I receive Warning: G98: Command is not supported

          What is more, after changing the offset in

          G10 P2 X0 Y0 U0 S215 R215 ; set tool offsets and temperatures
          

          my X carriage, which worked well, is pushing the end of the axis, no matter what value I apply, example used: X50, X70, X100, X-50, always the same (for U axis always opposites of those values), and U still didn't move.
          My homeu.g looks like this:

          G91               ; relative positioning
          G1 H2 Z5 F6000    ; lift Z relative to current position
          G1 H1 U665 F1800 ; move quickly to U axis endstop and stop there (first pass)
          G1 H2 U-5 F6000    ; go back a few mm
          G1 H1 U665 F360  ; move slowly to U axis endstop once more (second pass)
          G1 H2 Z-5 F6000   ; lower Z again
          G90    
          

          It is after the changes, because thanks to you I finally understood how to calibrate the motors and which way should they work, so i changed

          M569 P0.3 S0
          

          into

          M569 P0.3 S1
          

          And now, at least I think, the directions of the X and U carriege work as they should.

          If you have any idea what can I change or what should I post here please let me know.

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @VA3Dnimers
            last edited by

            @VA3Dnimers said in U axis malfunction:

            First thing is, after applying G98 P"config.g" I receive Warning: G98: Command is not supported

            Oops, that should be M98 P"config.g".

            Please can you post your full config.g again, so I can see what changes have been made.

            For the tool offset:
            With the first two tools, you are printing across the same area for each tool, but individually. The X and U coordinate is the same, so that each tool can go to the same place on the bed. The centre of your bed, which is 450 wide according to your M208, is X225.

            With the third tool, you can only use half the bed for each nozzle; they cannot overlap, or the printed objects will overlap. You only slice one object for the Gcode, but you can only use half the bed width. Then each tool needs to be centred in it's half of the bed. The position of the bed centre is X/Y 225, and the tools need to be offset in each direction by half this amount, ie 112.5. As it says here:

            tool offsets are given as the offset of the nozzle relative to the print head reference point, so the signs are opposite to what you might expect because tool offsets are subtracted from the required printing locations during printing.

            So I think the offset should be G10 P2 X112.5 U-112.5. Note this is only for the third, duplicating, tool. The offsets should stay the same ie X0 Y0 (though this may need adjusting to get them to print in the same place) for the other two.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            VA3Dnimersundefined 1 Reply Last reply Reply Quote 0
            • VA3Dnimersundefined
              VA3Dnimers @droftarts
              last edited by

              @droftarts

              ; Drives
              M584 X0.2 Y40.0 Z0.0:0.1 E0.5:0.4 U0.3                     ; set drive mapping
              M569 P0.2 S1                                       ; physical drive 0.2 goes forwards
              M569 P40.0 S1 R0 T5:5:5:5							; physical drive 40.0 goes forwards
              M569 P0.1 S0
              M569 P0.3 S1
              M569 P0.0 S0                                       ; physical drive 0.0 goes forwards
              M569 P0.5 S1                                       ; physical drive 0.5 goes forwards
              M569 P0.4 S1                                       ; physical drive 0.4 goes forwards
              M671 X-20:220 Y0:0 S0.5
              M208 X-5:205 Y0:200 U-5:205
              M350 X16 Y16 Z16 E16:16 U16 I0                         ; configure microstepping with interpolation
              M92 X100.35 Y80.10 Z320.00:320.00 E896.15:896.15 U100.35         ; set steps per mm
              M566 X500.00 Y500.00 Z1000.00:1000.00 E500.00:500.00 U500.00         ; set maximum instantaneous speed changes (mm/min)
              M203 X12000.00 Y12000.00 Z800.00:800.00 E12000.01:12000.01 U12000.00    ; set maximum speeds (mm/min)
              M201 X500.00 Y500.00 Z200.00:200.00 E500.01:500.01 U500.00        ; set accelerations (mm/s^2)
              M906 X1200 Y3000 Z900:900 E1900:1900 U1200 I30                ; set motor currents (mA) and motor idle factor in per cent
              M84 S300000                                            ; Set idle timeout
              
              M572 D0:1 S0.2                  ; set extruder 0, 1 and 2 pressure advance to 0.2 seconds (RepRapFirmware 1.20 and later)
              
              ; Axis Limits
              M208 X-5:450 Y0:500 Z0:475 U20:538                                   ; set axis minima/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"io2.in"                               ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io2.in
              M574 Z2 S1 P"io5.in+io4.in"                               ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io4.in
              M574 U2 S1 P"io3.in"
              
              ; 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"temp2" Y"thermistor" T100000 B4138       ; configure sensor 0 as thermistor on pin temp2
              M950 H0 C"out0" T0                                 ; create bed heater output on out0 and map it to sensor 0
              M307 H0 R5.187 K0.400:0.000 D41.47 E1.35 S0.00 B1  ; enable bang-bang mode for the bed heater and set PWM limit
              M140 H0                                            ; map heated bed to heater 0
              M143 H0 S100                                       ; set temperature limit for heater 0 to 100C
              M308 S2 P"temp0" Y"thermistor" T100000 B4138       ; configure sensor 1 as thermistor on pin temp0
              M950 H2 C"out2" T2                                 ; create nozzle heater output on out1 and map it to sensor 1
              M307 H2 R2.962 K0.727:0.000 D8.70 E1.35 S1.00 B0
              M307 H2 S240                                       ; set temperature limit for heater 1 to 240C
              M308 S1 P"temp1" Y"thermistor" T100000 B4138       ; configure sensor 1 as thermistor on pin temp1
              M950 H1 C"out1" T1                                 ; create nozzle heater output on out1 and map it to sensor 1
              M307 H1 R80.490 K900:0.0 D20.02 E1.35 S0.05 B0 I0.5 V23.8                                   ; disable bang-bang mode for heater  and set PWM limit
              M143 H1 S260                                       ; set temperature limit for heater 1 to 240C
              
              ; Fans
              M950 F0 C"out9" Q500                               ; create fan 0 on pin out7 and set its frequency
              M106 P0 S1 H1 T45                                  ; set fan 0 value. Thermostatic control is turned on
              M950 F1 C"out8" Q500                               ; create fan 1 on pin out8 and set its frequency
              M106 P1 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
              M950 F2 C"out7" Q500                               ; create fan 1 on pin out8 and set its frequency
              M106 P2 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
              M950 F3 C"out4" Q500                               ; create fan 1 on pin out8 and set its frequency
              M106 P3 S1 H0 T28:40                                  ; set fan 1 value. Thermostatic control is turned on
              M950 F4 C"out5" Q500                               ; create fan 1 on pin out8 and set its frequency
              M106 P4 S1 H1 T120                                  ; set fan 1 value. Thermostatic control is turned on
              
              ; Tools
              M563 P0 D0 H1 F0                                 ; define tool 0
              G10 P0 X0 Y0 Z0                                    ; set tool 0 axis offsets
              G10 P0 R215 S215                                       ; set initial tool 0 active and standby temperatures to 70C
              
              M563 P1 D1 H2 X3 F1                                    ; define tool 1
              G10 P1 X38 Y-4 Z0                                    ; set tool 1 axis offsets
              G10 P1 R215 S215                                       ; set initial tool 1 active and standby temperatures to 70C
              
              ; Create a tool that prints 2 copies of the object using both carriages
              M563 P2 D0:1 H1:2 X0:3 F0:1 ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U
              G10 P2 X-70 Y0 U70 S215 R215 ; set tool offsets and temperatures
              M567 P2 E1:1 ; set mix ratio 100% on both extruders
              
              
              ; 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
              
              
              
              droftartsundefined 1 Reply Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @VA3Dnimers
                last edited by

                @VA3Dnimers A few errors:

                Given that your bed is 500mm wide, I think this is incorrect for the position of the leadscrews:

                M671 X-20:220 Y0:0 S0.5
                

                See M671 to set these correctly.

                These Gcodes still have a second value in for Z. Remove the second value.

                M92 X100.35 Y80.10 Z320.00:320.00 E896.15:896.15 U100.35         ; set steps per mm
                M566 X500.00 Y500.00 Z1000.00:1000.00 E500.00:500.00 U500.00         ; set maximum instantaneous speed changes (mm/min)
                M203 X12000.00 Y12000.00 Z800.00:800.00 E12000.01:12000.01 U12000.00    ; set maximum speeds (mm/min)
                M201 X500.00 Y500.00 Z200.00:200.00 E500.01:500.01 U500.00        ; set accelerations (mm/s^2)
                M906 X1200 Y3000 Z900:900 E1900:1900 U1200 I30                ; set motor currents (mA) and motor idle factor in per cent
                

                You still have an extra M208 command in the drives section.

                In tfree0.g, you are parking the X axis tool at X10, which is still in the area where the U axis may hit it.
                In tfree1.g, you are parking the U axis tool at U/X10, which will be up against the other tool. Park it at U535.

                When you select tool 1 (using just the U axis), does the tool move correctly?

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                VA3Dnimersundefined 1 Reply Last reply Reply Quote 0
                • VA3Dnimersundefined
                  VA3Dnimers @droftarts
                  last edited by

                  @droftarts
                  Changes applied, but still have to tinker with the M671.

                  After choosing the Tool1, but not printing, the only thing that is odd is, when I move the T1 for example to the middle of the bed and move any other axis, the carriage U goes to it's homing position. When this happens and I move U axis even for a 1mm, the carriege goes back to the position before this "odd homing"

                  When I try to print with T1 only, it goes to the end of the axis and hit the second carriage and prints the line there.

                  I also was chaging the offset for the U axis a bit to be more precise.

                  ; Drives
                  M584 X0.2 Y40.0 Z0.0:0.1 E0.5:0.4 U0.3                     ; set drive mapping
                  M569 P0.2 S1                                       ; physical drive 0.2 goes forwards
                  M569 P40.0 S1 R0 T5:5:5:5							; physical drive 40.0 goes forwards
                  M569 P0.1 S0
                  M569 P0.3 S1
                  M569 P0.0 S0                                       ; physical drive 0.0 goes forwards
                  M569 P0.5 S1                                       ; physical drive 0.5 goes forwards
                  M569 P0.4 S1                                       ; physical drive 0.4 goes forwards
                  M671 X-20:220 Y0:0 S0.5
                  M350 X16 Y16 Z16 E16:16 U16 I0                         ; configure microstepping with interpolation
                  M92 X100.35 Y80.10 Z320.00 E896.15:896.15 U100.35         ; set steps per mm
                  M566 X500.00 Y500.00 Z1000.00 E500.00:500.00 U500.00         ; set maximum instantaneous speed changes (mm/min)
                  M203 X12000.00 Y12000.00 Z800.00 E12000.01:12000.01 U12000.00    ; set maximum speeds (mm/min)
                  M201 X500.00 Y500.00 Z200.00 E500.01:500.01 U500.00        ; set accelerations (mm/s^2)
                  M906 X1200 Y3000 Z900 E1900:1900 U1200 I30                ; set motor currents (mA) and motor idle factor in per cent
                  M84 S300000                                            ; Set idle timeout
                  
                  M572 D0:1 S0.2                  ; set extruder 0, 1 and 2 pressure advance to 0.2 seconds (RepRapFirmware 1.20 and later)
                  
                  ; Axis Limits
                  M208 X-5:450 Y0:500 Z0:475 U40:585                                   ; set axis minima/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"io2.in"                               ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io2.in
                  M574 Z2 S1 P"io5.in+io4.in"                               ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io4.in
                  M574 U2 S1 P"io3.in"
                  
                  ; 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"temp2" Y"thermistor" T100000 B4138       ; configure sensor 0 as thermistor on pin temp2
                  M950 H0 C"out0" T0                                 ; create bed heater output on out0 and map it to sensor 0
                  M307 H0 R5.187 K0.400:0.000 D41.47 E1.35 S0.00 B1  ; enable bang-bang mode for the bed heater and set PWM limit
                  M140 H0                                            ; map heated bed to heater 0
                  M143 H0 S100                                       ; set temperature limit for heater 0 to 100C
                  M308 S2 P"temp0" Y"thermistor" T100000 B4138       ; configure sensor 1 as thermistor on pin temp0
                  M950 H2 C"out2" T2                                 ; create nozzle heater output on out1 and map it to sensor 1
                  M307 H2 R2.962 K0.727:0.000 D8.70 E1.35 S1.00 B0
                  M307 H2 S240                                       ; set temperature limit for heater 1 to 240C
                  M308 S1 P"temp1" Y"thermistor" T100000 B4138       ; configure sensor 1 as thermistor on pin temp1
                  M950 H1 C"out1" T1                                 ; create nozzle heater output on out1 and map it to sensor 1
                  M307 H1 R80.490 K900:0.0 D20.02 E1.35 S0.05 B0 I0.5 V23.8                                   ; disable bang-bang mode for heater  and set PWM limit
                  M143 H1 S260                                       ; set temperature limit for heater 1 to 240C
                  
                  ; Fans
                  M950 F0 C"out9" Q500                               ; create fan 0 on pin out7 and set its frequency
                  M106 P0 S1 H1 T45                                  ; set fan 0 value. Thermostatic control is turned on
                  M950 F1 C"out8" Q500                               ; create fan 1 on pin out8 and set its frequency
                  M106 P1 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
                  M950 F2 C"out7" Q500                               ; create fan 1 on pin out8 and set its frequency
                  M106 P2 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
                  M950 F3 C"out4" Q500                               ; create fan 1 on pin out8 and set its frequency
                  M106 P3 S1 H0 T28:40                                  ; set fan 1 value. Thermostatic control is turned on
                  M950 F4 C"out5" Q500                               ; create fan 1 on pin out8 and set its frequency
                  M106 P4 S1 H1 T120                                  ; set fan 1 value. Thermostatic control is turned on
                  
                  ; Tools
                  M563 P0 D0 H1 F0                                 ; define tool 0
                  G10 P0 X0 Y0 Z0                                    ; set tool 0 axis offsets
                  G10 P0 R215 S215                                       ; set initial tool 0 active and standby temperatures to 70C
                  
                  M563 P1 D1 H2 X3 F1                                    ; define tool 1
                  G10 P1 X0 Y-1 Z0                                    ; set tool 1 axis offsets
                  G10 P1 R215 S215                                       ; set initial tool 1 active and standby temperatures to 70C
                  
                  ; Create a tool that prints 2 copies of the object using both carriages
                  M563 P2 D0:1 H1:2 X0:3 F0:1 ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U
                  G10 P2 X112.5 Y0 U-112.5 S215 R215 ; set tool offsets and temperatures
                  M567 P2 E1:1 ; set mix ratio 100% on both extruders
                  
                  
                  ; tfree0.g
                  
                  M83              ; relative extruder movement
                  M106 S0          ; turn off our print cooling fan
                  G91              ; relative axis movement
                  G1 Z5 F500       ; up 3mm
                  G90              ; absolute axis movement
                  G1 H2 X-5 F6000 ; park the X carriage at -5mm
                  
                  ; tfree1.g
                  
                  M83              ; relative extruder movement
                  M106 S0          ; turn off our print cooling fan
                  G91              ; relative axis movement
                  G1 Z5 F500       ; up 3mm
                  G90              ; absolute axis movement
                  G1 H2 U535 F6000 ; park the U carriage at 535mm
                  M579 
                  
                  droftartsundefined 1 Reply Last reply Reply Quote 0
                  • droftartsundefined
                    droftarts administrators @VA3Dnimers
                    last edited by

                    @VA3Dnimers

                    After choosing the Tool1, but not printing, the only thing that is odd is, when I move the T1 for example to the middle of the bed and move any other axis, the carriage U goes to it's homing position. When this happens and I move U axis even for a 1mm, the carriege goes back to the position before this "odd homing"

                    Are you moving the it using the U axis, or the X? When the tool gets mapped to X with M563 ... X3, it maps the X position to U with any movement. If you move the U axis, it is moving independently of X, so the next time you move any axis, it needs to move back to where X is, ie back to where it is before the movement of the U axis. At least, I think that's what is happening... I don't have a IDEX to test myself!

                    Is there any part of your config.g before the '; Drives' section? If not, are you running in SBC mode? The only other thing I can think of is if there is a kinematics issue, ie you have a CoreXYU rather than a Cartesian layout. I can't see an M669 command in your config, so I assume it is cartesian (ie a move in X doesn't move the Y or U axes, except when the U tool is selected).

                    Ian

                    Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                    VA3Dnimersundefined 1 Reply Last reply Reply Quote 0
                    • VA3Dnimersundefined
                      VA3Dnimers @droftarts
                      last edited by VA3Dnimers

                      @droftarts
                      This is the configuration before drives.

                      G90                                                ; send absolute coordinates...
                      M83                                                ; ...but relative extruder moves
                      M550 P"Drukarka3D"                                 ; set printer name
                      
                      ; Wait a moment for the CAN expansion boards to start
                      G4 S2
                      
                      ; Network
                      M552 P192.168.1.15 S1                           ; enable network and set IP address
                      M553 P255.255.255.0                             ; set netmask
                      M554 P192.168.1.1                               ; set gateway
                      M586 P0 S1                                      ; enable HTTP
                      M586 P1 S0                                      ; disable FTP
                      M586 P2 S0                                      ; disable Telnet
                      

                      And regarding the "odd homing", of course you are right, I was only trying to move the the U axis when T1 was chosen. When moving X, it works well. Thank you.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA