hal-core

More
13 Jan 2022 19:57 #231704 by bkt
Replied by bkt on topic hal-core
@grotius with plasure You have my attention... 

For first I have my running machinery with ethercat and linux mint 19 with customized flavour .... try to not change it ... so instead to install all in your install script can only install these?

After I can get some problem with my actual Lcnc 2.9 installation?


Warning: Spoiler!

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

More
13 Jan 2022 23:43 #231719 by Grotius
Replied by Grotius on topic hal-core
Hi Btk,

If you just want to make that classicladder gui in c++ you could use your excisting lcnc without installing hal-core.
Hal-core will install in the /opt dir.

After I can get some problem with my actual Lcnc 2.9 installation?
It is not entirely without risks. It could be some dependencies have slightly different versions. But i supspect it
will not break your excisting lcnc tower down to the floor.

You could try this first:
$ sudo apt-get install tcllib tklib tcl-dev tk-dev libx11-dev libgl1-mesa-dev

If all goes ok. Then i think no further risks are at the horizon.





 

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

More
13 Jan 2022 23:51 - 13 Jan 2022 23:51 #231720 by Grotius
Replied by Grotius on topic hal-core
So if interested in a qt app without external hal component to replace classicladder i/o.
We can use lcnc compile flags to link it to lcnc's hal environment. Then at the moment you don't need
hal-core install. But if you have time, i recommend to play a little bit with hal-core.

If this is what you want, then pls give a short description of the i/o and functions. Then i can make a honey pot.


 
Last edit: 13 Jan 2022 23:51 by Grotius.
The following user(s) said Thank You: bkt

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

More
14 Jan 2022 00:20 #231721 by bkt
Replied by bkt on topic hal-core
I want to use classicladder .... but using a qt-c++ gui ....so not need to learn python  language needed for use qtvcp gui ....

about-hal core project see you are interested in someone can make doc and other annoing things .... for sure can play with these things in feb/march .... and for sure test your app ... but not these mount ...too full of work.
The following user(s) said Thank You: Grotius

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

More
14 Jan 2022 12:38 - 17 Jan 2022 13:28 #231751 by bkt
Replied by bkt on topic hal-core

We can use lcnc compile flags to link it to lcnc's hal environment. Then at the moment you don't need
And how can do these? Never try ....

thanks

  every now and then my English fries me .... do not take into account the previous one .... OK added in my pro the path of linuxcnc 2.9 the usual libraries ....

now I have never tried to recall an input in the sense that I do not remember their names or where I find them .... I do not remember the structure of the Lcnc programs but above all I see that 2.9 is diffident in many things .... moved folders and found in different places .... in short about where do I connect a digital input? not from cannon because I want to use generic inputs if possible (lcec.0.1.din-xx) input linked to motion .... but htink stady you code better for understand how.

thanks
Last edit: 17 Jan 2022 13:28 by bkt.

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

More
17 Jan 2022 13:31 - 17 Jan 2022 13:47 #232116 by bkt
Replied by bkt on topic hal-core
peraphs
You could try this first:

$ sudo apt-get install tcllib tklib tcl-dev tk-dev libx11-dev libgl1-mesa-dev

 seems no produce any error type ...

Plus noted you use a "nml_plugin.h" for connect nml to gui ..... so problabily use your plugin is the best way to make a GUI QT5 c++ for classicladder plc program  GUI (not gui for classicladder, but for machinery using classicladder) ....

In these case how can call and set lcec.0.1.dout-0 with qt toggle button?
Last edit: 17 Jan 2022 13:47 by bkt.

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

More
17 Jan 2022 13:52 #232120 by bkt
Replied by bkt on topic hal-core

 If this is what you want, then pls give a short description of the i/o and functions. Then i can make a honey pot.

Need to use classic ladder and simply connect some push button or toggle button to "lcec.0.0.dout-0 to dout.14" and the same with din from 0 to 14 ... for example ... or connect classicladder.0.out-00 from classicladder.0.out-14 and the same with input .... nothing of difficult .... is for choose some simply static option (pneumatic cylinder always ON ... or always OFF) or for choose if use a sub routine "A" ladder or soubroutine "B" ladder ....

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

More
20 Jan 2022 14:44 #232529 by Grotius
Replied by Grotius on topic hal-core
Hi btk,

If i make a example gui with some buttons that produces a hal output and some input pins that will fire up a led.
Is that good enough? You than can connect to classicladder in hal. etc


 
The following user(s) said Thank You: bkt

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

More
20 Jan 2022 14:54 - 20 Jan 2022 14:57 #232534 by Grotius
Replied by Grotius on topic hal-core
A tiny update.

In general the program is working.
I think it is usable to perform a plasma cut or a complex 3d mill operation with the program now.

Specs until now:
1. Run a gcode forward or reversed during the full gcode file, full scurve implementation.
2. Run a gcode file containing a 3d motion. cartesian xyz=XYZ euler xyz=ABC
3. Run a multiline mdi command.
4. Run the machine in manual mode, Offline will jump to target pos. Online will perform the scurve motion.
5. Run multiple machines at the same time, each machine may load a gcode file.
6. Run a gcode from a certain line nr. It will ask to get in position with a Mdi multiline safe height move.
7. Hal outputs available for joint positions and basic Mcode's like m3,m5,m7,m8,m9.
8. Load a different machine models, like a robot on a track or a gantry.
9. Load a different (exotic) kinematic model.
10. Code your own user tab.
11. It can rotate and translate the gcode workframe in any position.
12. This is a realtime program, driven by a kernel module.
Todo : look ahead function.



Last edit: 20 Jan 2022 14:57 by Grotius.

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

More
20 Jan 2022 17:26 - 20 Jan 2022 17:55 #232539 by bkt
Replied by bkt on topic hal-core

Hi btk,

If i make a example gui with some buttons that produces a hal output and some input pins that will fire up a led.
Is that good enough? You than can connect to classicladder in hal. etc
 

  These for sure .... but maybe your hal_widget is enought ....
bkt
Last edit: 20 Jan 2022 17:55 by bkt.

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

Time to create page: 0.386 seconds
Powered by Kunena Forum