G-code command over ethernet (TCP)
-
Duet3d Duet 3 questions
Hello Duet3d.
I am from a company called Seasony, where we are building a robot for indoor farming. After looking at your board, is has the perfect hardware for the purpose. Concerning the hardware, I am left with a couple of questions:
Ethernet :
I see that the board has an ethernet cable, and that you are able to use it as a communication link for a computer. The trouble is the examples I have come across all show the user communicating through the GUI.
Is the system able the read a G-code command over ethernet (TCP)?
Is the system able to run a script over Ethernet (TCP)?
General
Will the board be able to respond with the current positioning?
Is the board able to give the position the end stop was activated?
What would be the fastest way to get the board up and running, without using the GUI for communication?
I look forward to hearing from you.
Best Regards Gustav Wrisberg Kristensen.
Betafactory, Bådehavnsgade 42K, 2450 København
-
@gustav_seasony you may want to look here https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests
-
@gustav_seasony as @jay_s_uk already pointed you to it is possible to use the HTTP API to send and receive all the information you need over the network interface directly with then Duet. This can do all you can do via the GUI.
There is also the option to connect a SBC like a Raspberry Pi to the Duet 3 mainboards which then provides you with even more options for interacting with the Duet and running gcode.
over the network:
https://github.com/Duet3D/DuetSoftwareFramework/wiki/REST-APIor via the IPC API from programmes running on the SBC itself:
https://github.com/Duet3D/DuetSoftwareFramework/wiki/API-Overview -
@jay_s_uk Thanks, it answers alot of the questions
-
@t3p3tony
An SBC is unfurtunatly not an option, but the reference to the rest api, answers all the questions.
Thanks for the help.I look foward to testing it out in person
-
@gustav_seasony the REST API is only applicable when you have a SBC connected to the Duet. When running the Duet in standalone mode, use this API https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests.