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

    Sample code for variable workaround

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    4
    266
    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.
    • DaveAundefined
      DaveA
      last edited by

      Anyone have some sample code to show how to implement a workaround for not have conditional variables? I created a dummy tool and tried to use its offsets as holding places but I could not get it to work.

      1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt
        last edited by

        If you would like to be able to see the current value of a text variable on the DWC you can use the name of a dummy fan.

        Frederick

        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

        1 Reply Last reply Reply Quote 0
        • DaveAundefined
          DaveA
          last edited by

          What I was hoping for is the ability to perform some simple arithmetic based on a set of readings. Maybe this just isn't possible yet.

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @DaveA
            last edited by

            @DaveA I already do something similar. You can use the workplace coordinates to same information and then calculate from.
            I mainly use this when probing on my CNC. Examples can be found here https://forum.duet3d.com/topic/19698/rrf3-2-request-to-enable-g43-g44-tool-height-offset?_=1609278343985

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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