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

    Btn_Cmd wrong scale in chart

    Scheduled Pinned Locked Moved Unsolved
    Plugins for DWC and DSF
    2
    4
    194
    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.
    • cosmowaveundefined
      cosmowave
      last edited by cosmowave

      I think, thats one for @MintyTrebor
      I've designed a chart in Btn_Cmd which displays different values of my water cooling system.
      I found, that a scale setting of a value is not displayed correctly.

      The y-axle of my chart is set to show the water-temp in a range 0-50. All other parameters are scaled in the settings to suit in this range.
      One of the other parameters is the pump-PWM. To suit in the chart, it is multiplied by 10. But it isn't correctly displayed in the chart!

      On the first picture, you see the pump-PWM in decimals and in the chart:

      • pump-PWM = 0.92
      • the grey graph in the chart should be at 9.2 (0.92 x 10) in the chart. But it is a bit higher than 5
        a3130cf9-4102-4124-b283-aa9c22ce06ca-Btn_Cmd1.png

      The second picture a bit later, same "problem"
      7d050ee8-ad3c-483e-bc77-638b0f809342-Btn_Cmd2.png

      All other graphs are scaled correctly. Perhaps there is something wrong with PWM values? Or the "restriction" in my config.g for that pump-PWM can also be the problem.
      For better control of the pump, i've limited the min and max speed with the L and X parameter of the M106 command:

      M106 P3 C"WaterPump" S0 L0.3 X0.6 B2 H-1 R1
      

      It could be, that the graph is showing the "real" PWM value. Not the "restricted" one?

      Mankati FSXT+, DeltaTowerV2, E3D MS/TC

      MintyTreborundefined 1 Reply Last reply Reply Quote 0
      • cosmowaveundefined cosmowave marked this topic as a question
      • MintyTreborundefined
        MintyTrebor @cosmowave
        last edited by

        @cosmowave Can you show me the value displayed in the object model browser please, and also show me the line config in the custom chart config panel please..

        From the second picture it looks like the object is an array - is this correct?

        NodeDSF - Native Node-Red integration with Duet boards.
        BtnCmd - Customise DWC with user defined buttons/layouts/panels (DWC Plugin)
        ReleaseMgr - Duet update info inside DWC.
        Repo

        cosmowaveundefined 2 Replies Last reply Reply Quote 0
        • cosmowaveundefined
          cosmowave @MintyTrebor
          last edited by cosmowave

          @MintyTrebor
          Thanks for your answer. The value in the red circle (left hand side in the picture) is the value from the OM. But i will show you a picture from the "real" OM browser when i'm at home today evening...
          No, the object isn't an array. I don't use arrays until now.

          Mankati FSXT+, DeltaTowerV2, E3D MS/TC

          1 Reply Last reply Reply Quote 0
          • cosmowaveundefined
            cosmowave @MintyTrebor
            last edited by cosmowave

            @MintyTrebor
            I'm very sorry! It was my fault...
            The graph was not showing the same value as the numeric panel!
            Whats the difference between requestedValue and actualValue? Is the actualValue the "real" PWM inside the min and max settings?

            EDIT: Now i need a RRF3.5.3 version...
            It's funny... first, one layout was not working because the missing retraction parameters in OM (RRF5.3.2). Now, with 3.5.3 the plugin itself is not working anymore..🙃

            Mankati FSXT+, DeltaTowerV2, E3D MS/TC

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