Transform a general axis error into hal pin
- bkt
 - 
				
									Topic Author
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1110
 - Thank you received: 113
 
			
	
						11 May 2017 16:01				#93031
		by bkt
	
	
		
			
	
			
			 		
													
	
				Transform a general axis error into hal pin was created by bkt			
			
				for example I gave these :
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
					linear move on line 28 would  exeed joint'2 negative limitAll 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.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						11 May 2017 18:29				#93038
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Transform a general axis error into hal pin			
			
				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
					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.
- bkt
 - 
				
									Topic Author
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1110
 - Thank you received: 113
 
			
	
						11 May 2017 21:26		 -  11 May 2017 21:27		#93049
		by bkt
	
	
		
			
	
	
			 		
													
	
				Replied by bkt on topic Transform a general axis error into hal pin			
			
				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
					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.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						12 May 2017 02:02				#93057
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Transform a general axis error into hal pin			
			
				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
					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.
- bkt
 - 
				
									Topic Author
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1110
 - Thank you received: 113
 
			
	
						12 May 2017 12:13				#93076
		by bkt
	
	
		
			
	
			
			 		
													
	
				Replied by bkt on topic Transform a general axis error into hal pin			
			
				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
					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.
- bkt
 - 
				
									Topic Author
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1110
 - Thank you received: 113
 
			
	
						13 May 2017 22:10				#93152
		by bkt
	
	
		
			
	
			
			 		
													
	
				Replied by bkt on topic Transform a general axis error into hal pin			
			
				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
					regards
Giorgio
Please Log in or Create an account to join the conversation.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						14 May 2017 03:31				#93172
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Transform a general axis error into hal pin			
			
				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
					similar to gscreen/gladeVCP just it uses PYQT instead of PYGTK
Chris M
Please Log in or Create an account to join the conversation.
- bkt
 - 
				
									Topic Author
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1110
 - Thank you received: 113
 
			
	
						14 May 2017 10:48				#93183
		by bkt
	
	
		
			
	
			
			 		
													
	
				Replied by bkt on topic Transform a general axis error into hal pin			
			
				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
					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.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						15 May 2017 04:12				#93209
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Transform a general axis error into hal pin			
			
				QT is c++
PYQT is just bindings to QT so the concepts are similar.
Chris M
					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.
- bkt
 - 
				
									Topic Author
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1110
 - Thank you received: 113
 
			
	
						16 May 2017 09:29		 -  16 May 2017 09:30		#93254
		by bkt
	
	
		
			
	
	
			 		
													
	
				Replied by bkt on topic Transform a general axis error into hal pin			
			
				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
					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.110 seconds