Automatisation

Post anything you want to discuss with others about the software.

Automatisation

Postby tresca-rd » Thu May 27, 2021 9:41 pm

Hi,

I want to use a cnc router to automatized a process. This router will come with UCCNC and UC100 as software and controller.

I want to write a Python script that will drive the router and some other devices in the process.

The movement I have to make are all linear and simple.

1. I'm wondering if there is a API for UCCNC ? So I can control UCCNC with Python script ?

2. I'm wondering if there is an API for UC100 ? So I can drive the UC100 controller directly with Python sending command line over the USB port ?

Thank you,
tresca-rd
 
Posts: 4
Joined: Thu May 27, 2021 9:18 pm

Re: Automatisation

Postby cncdrive » Fri May 28, 2021 8:00 am

Hi,

You could write macro or plugin for the UCCNC.
And there is a motion controller API for the motion controllers which works without the UCCNC software.
The API installs into the UCCNC/API folder, it works without the UCCNC, but is distributed with the UCCNC and the UCCNC is also using the same API for the motion control part of the software.
The API contains a motion control dll file which has the function calls and the dll was written in native C++, so it could be used with basically any Windows programming languages. There is also a C# wrapper file in the same folder which you could use to call the API functions from .net C# environment.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Automatisation

Postby tresca-rd » Fri May 28, 2021 12:46 pm

Hi CncDrive,

Thank you for your answer. I will wait for the machine to come. I will surely have more questions later !

Have a good day,
tresca-rd
 
Posts: 4
Joined: Thu May 27, 2021 9:18 pm

Re: Automatisation

Postby tresca-rd » Fri May 28, 2021 4:04 pm

cncdrive wrote:Hi,

You could write macro or plugin for the UCCNC.
And there is a motion controller API for the motion controllers which works without the UCCNC software.
The API installs into the UCCNC/API folder, it works without the UCCNC, but is distributed with the UCCNC and the UCCNC is also using the same API for the motion control part of the software.
The API contains a motion control dll file which has the function calls and the dll was written in native C++, so it could be used with basically any Windows programming languages. There is also a C# wrapper file in the same folder which you could use to call the API functions from .net C# environment.



In the post below in 2018 you said that there is no public API interface and that the documentation is not finish. Should I understand that you had time to finish the documentation ?

https://www.forum.cncdrive.com/viewtopic.php?f=4&t=1012

Thank you,
Vincent,
tresca-rd
 
Posts: 4
Joined: Thu May 27, 2021 9:18 pm

Re: Automatisation

Postby cncdrive » Fri May 28, 2021 5:58 pm

The API was released after 2018. It is available now for some time.
We were thinking about how to properly document it and ended up with a minimal documentation with the "talkative" function names and short description of the functions and parameters in the C# wrapper file.
This amount of documentation might sound not much, but for example the Mach3 API has even less documentation than that.
We think that the amount of documentation we made is enough for programmers.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Automatisation

Postby tresca-rd » Mon May 31, 2021 12:59 pm

I'm not a programmer but I have some experience. We will see how it will go !

Thank you,
tresca-rd
 
Posts: 4
Joined: Thu May 27, 2021 9:18 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: Bing [Bot] and 36 guests