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

    Help with config.g 6hc, tool distribution board and 1LC

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    12
    458
    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.
    • jens55undefined
      jens55
      last edited by

      I am building a Jubilee. I am using a 6HC for the main board and am running all the motion bits from that board. All my tool heads are supposed to run via a tool distribution board and then 1LC boards for each individual tool.
      I have my motion system going (basic testing only) and am now in the process of setting up my first tool board. I have confirmed communication to the tool board at address 121.

      I would very much appreciate if someone that is running the same kind of setup could post their config.g or at least the relevant portions that are needed for the tool board. This would give me a substantial head start at trying to wrap my brain around the configuration for the tool boards.

      I need to define the extruder, two fans, a hot end heater, a temperature sensor and a filament out sensor.

      1 Reply Last reply Reply Quote 0
      • jens55undefined
        jens55
        last edited by

        I think I have the system figured out ... once you know how it's done it seems easy 🙂
        I got the two fans working (after figuring out that one of the new fans was dead) and will be playing with the heater and temp sensor next - hopefully it will be just as straight forward.

        1 Reply Last reply Reply Quote 0
        • jens55undefined
          jens55
          last edited by

          Well looks like I hit a snag. I got the fans, heater, temp sensor defined and connected to the various IO pins but I can't seem to figure out how to set up the extruder motor.
          I am guessing here:

          M584 E121.6 ; set the 6th motor as an extruder and use the motor from expansion card 121
          M569 P6 S1 ; set the 6th driver to go forward
          M906 E800 ; set extruder drive current to 800 ma

          But really don't know what I need to do to specify that the motor driver on the 1LC board with the address 121 is an extruder and is motor driver #6

          Phaedruxundefined 1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @jens55
            last edited by Phaedrux

            @jens55 said in Help with config.g 6hc, tool distribution board and 1LC:

            M584 E121.6 ; set the 6th motor as an extruder and use the motor from expansion card 121

            Not exactly. When you target a new board, the extruder count goes back to 0. So it would be 121.0

            @jens55 said in Help with config.g 6hc, tool distribution board and 1LC:

            But really don't know what I need to do to specify that the motor driver on the 1LC board with the address 121 is an extruder and is motor driver #6

            This would be your tool definition.

            Setting up an example config in the config tool might be a good idea to get the syntax.

            For example, here's a Duet 3 with four toolboards and 4 tools:

            ; Configuration file for Duet 3 (firmware version 3)
            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v3.3.0 on Wed Aug 04 2021 20:15:07 GMT-0600 (Central Standard Time)
            
            ; General preferences
            G90                                                             ; send absolute coordinates...
            M83                                                             ; ...but relative extruder moves
            M550 P"My Printer"                                              ; set printer name
            
            ; Wait a moment for the CAN expansion boards to start
            G4 S2
            
            ; Network
            M552 P0.0.0.0 S1                                                ; enable network and acquire dynamic address via DHCP
            M586 P0 S1                                                      ; enable HTTP
            M586 P1 S0                                                      ; disable FTP
            M586 P2 S0                                                      ; disable Telnet
            
            ; 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 P121.0 S1                                                  ; physical drive 121.0 goes forwards
            M569 P122.0 S1                                                  ; physical drive 122.0 goes forwards
            M569 P123.0 S1                                                  ; physical drive 123.0 goes forwards
            M569 P124.0 S1                                                  ; physical drive 124.0 goes forwards
            M584 X0.0 Y0.1 Z0.2 E121.0:122.0:123.0:124.0                    ; set drive mapping
            M350 X16 Y16 Z16 E16:16:16:16 I1                                ; configure microstepping with interpolation
            M92 X80.00 Y80.00 Z400.00 E420.00:420.00:420.00:420.00          ; set steps per mm
            M566 X900.00 Y900.00 Z60.00 E120.00:120.00:120.00:120.00        ; set maximum instantaneous speed changes (mm/min)
            M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00:1200.00:1200.00 ; set maximum speeds (mm/min)
            M201 X500.00 Y500.00 Z20.00 E250.00:250.00:250.00:250.00        ; set accelerations (mm/s^2)
            M906 X800 Y800 Z800 E800:800:800: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 X230 Y210 Z200 S0                                          ; set axis maxima
            
            ; Endstops
            M574 X1 S1 P"io0.in"                                            ; configure active-high endstop for low end on X via pin io0.in
            M574 Y1 S1 P"io1.in"                                            ; configure active-high endstop for low end on Y via pin io1.in
            M574 Z1 S1 P"io2.in"                                            ; configure active-high endstop for low end on Z via pin io2.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"temp0" Y"thermistor" T100000 B4138                    ; configure sensor 0 as thermistor on pin temp0
            M950 H0 C"out0" T0                                              ; create bed heater output on out0 and map it to sensor 0
            M307 H0 B0 S1.00                                                ; disable bang-bang mode for the bed heater and set PWM limit
            M140 H0                                                         ; map heated bed to heater 0
            M143 H0 S120                                                    ; set temperature limit for heater 0 to 120C
            M308 S1 P"121.temp0" Y"thermistor" T100000 B4138                ; configure sensor 1 as thermistor on pin 121.temp0
            M950 H1 C"121.out0" T1                                          ; create nozzle heater output on 121.out0 and map it to sensor 1
            M307 H1 B0 S1.00                                                ; disable bang-bang mode for heater  and set PWM limit
            M143 H1 S280                                                    ; set temperature limit for heater 1 to 280C
            M308 S2 P"122.temp0" Y"thermistor" T100000 B4138                ; configure sensor 2 as thermistor on pin 122.temp0
            M950 H2 C"122.out0" T2                                          ; create nozzle heater output on 122.out0 and map it to sensor 2
            M307 H2 B0 S1.00                                                ; disable bang-bang mode for heater  and set PWM limit
            M143 H2 S280                                                    ; set temperature limit for heater 2 to 280C
            M308 S3 P"123.temp0" Y"thermistor" T100000 B4138                ; configure sensor 3 as thermistor on pin 123.temp0
            M950 H3 C"123.out0" T3                                          ; create nozzle heater output on 123.out0 and map it to sensor 3
            M307 H3 B0 S1.00                                                ; disable bang-bang mode for heater  and set PWM limit
            M143 H3 S280                                                    ; set temperature limit for heater 3 to 280C
            M308 S4 P"124.temp0" Y"thermistor" T100000 B4138                ; configure sensor 4 as thermistor on pin 124.temp0
            M950 H4 C"124.out0" T4                                          ; create nozzle heater output on 124.out0 and map it to sensor 4
            M307 H4 B0 S1.00                                                ; disable bang-bang mode for heater  and set PWM limit
            M143 H4 S280                                                    ; set temperature limit for heater 4 to 280C
            
            ; Fans
            M950 F0 C"121.out1" Q500                                        ; create fan 0 on pin 121.out1 and set its frequency
            M106 P0 S0 H-1                                                  ; set fan 0 value. Thermostatic control is turned off
            M950 F1 C"122.out1" Q500                                        ; create fan 1 on pin 122.out1 and set its frequency
            M106 P1 S0 H-1                                                  ; set fan 1 value. Thermostatic control is turned off
            M950 F2 C"123.out1" Q500                                        ; create fan 2 on pin 123.out1 and set its frequency
            M106 P2 S0 H-1                                                  ; set fan 2 value. Thermostatic control is turned off
            M950 F3 C"124.out1" Q500                                        ; create fan 3 on pin 124.out1 and set its frequency
            M106 P3 S0 H-1                                                  ; set fan 3 value. Thermostatic control is turned off
            
            ; Tools
            M563 P0 D0 H1 F0                                                ; 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
            M563 P1 D1 H2 F1                                                ; define tool 1
            G10 P1 X0 Y0 Z0                                                 ; set tool 1 axis offsets
            G10 P1 R0 S0                                                    ; set initial tool 1 active and standby temperatures to 0C
            M563 P2 D2 H3 F2                                                ; define tool 2
            G10 P2 X0 Y0 Z0                                                 ; set tool 2 axis offsets
            G10 P2 R0 S0                                                    ; set initial tool 2 active and standby temperatures to 0C
            M563 P3 D3 H4 F3                                                ; define tool 3
            G10 P3 X0 Y0 Z0                                                 ; set tool 3 axis offsets
            G10 P3 R0 S0                                                    ; set initial tool 3 active and standby temperatures to 0C
            

            Z-Bot CoreXY Build | Thingiverse Profile

            jens55undefined 1 Reply Last reply Reply Quote 0
            • kb58undefined
              kb58
              last edited by

              I went through the exact same issue with my new tool board about two weeks ago. The definition line ended up as:

              M584 X1 Y2 Z3:4:5 E121.0 
              

              Scratch-built 350mmx350mm coreXY, linear rails, ballscrews, 3 Z axis, Duet3 6HC, v3.3, Tool Board v1.1, BondTech LGX + Mosquito hot end

              1 Reply Last reply Reply Quote 0
              • jens55undefined
                jens55 @Phaedrux
                last edited by jens55

                @phaedrux said in Help with config.g 6hc, tool distribution board and 1LC:

                This would be your tool definition.

                Thank you VERY much. I will take a bit of time to wrap my mind around the config.g but I think it answers all the questions !

                Thanks kb58 too.

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  Keep in mind I left the default CAN addresses for the tool boards. It would be a good idea to change them. There is some guidance on that here: https://duet3d.dozuki.com/Wiki/CAN_connection

                  This is because if you ever replaced a toolboard, etc it would have the default address and you might get a conflict.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  jens55undefined 1 Reply Last reply Reply Quote 0
                  • jens55undefined
                    jens55 @Phaedrux
                    last edited by

                    @phaedrux, that is a great point. I had not thought about that.
                    Just to confirm that I understand your point correctly, you are suggesting that I not use address 121 on any of the configured tool boards .... correct ?

                    dc42undefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      Correct. Based on this: https://duet3d.dozuki.com/Wiki/CAN_connection#Section_CAN_addresses you would want to use addresses in the 20-39 range

                      Z-Bot CoreXY Build | Thingiverse Profile

                      jens55undefined 1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator
                        last edited by Phaedrux

                        ae5853f1-7f19-47e0-9632-7a5499a005a8-4toolboardsconfig.json 4toolboardsconfig.json

                        Here's the config.json for that 4 tool setup in case you wanted to load it up in the config tool and customize it a bit more to your setup. I left all the defaults and didn't get fancy.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • jens55undefined
                          jens55 @Phaedrux
                          last edited by

                          @phaedrux said in Help with config.g 6hc, tool distribution board and 1LC:

                          Correct. Based on this: https://duet3d.dozuki.com/Wiki/CAN_connection#Section_CAN_addresses you would want to use addresses in the 20-39 range

                          Well isn't that interesting - I read that wiki page numerous times and managed to gloss over that section each and every time!
                          Thanks again !

                          1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators @jens55
                            last edited by

                            @jens55 said in Help with config.g 6hc, tool distribution board and 1LC:

                            @phaedrux, that is a great point. I had not thought about that.
                            Just to confirm that I understand your point correctly, you are suggesting that I not use address 121 on any of the configured tool boards .... correct ?

                            If you have only one tool board in your system, using the default address 121 is OK. If you have more than one, change all of them.

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

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