Transform a general axis error into hal pin

More
11 May 2017 16:01 #93031 by bkt
for example I gave these :
linear move on line 28 would  exeed joint'2 negative limit

All ok but I need to have an hal pin that perform a change state from 0 to 1 or change an int value from 0 to 112 for example, in order to have a coding of these type errors even on some fish pin .... example: variable not found, not possible to make this... and all the error or more important that axis can perform ... but without using axis.

Halui not generate these pin ... so ask other solution ...

regards
giorgio

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

More
11 May 2017 18:29 #93038 by cmorley
Which screen do you use?
If it's Gmoccapy I think it would be relatively easy to catch the error messages and add HAL pins for some of them.

I's possible is AXIS too just more difficult.

Chris M
The following user(s) said Thank You: bkt

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

More
11 May 2017 21:26 - 11 May 2017 21:27 #93049 by bkt
sorry no screen & no gui ... actually I use only halui .... change tool etc etc is all soubroutines ... because it is a robot.
really my problem need c or cc code ... python is only the last option.

obviusly i use axis for "debug"....

regards
giorgio
Last edit: 11 May 2017 21:27 by bkt.

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

More
12 May 2017 02:02 #93057 by cmorley
Ok ya python could easily do this.
Of course you could do it in c or c++ it's just a lot more work
Here is an example code for reading the errr channel in python:
linuxcnc.org/docs/devel/html/config/pyth...ng_the_error_channel
and to make a component with a HAL pin:
linuxcnc.org/docs/devel/html/hal/halmodule.html

basically put them together and adjust for the data you wish to check for.

Chris M
Chris

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

More
12 May 2017 12:13 #93076 by bkt
So the right way is make a rt-custom-comp for these .... polling is the only way?

after these .. I realize I often ask a bit trivial questions so much to be silly, but it's because I'm always taken by a thousand things ... of this I ask for forgiveness. But I have another trivial question :

I already use a custom-kins
I have in over another rt-space component (ethernet)
I have 30/40 and/or/not/toggle etc etc
And also a user-space component rtu or tcp modbus ....

But how can I know what is the limit of rt-space components that I can run at the same time without creating problems with the system?

regards
Giorgio

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

More
13 May 2017 22:10 #93152 by bkt
sorry cmorley ... i see now your qt work on git .. qtvcp .... what is and what it do? is possible to use qtscreen for make what? (run ethernet command to lcnc??) Tonight I read the file ...

regards
Giorgio

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

More
14 May 2017 03:31 #93172 by cmorley
qtvcp is for making GUIs (screens) for running linuxcnc or for HAL control panels.

similar to gscreen/gladeVCP just it uses PYQT instead of PYGTK

Chris M

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

More
14 May 2017 10:48 #93183 by bkt
I see these ... I work on PyQt 3 years ago ... but unfortunately I not Know well python .... and for a better use of Pyqt python knowelge is required ... and then I stop my study about.

In then I did not have time to deepen Lcnc. Now, instead, there is more interest ... but I would like to build interfaces in c ++ without having to learn python.


regards
giorgio

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

More
15 May 2017 04:12 #93209 by cmorley
QT is c++
PYQT is just bindings to QT so the concepts are similar.

Chris M
The following user(s) said Thank You: bkt

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

More
16 May 2017 09:29 - 16 May 2017 09:30 #93254 by bkt
my only problem is usage of linuxcnc header .... I hope study your works I can understand better header usages(What libraries can you use ?, linuxcnc.h, emc.h emc.cc, libnml.h what else? And how ?, which objects or structures must use to receive the stat, to send command end mange the error? I'm not a rtai expert so I would not come across problems I know little about ).

regards
Giorgio
Last edit: 16 May 2017 09:30 by bkt.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum