How would you design a real time application for cnc control in c / c++ ???

More
23 Aug 2021 14:24 - 23 Aug 2021 14:26 #218520 by Grotius
Hi,

Ok. We can talk with the plc from within qt. Why do you need nml?
Edit, ok i see your github is online.
 
Last edit: 23 Aug 2021 14:26 by Grotius.

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 16:14 #218523 by udoS
Hi Grotius,

I did install a fresh linux-pro.
Now how to get the linuxcnc-dev and the qtcreator. utmost priority. And if possible for now nothing else.

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 16:17 #218524 by udoS
Because now the plc is talking to the HAL and the HAL to the cnc.

Using nml in the PlugIn I could talk to the cnc directly.

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 16:32 - 23 Aug 2021 16:33 #218525 by Grotius
Hi,

In menu bar, 3rd from below : skynet software installer. Takes a few minutes.

Using nml in the PlugIn I could talk to the cnc directly.
When using lcnc i understand this route.
Last edit: 23 Aug 2021 16:33 by Grotius.

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 16:39 #218526 by udoS
nop

terminal pops up asking for sudo pw

terminal closes very fast after something I can't read. Too fast. Nothing then.

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 16:42 - 23 Aug 2021 16:43 #218528 by Grotius
Read:
sourceforge.net/projects/linux-11-pro/
Then you see : passwrd : user

It also say's : sudo su
Then type passwd.
 
Last edit: 23 Aug 2021 16:43 by Grotius.
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

More
27 Dec 2021 18:33 #230074 by bkt
Hey Grotius .... not read well but is a ready gui Qt5 c++ for linuxcnc ethercat? You are the best one. (the link is for a ISO, but think there are QT project too inside and we can copy and paste to other pc...)

Is possible to copy that QT project and just running in a pc with mint 19 and ethercat? .... there are some special observation for run project?

Regards
BKT

Please Log in or Create an account to join the conversation.

More
28 Dec 2021 06:00 - 28 Dec 2021 06:03 #230120 by Grotius
Hi,

This is a installer : github.com/grotius-cnc/Linux-Pro/release...0.0/online-installer

It will install qt, ethercat etc on whatever linux distro.

For qt projects, visit my github. What are you looking for?
This project was tested on ethercat + qt :
github.com/grotius-cnc/skynet_robot_cont...kynet_Project.tar.gz

 
Last edit: 28 Dec 2021 06:03 by Grotius.
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

More
28 Dec 2021 21:24 - 28 Dec 2021 21:31 #230175 by bkt
Simply try to build a multipourpose gui for robot and smart plc system (classic ladder)  based on ethercat and linuxcnc ....i need it but i've so little time for make it ....

and how about hal_core? seems a good base for my project. It have some problem with nml or other library?


thanks again
Last edit: 28 Dec 2021 21:31 by bkt.

Please Log in or Create an account to join the conversation.

More
29 Dec 2021 12:01 #230214 by Grotius
Hi Bkt,

Option 1:
Simply try to build a multipourpose gui for robot and smart plc system (classic ladder)  based on ethercat and linuxcnc ....i need it but i've so little time for make it ....
My older github examples are made with a lcnc rip beside it. Maybe this is something for you to start with.

At that time my knowlegde stopped by using a lcnc rip beside qt.

The example's show to interact between qt c++ and lcnc. It also shows how to setup a component within the qt gui that
run's on the qt thread. This is usable for making a simple gui. Just like axis, gmocappy, gscreen etc.
They all run at a slow rate, ~ 0.1 sec.
In above example's nml is inside the lcnc rip and can be accesed by qt directly on the c++ level. There are example's
how to send and read commands to and from the nml server.

Option 2:
and how about hal_core? seems a good base for my project. It have some problem with nml or other library?
Hal-core is only using the hal environment of the original lcnc code. It is clean from Python, Nml, etc.
It has no smoke curtains like halcompile under the hood. It uses gcc and g++ commands to compile.
All lcnc components will work in hal-core.

Hal-core uses high level c++ library's from kernel space.
If you exactly know what you want to code, you can code it straight away in hal-core.
It takes some coding knowlegde.

If you start at Option.1 you can later on expand your knowlegde by using hal-core.







 
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum