• Tags
  • Documentation
  • Order
  • Register
  • Login
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
559
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
    printernoodle
    last edited by 16 Aug 2021, 01:36

    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?

    undefined 1 Reply Last reply 16 Aug 2021, 03:06 Reply Quote 0
    • undefined
      fcwilt @printernoodle
      last edited by 16 Aug 2021, 03:06

      @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
      • undefined
        printernoodle
        last edited by 16 Aug 2021, 03:23

        @fcwilt
        sorry it's 3.3 rc2
        duet 2 wifi

        undefined 1 Reply Last reply 16 Aug 2021, 03:28 Reply Quote 0
        • undefined
          fcwilt @printernoodle
          last edited by 16 Aug 2021, 03:28

          @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

          undefined 3 Replies Last reply 16 Aug 2021, 03:30 Reply Quote 1
          • undefined
            printernoodle @fcwilt
            last edited by printernoodle 16 Aug 2021, 03:30

            @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
            • undefined
              printernoodle @fcwilt
              last edited by 16 Aug 2021, 03:33

              @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
              • undefined
                printernoodle @fcwilt
                last edited by 16 Aug 2021, 03:48

                @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
                2 out of 7
                • First post
                  2/7
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA