Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. PUSSY
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by PUSSY

    • PUSSYundefined

      SD card not recognized / carte SD non reconnue

      Duet Hardware and wiring
      • • • PUSSY
      2
      0
      Votes
      2
      Posts
      90
      Views

      A Former User?

      @PUSSY

      Does the SD card you are trying to use in SD1 (screen slot) work in SD0 (board slot)?

      Make sure the SD card is formatted to FAT16 if the card size is less than 4gb or FAT32 for larger cards. Cards larger than 32gb need specific formatting for compatibility. See https://docs.duet3d.com/User_manual/RepRapFirmware/SD_card

      If this does not resolve the issue, more specific information on which screen / board you have, and how the wiring is setup would be helpful to troubleshoot.

    • PUSSYundefined

      SD-motherboard Card wiring

      Duet Hardware and wiring
      • • • PUSSY
      2
      0
      Votes
      2
      Posts
      105
      Views

      Phaedruxundefined

      I assume you mean for a PanelDue, but you don't say which Duet3d board.

      Have you seen this?

      https://docs.duet3d.com/en/User_manual/Connecting_hardware/Display_PanelDue

    • PUSSYundefined

      looping with a macro

      Gcode meta commands
      • • • PUSSY
      2
      0
      Votes
      2
      Posts
      173
      Views

      mikeabuilderundefined

      There is only one command I know of that takes user input and gives the user more than one option as a response - M291 using the S3 mode. This mode puts the message up and lets the user select one of two buttons "OK" or "Cancel". You can use this feature to branch your code (return to the first point OR do something else).

      The key is that if the user selects the "OK" button, the next line of code in your macro will run, and if they select "cancel", the "current code block" will terminate. So you can do something like this:

      var loop = true var answer = "No" while loop loop = False M291 P"Press OK for 'Yes' and Cancel for 'No'. S3 T-1 set var.answer = "Yes"

      The while loop is used to make a "code block" - the indented lines are a separate block from the rest of the macro.

      Before you enter the loop, you set a variable to use to exit the loop, and also a variable that contains the answer if the person clicks the Cancel button.

      You probably only want to make one trip through the loop, so as soon as you enter you set the variable "loop" to false to make this happen.

      Then you post your user interface question with an M291. If they click OK, the next line of code is executed and the answer becomes "Yes".

      I think you should also be able to do this with an IF statement, but I have not tried that myself. Maybe give it a test and report back here.

      var answer = "No" If true M291 P"Press OK for 'Yes' and Cancel for 'No'. S3 T-1 set var.answer = "Yes"