halcompile shared lib

More
10 Mar 2021 23:08 #201747 by db1981
Replied by db1981 on topic halcompile shared lib
i check module make inc again.
your llSymbols is not linked with your llxplc from halcompile.

linuxcnc.org/docs/html/hal/comp.html

if userspace = no , extra_link_args and extra_compile_args are bypassed. tells the docu.


I will think about this, by the way i think that this lib is perhaps not realtime suitable.

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

More
11 Mar 2021 07:43 - 11 Mar 2021 07:45 #201779 by udoS
Replied by udoS on topic halcompile shared lib
Good morning db1981 :-)
Yes - I've read that docu before and the link I put in goes in the same direction.
www.forum.linuxcnc.org/24-hal-components...-comp?start=10#52813
But: also in that link page 2 it looks like it's been done. I just do not understand this compiler things.
Last edit: 11 Mar 2021 07:45 by udoS.

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

More
11 Mar 2021 08:31 #201783 by db1981
Replied by db1981 on topic halcompile shared lib
this would need an bigger build process....

Is this Logiclink free stuff? am i able to download this lib packet anywhere?

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

More
11 Mar 2021 10:03 #201788 by udoS
Replied by udoS on topic halcompile shared lib
Hi db1981
You where right.
I just got the mail from LogicLab. That LLSym lib is not really suitable for real-time.
A plug-in is needed using shmem or semaphore to synchronize.
The LLSym can be used to obtain the addresses in the process space.
I can still use it for the Qt part though. In uspace it works great.

Thanks a lot and stay in touch ( if you like to)
Best Regards

P.S. That's what it is all about.

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

More
11 Mar 2021 10:20 #201789 by db1981
Replied by db1981 on topic halcompile shared lib
yes, thats what i mean. communcation in rt can't be done over such an event based communication layer. a kind of shmem like in lcnc ethercat is needed for this. Although the implementation in linuxcnc is very old style. (no safe memory ...)
for what do you need the soft plc?

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

More
11 Mar 2021 11:42 - 11 Mar 2021 11:58 #201801 by udoS
Replied by udoS on topic halcompile shared lib
Hi nice

I have a running Linuxcnc with the linuxcnc ethercat debianize ..........
If I use a new ethercat device I need to build a new driver. Every time.
Now for a simple I/O that would be ok but a drive is something different.
That soft-plc has CAN, Modbus, Serial, +++ Interfacees. If you like just have a look.
The Python HMI. Why not c/c++ ? Qt can do that.
Axis is a bit old fashion. Hal-ui... same thing. Why not Qt?

I have that plc in use with www.isg-stuttgart.de/de/isg-kernel/functions.html . But under win10.

Now the idea is to put it all into the plc.
PLC ethercat master to any ethercat device. (or modbus or CAN or....)
PLC to Qt hmi.
PLC to LinuxCNC.
At some point it becomes the new hal.B)
New times for for a more modern Linuxcnc.

The plc has already build in all the functions you need in Lcnc. (Modules)
Last edit: 11 Mar 2021 11:58 by udoS.

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

More
11 Mar 2021 12:17 #201804 by db1981
Replied by db1981 on topic halcompile shared lib
Interesting.

but where is the need for linuxcnc, if you have an isg-kernel ?

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

More
11 Mar 2021 12:45 #201807 by udoS
Replied by udoS on topic halcompile shared lib
ISG is Commercial

LinuxCNC is for everyone. It opens up possibilities.
I think of robotics. Fast motion control.
Fast sensors. All over standard interface. maybe ethercat. :-)

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

More
11 Mar 2021 21:47 - 11 Mar 2021 21:54 #201876 by Grotius
Replied by Grotius on topic halcompile shared lib
Hi,

If you look at this project .

You see how qt is working with hal. And how to set the compile flags.
It's a ethercat app.

halio.h & halio.cpp is a interesting file to look at to see how hal pins and connentions are made.
motion.h & motion.cpp show a s-curve motion profile with a really nice performance.
Last edit: 11 Mar 2021 21:54 by Grotius.
The following user(s) said Thank You: nkp

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

More
12 Mar 2021 08:38 #201938 by udoS
Replied by udoS on topic halcompile shared lib
Hallo Grotius

thank you for the sample. I will have a look.

At the moment I try to build something to get some values (int) array from a terminal to a pin.
And vice versa. Servothread shmem sem. Just to see how it works.
I have to get into my plc. Any Sample?

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

Time to create page: 0.089 seconds
Powered by Kunena Forum