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

    3.5beta2 looping jam

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    2
    3
    126
    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.
    • Aitorundefined
      Aitor
      last edited by

      Good morning @dc42,

      It's possible that this has already been reported or it's my fault, but in case it wasn't, I'm mentioning it here

      I was doing some write tests with this code (simplified):

      var cont = 1
      var material = "ABS"
      
      echo >"fff" ";NEW"
      echo >>"fff" ""
      
      while var.material != "FIN"
      	if var.cont = 1
      		set var.material = "ABS"
      	if var.cont = 2
      		set var.material = "ASA"
      	if var.cont = 3
      		set var.material = "FLEX"
      	if var.cont = 4
      		set var.material = "NYLSTRONG"
      	if var.cont = 5
      		set var.material = "PET-G"
      	if var.cont = 6
      		set var.material = "PLA"
      	if var.cont = 7
      		set var.material = "PP"
      	if var.cont = 8
      		set var.material = "TPU_HARDNESS"
      	if var.cont = 9
      		set var.material = "FIN"
      
      	if var.material != "FIN"
      		echo >>"fff" "    <!--***-->"
      		echo >>"fff" "    <!--"^{var.material}^"-->"
      		echo >>"fff" "    <!--***-->"
      	set var.cont = var.cont+1
      	M400
      echo >>"fff" "    FINIS"
      

      Board: Duet 3 MB6HC (MB6HC)
      Firmware: RepRapFirmware for Duet 3 MB6HC 3.5beta2 (2023-02-08)
      This was the error message: Error: Bad command: hile var.material != "FIN"
      Could not get out of the while, am I doing something wrong, I didn't take something into account?

      Board: Duet 2 WiFi (2WiFi)
      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.5 (2022-11-30)
      Yes it worked, no problems

      I'll look forward to your comments

      Best regards
      Aitor

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

        @Aitor it's been fixed already and there's a new build here https://forum.duet3d.com/post/307796

        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

        Aitorundefined 1 Reply Last reply Reply Quote 1
        • Aitorundefined
          Aitor @jay_s_uk
          last edited by

          Good morning,

          Thank you very much @jay_s_uk, the problem is indeed solved.

          Best regards

          1 Reply Last reply Reply Quote 0
          • dc42undefined dc42 marked this topic as a question
          • dc42undefined dc42 has marked this topic as solved
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA