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

Duet Web control interface using c# .net

Scheduled Pinned Locked Moved
Duet Web Control
4
4
237
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
    Kotteri
    last edited by 27 Oct 2020, 09:06

    Hi,
    I am using a CNC machine supports the Duet Web control. Instead of using the Duet Web control interface, I need to interact with the machine from a custom program developed in C#.
    Would it possible to send the G-code and M commands from a c# application and get the response form the machine?

    If possible could you send me a sample code of sending and receiving messages.

    Kind Regards,
    Jithesh

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 27 Oct 2020, 09:12

      This is one for @chrishamm. It should be straightforward, because Duet Control Server is written in C#.

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • undefined
        Veti
        last edited by 27 Oct 2020, 09:48

        via http example
        https://github.com/DanalEstes/DuetPython/blob/master/getCoordsDemo.py

        or
        https://forum.duet3d.com/topic/14880/pydsfapi-v3-1-1-official-python-client-library-for-dsf

        1 Reply Last reply Reply Quote 0
        • undefined
          chrishamm administrators
          last edited by 27 Oct 2020, 11:48

          If using a Duet 3 + SBC it would be better to have the C# application running directly on the SBC since there are dedicate API libraries for .NET Core available (DuetAPI/DuetAPIClient on NuGet). There is no official library for remote operation available yet, so you will need to develop your own functions. Check out the documentation here for stand-alone and here for SBC HTTP requests.

          Duet software engineer

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