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

    Problem of displacement with G1

    Scheduled Pinned Locked Moved
    General Discussion
    2
    5
    673
    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.
    • lecman93undefined
      lecman93
      last edited by

      Hello,
      My name is Damien, I've been printing for over 2 years now.
      I embarked on the design and manufacture of a Core XY using X and Y rail, with a printing surface of 30x30x60.

      I am currently finishing the machine and since then I have some problems that I did not have before.
      Already I have 2 independent Z motor with each endstop at the bottom of the printer and a BLTouch sensor at the top.
      Until there can all worked well but since I received my hotend and I installed it, I encounter 2 problems.

      The first when I make a G1 Z-100 F2400 for example the bed will always go to the value 0, whatever the value indicated, The X and Y axis behaves normally.
      By cons if I use the movement of the panel due or the web interface I do not encounter the problem

      Second problem, when I make a move in Z thanks to the paneldue or the web interface, the value Z changes well but not my U value of my second Z axis, but physically it moves correctly.

      Config.g

      ; General preferences
      M111 S0 ; Debugging off
      G21 ; Work in millimetres
      G90 ; Send absolute coordinates…
      M83 ; ...but relative extruder moves
      M555 P2 ; Set firmware compatibility to look like Marlin

      M667 S1 ; Select CoreXY mode
      M584 X0 Y1 Z2:5 U5 E3:4 ; three Z motors connected to driver outputs 2, 5 and 6
      ;M671 X-39:359 Y151.07:151.07 ; leadscrews at leftand right

      ; Axis Limits
      M208 X0 Y0 Z0 U0 S1 ; Set axis minima
      M208 X320 Y310 Z628 U628 S0 ; Set axis maxima
      M564 H0 ; Limit axes

      ;Physical Drive conextion
      M569 P0 S0 ; Drive 0 goes forwards X
      M569 P1 S0 ; Drive 1 goes forwards Y
      M569 P2 S1 ; Drive 2 goes forwards Z gauche
      M569 P3 S1 ; Drive 3 goes forwards E0
      M569 P4 S1 ; Drive 4 goes forwards E1
      M569 P5 S1 ; Drive 5 goes forwards Z droite
      M569 P6 S1 ; Drive 6 goes forwards vide

      ; Endstops
      M574 X1 Y1 S1 ; Set active low endstops
      M574 Z2 U2 S1 ; Set active high endstops

      ;Bltouch
      M307 H4 A-1 C-1 D-1
      M558 P9 H5 F200 T5000 A2 ; Set Z probe type to switch and the dive height + speeds
      G31 P25 X22.75 Y17.3 Z1.1188 U1.1188 ; Set Z probe trigger value, offset and trigger height
      M557 X5:295 Y5:295 S40 ; Define mesh grid

      ; Configure Drives
      M350 X16 Y16 Z16 U16 E16:16 I1 ; Configure microstepping with interpolation
      M92 X80 Y80 Z400 U400 E2750:2750 ; Set steps per mm
      M566 X900 Y900 Z12 U12 E40:40 ; Set maximum instantaneous speed changes (mm/min)
      M203 X18000 Y18000 Z2400 U2400 E1800:1800 ; Set maximum speeds (mm/min)
      M201 X1000 Y1000 Z250 U250 E120:120 ; Set accelerations (mm/s^2)
      M906 X1300 Y1300 Z1300 U1300 E1300:1300 I30 ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Heaters
      M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
      M143 H0 S150 ; Set temperature limit for heater 0 to 150C
      M305 P1 T100000 B4388 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
      M143 H1 S285 ; Set temperature limit for heater 1 to 300C
      M305 P2 T100000 B4388 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 2
      M143 H2 S285 ; Set temperature limit for heater 2 to 300C

      ; Tools
      M563 P0 D0 H1 ; Define tool 0
      G10 P0 X9 Y0 Z0 U0 ; Set tool 0 axis offsets
      G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
      M563 P1 D1 H2 ; Define tool 1
      G10 P1 X-9 Y0 Z0 U0 ; Set tool 1 axis offsets
      G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C

      ;Save print low current
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 U3 E-5 F1000"

      ; Network
      M550 PUltraCube ; Set machine name
      M552 S1 ; Enable network

      ;*** Access point is configured manually via M587 by the user
      M586 P0 S1 ; Enable HTTP
      M586 P1 S1 ; Enable FTP
      M586 P2 S1 ; Enable Telnet

      ; Fans
      M106 P0 S0 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S1 I0 F500 H1:2 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
      M106 P2 S0 ; Set fan 2 value, LED. Thermostatic control is turned off

      Bed.g

      M561 ; clear any existing bed transform
      G1 Z-628 F2400
      G4 P500
      G29 S2
      G29
      G1 S0 X0 Y0 F5000 ; move the head to the corner (optional)

      HomeZ.g

      G91 ; relative positioning
      M584 Z2 U5
      G1 Z1 U1 F6000 ; lift Z relative to current position
      G1 S1 Z631 U631 F2400 ; move Z up until the switch triggers
      G1 Z-10 U-10 F2400 ; go back a few mm
      G1 S1 Z631 U631 F360 ; move slowly to Z axis endstop once more (second pass)
      M584 Z2:5 U5
      G90

      HomeAll.g

      G91 ; relative positioning
      G1 Z5 U5 F6000 ; lift Z relative to current position
      G1 S1 X-325 Y-315 F3000 ; move quickly to X or Y endstop and stop there (first pass)
      G1 S1 X-325 ; home X axis
      G1 S1 Y-315 ; home Y axis
      G1 X5 Y5 F3000 ; go back a few mm
      G1 S1 X-325 F360 ; move slowly to X axis endstop once more (second pass)
      G1 S1 Y-315 F360 ; then move slowly to Y axis endstop
      G1 S1 Z630 U630 F1800 ; move Z up stopping at the endstop (first pass)
      G1 Z-5 U-5 F2400 ; go back a few mm
      G1 S1 Z630 U630 F360 ; move slowly to Z axis endstop once more (second pass)
      G90 ; absolute positioning

      Thank you for your help because it's been several days that I look without finding the problem

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

        1. Ordinary G1 movements (with no S parameter) are limited to the axis limits set in M208. You have set the lower Z axis limit to 0, therefore if you ask to go to -100 you will be limited to 0.

        Did you mean to go to Z=100 instead? Bear in mind that Z is the distance between the bed and the nozzle. So on a printer in which the bed moves in the Z direction, increasing Z makes the bed go down, and decreasing Z makes the bed go up.

        2. The U axis doesn't really exist except during homing, so I suggest you hide the U axis except during homing. To do this, add parameter P4 to your M584 Z2 U5 commands in homez.g, and add parameter P3 to the M584 Z2:5 U5 command in homez.g and to the M584 command in config.g.

        3. The Z homing section of your homeall.g file is incorrect. It should contain the same M584 commands as homez.g.

        HTH David

        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
        • lecman93undefined
          lecman93
          last edited by

          thank you very much, I did not understand at all that the command G1 worked in a sense.

          It works well as it takes.

          For HomeAll.g I made the change thanks again.

          So for the U axis that does not change value, this is normal I do not have to worry?

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

            @lecman93:

            So for the U axis that does not change value, this is normal I do not have to worry?

            That's right; but if you use the P3 parameter when you use M584 to assign the second motor back to Z after homing, then the U axis won't be displayed anyway except during homing.

            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
            • lecman93undefined
              lecman93
              last edited by

              thank you very much it's good everything works

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