Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order
    1. Home
    2. David
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    David

    @David

    0
    Reputation
    10
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    David Follow

    Best posts made by David

    This user hasn't posted anything yet.

    Latest posts made by David

    • RE: New JSON response on M408 S2 status

      Ok, thank you. Can you please just confirm the pattern of that JSON. It looks that in that "current" json array the first one is "bed", second one "heater" and third is "chamber".
      I find it little inconvenient, because right know I don't know what happen if I will add another heater. It will be:
      a) "current":[bed,heater1,heater2,chamber,2000.0,2000.0,2000.0,2000.0]
      or
      b) a) "current":[bed,heater1,chamber,heater2,2000.0,2000.0,2000.0,2000.0]

      and what if I will have printer without chamber?
      c) "current":[bed,heater1,2000.0,heater2,2000.0,2000.0,2000.0,2000.0]
      d) "current":[bed,heater1,heater2,2000.0,2000.0,2000.0,2000.0,2000.0]

      Before I knew exactly what is what because there were:
      heads":{"current":[30.6],"active":[30.0],"standby":[0.0],"state":[2]}
      "bed":{"current":21.9,"active":0.0,"state":0,"heater":0}
      "chamber":{"current":20.8,"active":0.0,"state":0,"heater":2}

      Thank you, I am just trying to figure out parser that will work for most of my use cases. Thanks 🙂

      posted in General Discussion
      David
      David
    • New JSON response on M408 S2 status

      Hi, I noticed little issue with JSON responses on M408 S2 and M408 S4 with new firmware (2.01+). I am parsing these responses and noticed that it stopped getting me 'heads' temperatures after firmware upgrade. It was working all the time for at least one year now, last working firmware is 2.01beta2(RTOS) (2018-07-14b5). I could not find any details on this in WHATS_NEW.md documentation, so no idea if its feature or bug - and if I should rewrite my parser or it will be fixed 🙂

      I am going to show you those responses for better understanding - same config:

      old: M408 S2
      {"status":"I","coords":{"axesHomed":[0,0,0],"xyz":[0.000,0.000,317.000],"machine":[0.000,0.000,317.000],"extr":[0.0]},"currentTool":0,"params":{"atxPower":0,"fanPercent":[100,0,100,0,0,0,0,0,0],"speedFactor":100.0,"extrFactors":[100.0],"babystep":0.000},"sensors":{"probeValue":0,"fanRPM":0},"temps":{"bed":{"current":21.9,"active":0.0,"state":0,"heater":0},"chamber":{"current":20.8,"active":0.0,"state":0,"heater":2},"current":[21.9,30.6,20.8,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[0,2,0,0,0,0,0,0],"heads":{"current":[30.6],"active":[30.0],"standby":[0.0],"state":[2]},"tools":{"active":[[30.0]],"standby":[[0.0]]},"extra":[{"name":"MCU","temp":37.2}]},"time":344.0}

      new: M408 S2
      {"status":"I","coords":{"axesHomed":[1,1,1],"xyz":[0.000,-120.000,280.736],"machine":[0.000,-120.000,280.736],"extr":[-3.0]},"speeds":{"requested":0.0,"top":0.0},"currentTool":0,"params":{"atxPower":0,"fanPercent":[100,0,100,0,0,0,0,0,0],"speedFactor":100.0,"extrFactors":[100.0],"babystep":0.000},"sensors":{"probeValue":0,"fanRPM":0},"temps":{"bed":{"current":49.4,"active":0.0,"state":2,"heater":0},"chamber":{"current":22.0,"active":0.0,"state":0,"heater":2},"current":[49.4,88.0,22.0,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[2,2,0,0,0,0,0,0],"tools":{"active":[[0.0]],"standby":[[130.0]]},"extra":[{"name":"MCU","temp":37.3}]},"time":515.0}

      • you can see its missing "heads":{"current":[30.6],"active":[30.0],"standby":[0.0],"state":[2]}

      My current firmware (where its not working):
      Firmware Version: 2.01(RTOS) (2018-07-26b2)
      WiFi Server Version: 1.21
      Web Interface Version: 1.22.3

      • newest RC tested: not working either

      Last working firmware (I just downgrade today for testing):
      Pre-release Firmware Version: 2.01beta2(RTOS) (2018-07-14b5)
      .. and previous

      So the question is "new" JSON the new constant or still variable? Or just bug?
      Thank you so much for support.

      If you have any questions about this behaviour feel free to ask.
      Thanks, David.

      Btw thank you for fixing the M112 🙂

      posted in General Discussion
      David
      David
    • RE: Printer is sending M408 S0 when heating

      Ok so I tested it again properly and found weird behaviour. I will try to explain it :). I am using the serial port for the PanelDue. I tried three heating scenario with M109 (Set Extruder Temperature and Wait)

      1. Running macro file, which contains M109 S215, from web GUI
        Printer was communicating with status Busy. I was asking with M408 S2, so it was returning response for S2 and generic S0 (S2 on beta firmware).

      2. Running same macro file, which contains M109 S215, from serial port for PanelDue
        If I sent the same macro from serial port, I just got the "generic" S0 answer (S2 with the beta firmware) and NO response for my S2 querries.

      3. Printing file, which contains M109 S215 (sent from serial port for PanelDue)
        Printer was communicating with status Printing. I was asking with M408 S2 or S4, so it was returning response for S2/S4 and generic S0 (S2 on beta firmware).

      I hope it makes sense. Is this some kind of feature/bug?

      posted in General Discussion
      David
      David
    • RE: Printer is sending M408 S0 when heating

      Ok I see. Beta firmware is working exactly as you said. But still, is there chance to make this option optionable? Because even with this option, that it is sending the last known status value of m408, I get two responses. Because I am not loosing communication with the printer, so if I am asking with S2, I will get two same responses. Or if I need more information about the printing itself I use S4 (because of chamber), then I get S2 and S4 answers.
      Sorry for bothering you and thank you for your work. David

      posted in General Discussion
      David
      David
    • RE: Printer is sending M408 S0 when heating

      Not exactly like this. When I ask with S2, the printer will return S2 AND S0. And even if I will not send any querry, the printer will keep returning S0, when heating. But I will try the new beta firmware. Thank you

      posted in General Discussion
      David
      David
    • Printer is sending M408 S0 when heating

      Hi, I noticed that my 3D printer is sending “M408 S0” when heater is changing temperature (heating). Because M408 S0 does not support chamber, I have to use M408 S2. So I would like to turn off that behavior when printer is heating and sending me S0 – even when I am not asking anything. Does anyone know if its possible?
      Thank you very much for your help. D.G.

      My firmware:
      Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
      Firmware Electronics: Duet WiFi 1.02 or later
      Firmware Version: 1.21 (2018-03-21)
      WiFi Server Version: 1.21
      Web Interface Version: 1.21

      posted in General Discussion
      David
      David
    • RE: Controlling 3D printer via auxiliary UART

      Ok, thank you

      posted in General Discussion
      David
      David
    • RE: Controlling 3D printer via auxiliary UART

      Ok, I don't know how to reproduce that workflow.
      I have this configuration:

      ; Heaters
      M301 H0 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
      M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
      M301 H0 S0.90 ; Set heater 0 PWM limit to 90%
      M143 H0 S120 ; Set temperature limit for heater 0 to 120C

      M305 P1 T100000 B4388 C0 R4700 ; Set thermistor + ADC parameters for heater 1
      M301 H1 S0.90 ; Set heater 1 PWM limit to 90%
      M143 H1 S280 ; Set temperature limit for heater 1 to 280C

      M141 H2 ; heater 2 is the chamber heater
      M301 H2 B1 ; use bang-bang control for the chamber heater
      M305 P2 T100000 B4388 C0 R4700 ; Set thermistor + ADC parameters for heater 2
      M143 H2 S80 ; Set temperature limit for heater 2 to 80C

      When I send “M408 S2”, I get this response (which I think is ok):

      {"status":"I","coords":{"axesHomed":[0,0,0],"extr":[0.0],"xyz":[0.000,0.000,317.000]},"currentTool":0,"params":{"atxPower":0,"fanPercent":[100.00,0.00,100.00,0.00,0.00,0.00,0.00,0.00,0.00],"speedFactor":100.00,"extrFactors":[100.00],"babystep":0.000},"sensors":{"probeValue":0,"fanRPM":0},"temps":{"bed":{"current":23.1,"active":0.0,"state":0,"heater":0},"chamber":{"current":22.8,"active":0.0,"state":0,"heater":2},"current":[23.1,23.8,22.8,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[0,2,0,0,0,0,0,0],"heads":{"current":[23.8],"active":[0.0],"standby":[0.0],"state":[2]},"tools":{"active":[[0.0]],"standby":[[0.0]]},"extra":[{"name":"MCU","temp":37.6}]},"time":2132.0}

      If I send “M408 S0”, I get this response:

      {"status":"I","heaters":[23.0,23.8],"active":[0.0,0.0],"standby":[0.0,0.0],"hstat":[0,2],"pos":[0.000,0.000,317.000],"sfactor":100.00,"efactor":[100.00],"babystep":0.000,"tool":0,"probe":"0","fanPercent":[100.00,0.00,100.00,0.00,0.00,0.00,0.00,0.00,0.00],"fanRPM":0,"homed":[0,0,0],"msgBox.mode":-1}

      As you can see, that S0 return only two temperatures. Does anybody can help me with that? I don’t know if there is bug in M408 or in the config.

      posted in General Discussion
      David
      David
    • RE: Controlling 3D printer via auxiliary UART

      Yes, I know about M408 S2. I was just wondering if there is a way to get that from S0. Because bed is working on that, so I was thinking that might be similar.

      posted in General Discussion
      David
      David
    • Controlling 3D printer via auxiliary UART

      Hi, I have some questions about controlling 3D printer via auxiliary UART, specifically about Chamber and Busy state.

      Right now, printer has this firmware:
      Firmware Name: RepRapFirmware for Duet WiFi
      Firmware Electronics: Duet WiFi 1.0
      Firmware Version: 1.20 (2017-12-23)

      1. Is there a way how to get Chamber status and temperature from M408 S0, just like bed or standard heater? I don’t know if there is config issue or there is no way how to get that from M408 S0 G-Code. The config looks all right, because the web interface recognizes the chamber the right way, just like the bed. M408 S0 doesn’t return the chamber temperature even in “G-Code Console” in web interface.
      2. I found weird behavior with responding when the printer is in Busy state. The app is asking every second with “M408 S0 R”. The weird part is that sometimes the printer is returning that its in Busy state, but sometimes it’s not even returning anything, just not responding (but in web interface I can see, that the printer is in Busy state). Are there some differences in Busy states?

      Thank you for answer and sorry if I missed some topics in this forum, I tried to search, but did not find anything about this.
      David

      posted in General Discussion
      David
      David