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

    Trouble Declaring Global Var

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    declare global help
    2
    7
    560
    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.
    • printernoodleundefined
      printernoodle
      last edited by

      How do you define a global variable?
      I have tried entering

      global status=true
      

      in the console

      And then the web interface just goes into a non stop connect disconnect loop.
      Tried the same with

      global status=1
      

      even tried putting this declaration right into gonfig.g
      That just put the entire system into the same connection connect disconnect loop regardless of reboot.

      I've been struggling with this for a bit now....
      cant get a global variable created...
      What am I not doing here?

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

        @printernoodle

        What firmware version are you using?

        What board are you using?

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        1 Reply Last reply Reply Quote 0
        • printernoodleundefined
          printernoodle
          last edited by

          @fcwilt
          sorry it's 3.3 rc2
          duet 2 wifi

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

            @printernoodle

            Well the release version of 3.3 is out and it works fine with global variables.

            I suggest you update and try then.

            Have you tried any other variable names?

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            printernoodleundefined 3 Replies Last reply Reply Quote 1
            • printernoodleundefined
              printernoodle @fcwilt
              last edited by printernoodle

              @fcwilt
              yes I've tried "global derack" "global magprobe_status" "global qgl"
              all start some weird connection loop on the DWC

              1 Reply Last reply Reply Quote 0
              • printernoodleundefined
                printernoodle @fcwilt
                last edited by

                @fcwilt

                and then
                Over and over again.....frozen on boot up
                I will try the new release.

                4fdc3594-3c90-4ecf-a9eb-b0d647af30b6-image.png

                1 Reply Last reply Reply Quote 0
                • printernoodleundefined
                  printernoodle @fcwilt
                  last edited by

                  @fcwilt

                  going to the release version of 3.3 seems to have fixed it.
                  Thank you very much indeed!!

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