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

    Adjusting Device Wattage conditionally

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    4
    172
    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.
    • code7undefined
      code7
      last edited by

      I run a macro that sets the device power (i.e. lasers etc.) on my machine using M106 P2 S25, where S25 sets the device power on a scale from 0-255.

      Does anyone have a goood idea on how I can can instead control the power with a conditional statement by indicating the desired wattage by % of full power instead - where full power is 400W of the device?

      Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

      alankilianundefined o_lampeundefined 2 Replies Last reply Reply Quote 0
      • alankilianundefined
        alankilian @code7
        last edited by

        @code7 You can use M106 P2 0.0 to M106 P2 1.0 to set what fraction you want.

        M106 P2 S0.5 would be 50% power.

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        1 Reply Last reply Reply Quote 0
        • o_lampeundefined
          o_lampe @code7
          last edited by o_lampe

          @code7
          Using a macro can cause a short delay, everytime you set a new power value.
          If that's OK for you, you can use macros with parameters. Eg. P0-P100. Then in the macro calculate the M106 Pn S-value accordingly

          code7undefined 1 Reply Last reply Reply Quote 1
          • code7undefined
            code7 @o_lampe
            last edited by

            @alankilian That's a great tip - Thanks.
            @o_lampe Thanks for the link.

            Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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