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

[Feature or Bug] Behaviour of M204

Scheduled Pinned Locked Moved
Beta Firmware
2
4
187
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
    timschneider
    last edited by 5 Jan 2024, 06:52

    Setting the max acceleration via M201 is limited to values not zero or negativ.
    The following will result in an acceleration of 0.1.

    M201 X0
    
    M201
    Accelerations (mm/sec^2): X: 0.1, Y: 1500.0, Z: 70.0, E: 3500.0

    I guess it is a kind of safeguard, so that the printer can move, even if the acceleration is low.

    M204 behaves differently

    M204 P0 T0
    
    M204
    Maximum printing acceleration 0.0, maximum travel acceleration 0.0 mm/sec^2

    This stops the printer from moving the axis while still updating the new position, e.g.

    G90
    G1 X100 F3000
    G1 X500 F3000

    will let RRF think the head is at X500 even if the axis didn't move at all and btw. the moves are executed immediately.

    It is also possible to set the values negative.

    M204 P-1 T-1
    M204
    Maximum printing acceleration -1.0, maximum travel acceleration -1.0 mm/sec^2

    This is just an observation I made when I noticed some strange behaviour from the printer.

    SBC Mode

    M115
    FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.5.0-rc.2 ELECTRONICS: Duet 3 MB6HC v1.02 or later FIRMWARE_DATE: 2023-12-14 10:32:22
    undefined 1 Reply Last reply 5 Jan 2024, 09:38 Reply Quote 0
    • undefined
      dc42 administrators @timschneider
      last edited by 5 Jan 2024, 09:38

      @timschneider you are correct, RRF does not currently check that the parameters to M204 have sensible values.

      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

      undefined 1 Reply Last reply 8 Jan 2024, 08:28 Reply Quote 1
      • undefined
        timschneider @dc42
        last edited by 8 Jan 2024, 08:28

        @dc42
        Thank you for adding the same checks as in M201 to M204 and the fast response!

        btw. would you prefer to get forum posts/bug reports or PRs for these small things?

        undefined 1 Reply Last reply 8 Jan 2024, 11:36 Reply Quote 0
        • undefined
          dc42 administrators @timschneider
          last edited by 8 Jan 2024, 11:36

          @timschneider said in [Feature or Bug] Behaviour of M204:

          @dc42
          Thank you for adding the same checks as in M201 to M204 and the fast response!

          btw. would you prefer to get forum posts/bug reports or PRs for these small things?

          If the fix is simple and obvious (e.g. a typo in a text string) then a PR is fine. If it's not completely clear what the fix should be or there are multiple ways of achieving it, then I would prefer a forum post.

          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 1
          3 out of 4
          • First post
            3/4
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA