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

delay between i2c messages

Scheduled Pinned Locked Moved
Duet Web Control
3
3
173
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
    t0bias
    last edited by 6 Jan 2022, 14:23

    Hi,

    I am looking for a way to insert a delay between two I2C messages from within a macro, G4 seems not to affect macros, like if I have this in a macro

    M260 A38 B1:0
    G4 100
    M260 A38 B1:1

    both i2c messages get send consecutively without the delay?
    Any ideas?

    undefined 1 Reply Last reply 6 Jan 2022, 14:25 Reply Quote 0
    • undefined
      rjenkinsgb
      last edited by 6 Jan 2022, 14:25

      G4 needs a letter parameter; P for milliseconds or S for seconds.

      Try
      G4 P100

      Robert J.

      Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

      1 Reply Last reply Reply Quote 0
      • undefined
        Alex.cr @t0bias
        last edited by Alex.cr 1 Jun 2022, 14:26 6 Jan 2022, 14:25

        @t0bias

        You G4 line is missing either a P or S parameter to define how long the delay should be.

        https://duet3d.dozuki.com/Wiki/G4

        Voron2.4/Duet3 SBC+6HC+3HC+1LC+1HCL(x2) - Delta/Duet2 Wifi - CubePro/Duet2 Wifi+Duex5 - Laser/Duet3 Mini5+ - Cel Robox - U̶p̶3̶0̶0̶+/D̶u̶e̶t̶3̶ ̶6̶H̶C̶+̶LC1̶ - F̶T̶-̶5̶/̶D̶u̶e̶t̶2̶ ̶W̶i̶f̶i̶ - S̶o̶l̶i̶d̶o̶o̶d̶l̶e̶

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