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

hbot homes correctly but prints mirrored ,

Scheduled Pinned Locked Moved
Tuning and tweaking
4
169
8.1k
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.
  • undefined
    tracar
    last edited by tracar 24 Aug 2020, 16:26

    so from looking from the front of the printer, my x/y endstops are in the rear left corner,
    this is the only place i want them to be due to wiring ease.
    now im not the best on programming, but over the past month have been able to get , for the most part, everything to work sorta. thru trial and error, so i may have repeated a few lines here and there....... Z axis works as it should

    Board: Duet WiFi 1.02 or later
    Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.05.1 (2020-02-09b1)
    Duet WiFi Server Version: 1.23
    CoreXY

    after homing to the left rear corner......., x+ and y+ will move the head towards and to the right of the printer (right front corner)

    i also can not figgure out how to get the second z axis to be separate from the first. to use as bed leveling.

    i have an expansion board so i can use a closed loop setup,

    prints are mirrored, they look good but all are mirrored from the stl.

    So basically i like the way it is set up with the homing in the back left corner, but need to get it to print non mirrored, can this be done ?

    The printer is a bit messy. but its still in the design steps, once i have the thing printing right , it will be taken apart completely and rebuilt all squared nicely, with a few new parts added.

    feel free to make any changes to the code, so i can see how this related to motion.

    G31 X0 Y0 Z0 P25
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"Duet2" ; set printer name
    M669 K1 ; select CoreXY mode

    ; Network
    M552 S1 ; enable network
    M586 P0 S1 ; enable HTTP
    M586 P1 S0 ; disable FTP
    M586 P2 S0 ; disable Telnet

    ; Drives
    M569 P5 S1 T5 R1 ; physical drive x axis goes forwards
    M569 P6 S1 T5 R1 ; physical drive y axis goes forwards
    M569 P7 S1 T5 R1 ; physical drive z axis goes forwards
    M569 P8 S1 T5 R1 ; physical drive z2 axis goes forwards
    M569 P3 S1 ; physical drive 3 goes forwards extruder
    M584 X5 Y6 Z7:8 E3 ; set drive mapping
    M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
    M92 X200.00 Y200.00 Z800.00 E138.2316760023409 ; set steps per mm
    M566 X200.00 Y200.00 Z200.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X25000.00 Y25000.00 Z2500.00 E2400.00 ; set maximum speeds (mm/min)
    M201 X400.00 Y400.00 Z400.00 E400.00 ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 E800 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 X440 Y535 Z900 S0 ; set axis maxima

    ; Endstops
    M574 X1 Y1 Z1 S0 ; set active high endstops

    ; Z-Probe
    M307 H7 A-1 C-1 D-1 ; disable heater on PWM channel for BLTouch
    M950 S0 C"exp.heater7" ; create servo pin 0 for BLTouch
    M558 P9 C"^zprobe.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
    G31 P500 X0 Y40.9 Z.445 ; set Z probe trigger value, offset and trigger height
    M557 X50:400 Y50:400 S100 ; define mesh grid x50:400 starts at 50, ends at 400 SXX moves by what its set to between points

    ; Heaters
    M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; set temperature limit for heater 1 to 280C

    ; Fans
    M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
    M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
    M106 P1 S1 H1 T45 ; 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 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

    ; Custom settings are not defined

    ; Miscellaneous
    ;M575 P1 S1 B57600 ; enable support for PanelDue


    ; homeall.g
    ; called to home all axes

    M280 P7 S90
    G91 ; relative positioning
    G1 H2 Z5 F800 ; lift Z relative to current position
    G1 H1 X-445 Y-540 F1800 ; move quickly to X or Y endstop and stop there (first pass)
    G1 H1 X-445 ; home X axis
    G1 H1 Y-540 ; home Y axis
    G1 X5 Y5 F800 ; go back a few mm
    G1 H1 X-445 F200 ; move slowly to X axis endstop (second pass)
    G1 H1 Y-540 F200 ; move slowly to Y axis endstop (second pass)
    G1 H1 Z-905 F400 ; home Z axis
    G1 Z5 F200 F800 ; go back a few mm
    G1 H1 Z-905 F100 ; move slowly to Z axis endstop (second pass)

    G90 ; absolute positioning
    G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
    G91 ; relative positioning
    G1 Z5 F800 ; lift Z relative to current position
    G90 ; absolute positioning


    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sat Jun 27 2020 12:25:17 GMT-0600 (Mountain Daylight Time)
    M280 P7 S90
    G91 ; relative positioning
    G1 H2 Z5 F800 ; lift Z relative to current position
    G1 H1 X-445 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F800 ; go back a few mm
    G1 H1 X-445 F360 ; move slowly to X axis endstop once more (second pass)
    G1 H2 Z-5 F800 ; lower Z again
    G90 ; absolute positioning


    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sat Jun 27 2020 12:25:17 GMT-0600 (Mountain Daylight Time)
    M280 P7 S90
    G91 ; relative positioning
    G1 H2 Z5 F800 ; lift Z relative to current position
    G1 H1 Y-540 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 F800 ; go back a few mm
    G1 H1 Y-540 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 H2 Z-5 F800 ; lower Z again
    G90 ; absolute positioning

    thanks in advance for any help.![alt text](image url20200824_110843.jpg )

    20200824_110856.jpg20200824_111951.jpg

    undefined undefined 2 Replies Last reply 24 Aug 2020, 17:36 Reply Quote 0
    • undefined
      peter247 @tracar
      last edited by peter247 24 Aug 2020, 17:36

      @tracar

      This my guess what happening :-

      You have set high end homing ( right ) in your config.g , But your machine uses low end homing .
      Your homing files say G1 H2 X300 , which is correct for high end homing , but you have the motor direction wrong too.
      So it goes left think it's going right and hit the end stop on the left thinking it's the right end stop.

      Two wrong making a right .. and so you have mirror !!!

      Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

      undefined 1 Reply Last reply 24 Aug 2020, 18:24 Reply Quote 0
      • undefined
        tracar @peter247
        last edited by 24 Aug 2020, 18:24

        @peter247
        so which lines do i change to to reverse the direction it homes ?

        undefined 1 Reply Last reply 24 Aug 2020, 18:37 Reply Quote 0
        • undefined
          peter247 @tracar
          last edited by peter247 24 Aug 2020, 18:37

          @tracar

          So does your machine home to the left or right , front or back.
          I think I may be wrong what is the first few line of M122

          M92 X200.00 Y200.00 Z800.00 E138.2316760023409 ; set steps per mm

          are you sure your extruder shouldn't be E138.2316760023408 step per mm , never seen anyone set the Esteps to 13 digits before.

          Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

          undefined 1 Reply Last reply 24 Aug 2020, 18:59 Reply Quote 0
          • undefined
            tracar @peter247
            last edited by tracar 24 Aug 2020, 18:59

            @peter247

            i posted some photos of the setup. it homes to the left side, and to the back.

            as for the 13 digits, lol.... old habit just a cut and paste, cant be too accurate hahahaha

            where is the M122 located

            undefined undefined 2 Replies Last reply 24 Aug 2020, 19:39 Reply Quote 0
            • undefined
              peter247 @tracar
              last edited by peter247 24 Aug 2020, 19:39

              @tracar

              where is the M122 located ? top of the screen !!!
              Type M122 in the send code box and click send and post the first few line in the console .

              4/08/2020, 19:35:49 M122
              === Diagnostics ===
              RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later
              Board ID: 08DGM-95BLL-N6PSS-6JTD6-3SJ6K-K0UZJ
              Used output buffers: 3 of 24 (16 max)

              I think I know what happening again ... new idea !!!!!

              You have used the version 3 configurator , but you have not upgraded to firmware version 3 and still on version 2 .

              Board: Duet WiFi 1.02 or later
              Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.05.1 (2020-02-09b1)
              Duet WiFi Server Version: 1.23
              CoreXY

              NOTE THE - WiFi/Ethernet 2.05.1 to my WiFi/Ethernet version 3.1.1

              what are the 4 control boxes at the back ?

              Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

              undefined 1 Reply Last reply 24 Aug 2020, 19:54 Reply Quote 0
              • undefined
                tracar @peter247
                last edited by 24 Aug 2020, 19:54

                @peter247
                the 4 black boxes are closed loop drivers for the 4 steppers x,y,z1,z2
                i will get back to you on the above when i get home

                undefined 1 Reply Last reply 24 Aug 2020, 20:02 Reply Quote 0
                • undefined
                  peter247 @tracar
                  last edited by peter247 24 Aug 2020, 20:02

                  @tracar

                  This time I think I'm correct , because after looking at your config.g and homing file I could not find a fault.

                  Your machine looks a bit of a beast !!!
                  I tried to making my own version of the cr10 and over killed it to the point where it just printed so bad , In the end just got a ender 5 plus.

                  closed loop drivers ? , do you just connect the wire which was going to the steppers are use external drivers ?.

                  Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                  undefined 1 Reply Last reply 24 Aug 2020, 20:26 Reply Quote 0
                  • undefined
                    tracar @peter247
                    last edited by 24 Aug 2020, 20:26

                    @peter247
                    closed loop drivers are the ones for steppers with encoders built in.
                    the steppers wont skip and loose track of their position even if you push an axis out of position. it will self correct....., its all good but if the belt skips then it will loose position. really good for systems with ball sxrews.

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Phaedrux Moderator @tracar
                      last edited by 24 Aug 2020, 20:28

                      @tracar said in hbot homes correctly but prints mirrored ,:

                      y+ will move the head towards

                      Your Y axis is flipped. +Y should go to the back. -Y to the front. This places 0,0 in the front left corner.

                      See this post on what you must set based on your physical printer and then what you need to change to make that work.

                      https://forum.duet3d.com/topic/18241/duet-2-wifi-bltouch-issues-on-ender-5-pro/37?_=1598300832742

                      Z-Bot CoreXY Build | Thingiverse Profile

                      undefined undefined 2 Replies Last reply 24 Aug 2020, 20:37 Reply Quote 0
                      • undefined
                        peter247 @Phaedrux
                        last edited by peter247 24 Aug 2020, 20:37

                        @Phaedrux

                        I think he is using the version 3 config.g and still on firmware version 2 , so I think it just ignores parts of the config file and works in a default way.

                        Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                        undefined 1 Reply Last reply 24 Aug 2020, 20:39 Reply Quote 0
                        • undefined
                          Phaedrux Moderator @peter247
                          last edited by 24 Aug 2020, 20:39

                          @peter247 said in hbot homes correctly but prints mirrored ,:

                          @Phaedrux

                          I think he is using the version 3 config.g and still on firmware version 2 , so I think it just ignores parts of the config file and works in a default way.

                          Yup you're totally right.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Phaedrux Moderator
                            last edited by 24 Aug 2020, 20:41

                            To update to RRF3 you need to upload these two zip files as is one at a time to the /sys folder using DWC.

                            https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip

                            https://github.com/Duet3D/RepRapFirmware/releases/download/3.1.1/Duet2and3Firmware-3.1.1.zip

                            Z-Bot CoreXY Build | Thingiverse Profile

                            undefined 1 Reply Last reply 24 Aug 2020, 21:27 Reply Quote 0
                            • undefined
                              tracar @tracar
                              last edited by 24 Aug 2020, 21:05

                              @tracar

                              M122
                              === Diagnostics ===
                              RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later
                              Board ID: 08DLM-996RU-N8PS4-7J9D4-3S86R-KAA3N
                              Used output buffers: 7 of 24 (10 max)

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                tracar @Phaedrux
                                last edited by 24 Aug 2020, 21:27

                                @Phaedrux

                                i tried v3 but didnt have enough brain power at that time to change all the needed files for it to work.

                                undefined 1 Reply Last reply 24 Aug 2020, 21:43 Reply Quote 0
                                • undefined
                                  tracar @Phaedrux
                                  last edited by tracar 24 Aug 2020, 21:35

                                  @Phaedrux
                                  0,0 is in the rear left corner

                                  front right corner is x440,y535

                                  undefined 1 Reply Last reply 24 Aug 2020, 21:44 Reply Quote 0
                                  • undefined
                                    Phaedrux Moderator @tracar
                                    last edited by 24 Aug 2020, 21:43

                                    @tracar said in hbot homes correctly but prints mirrored ,:

                                    @Phaedrux

                                    i tried v3 but didnt have enough brain power at that time to change all the needed files for it to work.

                                    Your config files are already using the format for RRF3, so you'll either need new files for RRF2 or update to RRF3.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      Phaedrux Moderator @tracar
                                      last edited by 24 Aug 2020, 21:44

                                      @tracar said in hbot homes correctly but prints mirrored ,:

                                      @Phaedrux
                                      0,0 is in the rear left corner

                                      front right corner is x440,y535

                                      See my linked post earlier about why you want 0,0 to be the front left corner. At the very least to understand how to get your prints unmirrored.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      undefined 1 Reply Last reply 25 Aug 2020, 00:28 Reply Quote 0
                                      • undefined
                                        tracar @Phaedrux
                                        last edited by 25 Aug 2020, 00:28

                                        @Phaedrux
                                        i understand that if i modify my physical layout, i can achieve the goal of the correct homing direction .and thus a non mirrored print

                                        But my original question is Can it be changed in the software as so i dont have to change anything physically.

                                        with every cnc i have built. i can easily tell it what dir to home and what axis. this plastic printer just boggles me . lol

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          Phaedrux Moderator
                                          last edited by 25 Aug 2020, 01:17

                                          I'm not saying you have to change anything physical. It's all software settings. If you read the post I linked it tells you what had to be set based on your physical printer.

                                          0,0 is just a coordinate. Putting it in the front left matches the slicer and cad software coordinate system.

                                          The endstop position is irrelevant. It can be anywhere you want. The firmware just needs to know where it is based on 0,0 being in the front left.

                                          Your homing moves are set in the homing files. The direction has to move towards the endstop.

                                          The direction the motor actually goes is determined by the direction of rotation which is also defined in software.

                                          Z-Bot CoreXY Build | Thingiverse Profile

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