MDI command on halcomp
- JesusAlos
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 10
 - Thank you received: 0
 
			
	
						21 Dec 2022 07:57				#259997
		by JesusAlos
	
	
		
			
	
			
			 		
													
	
				MDI command on halcomp was created by JesusAlos			
			
				Hi.
Are there any way to send such instruction from hal compenent like python?
self.mdi("G0 X100")
Regars.
					Are there any way to send such instruction from hal compenent like python?
self.mdi("G0 X100")
Regars.
Please Log in or Create an account to join the conversation.
- andypugh
 - 
				
											 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 19678
 - Thank you received: 4559
 
			
	
						22 Dec 2022 10:06				#260066
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic MDI command on halcomp			
			
				You can do it from a Python HAL component.
linuxcnc.org/docs/stable/html/hal/halmodule.html
You can't do it from a C realtime component AFAIK, though a C component could set a pin that runs an MDI_COMMAND
linuxcnc.org/docs/stable/html/config/ini....html#_halui_section
However, given that halui runs in userspace there is no reason to prefer this over the userspace HAL component.
					linuxcnc.org/docs/stable/html/hal/halmodule.html
You can't do it from a C realtime component AFAIK, though a C component could set a pin that runs an MDI_COMMAND
linuxcnc.org/docs/stable/html/config/ini....html#_halui_section
However, given that halui runs in userspace there is no reason to prefer this over the userspace HAL component.
Please Log in or Create an account to join the conversation.
		Time to create page: 0.061 seconds