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

    floor meta command not working on CNC state of board

    Scheduled Pinned Locked Moved
    CNC
    2
    3
    181
    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.
    • baird1faundefined
      baird1fa
      last edited by

      Hello,

      I'm running a duet 2 wifi on a CNC router as well as a 3D printer. I was using the 3D printer to practice some meta commands for an attempt to make a spoil board facing program. I was able to get the program to work the way I want it on my 3D printer and one of the functions I'm using is the "floor" command to do some division for me where I just want the integer value. The floor command is not working when I try it on my CNC router. I'm running the same version of reprap on both units. 3.5.0 rc1. Does anyone else have this same issue?

      1 Reply Last reply Reply Quote 0
      • baird1faundefined
        baird1fa
        last edited by

        Well I just figured it out, it is because in the CNC mode, the () brackets need to be encased with {} brackets. and that isn't needed in the 3D printer mode.

        droftartsundefined 1 Reply Last reply Reply Quote 1
        • droftartsundefined
          droftarts administrators @baird1fa
          last edited by

          @baird1fa that is documented here: https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands#expressions

          It’s because standard Gcode uses brackets for commenting.

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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