Reload Program Through Pin
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						06 Apr 2016 21:25				#72873
		by andypugh
	
	
		
			
				
How is the not-working made manifest?
Perhaps add something else to the script to check that it is actually trying to do something.
					
	
			
			 		
													
	
				Replied by andypugh on topic Reload Program Through Pin			
			I also got the error to go away but it still doesn't work, so this won't work with a pyvcp type hal pin??
How is the not-working made manifest?
Perhaps add something else to the script to check that it is actually trying to do something.
Please Log in or Create an account to join the conversation.
- nkp
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 143
- Thank you received: 39
			
	
						03 Mar 2019 07:53		 -  03 Mar 2019 07:55		#127573
		by nkp
	
	
		
			
	
	
			 		
													
	
				Replied by nkp on topic Reload Program Through Pin			
			
				in axisrc:			
					if hal_present == 1 :
    ucomp = hal.component("axisui.user")
    ucomp.newpin("reload_file",hal.HAL_BIT,hal.HAL_IN)
    ucomp.ready()
    
def user_live_update():
    if ucomp["reload_file"] == 1:
        print "!!axisrc_reload_file!!"
        ucomp["reload_file"] = 0
        commands.reload_file()
		Last edit: 03 Mar 2019 07:55  by nkp.			
			Please Log in or Create an account to join the conversation.
- pl7i92
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1872
- Thank you received: 358
			
	
						04 Mar 2019 08:59				#127670
		by pl7i92
	
	
		
			
	
			
			 		
													
	
				Replied by pl7i92 on topic Reload Program Through Pin			
			
				best is to use a User Mcode like
			
					#!/bin/bash
# axis reload after g92 M100
axis-remote --reload
exit 0Please Log in or Create an account to join the conversation.
- Blackwind
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 8
- Thank you received: 1
			
	
						13 Jul 2019 22:33				#139272
		by Blackwind
	
	
		
			
	
			
			 		
													
	
				Replied by Blackwind on topic Reload Program Through Pin			
			
				I know this is years old, but nowhere i read that permisions is given to the m code file to allow executing file as a program. Will not run and not return to manual mode....
anyway i got an error if in axis in manual mode i run some script trough mdi gcode/mcode...
regards
rick
					anyway i got an error if in axis in manual mode i run some script trough mdi gcode/mcode...
regards
rick
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						14 Jul 2019 03:53				#139282
		by cmorley
	
	
		
			
				
Why do you say this is best?
					
	
			
			 		
													
	
				Replied by cmorley on topic Reload Program Through Pin			
			best is to use a User Mcode like
#!/bin/bash # axis reload after g92 M100 axis-remote --reload exit 0
Why do you say this is best?
Please Log in or Create an account to join the conversation.
- pl7i92
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1872
- Thank you received: 358
			
	
						28 Jul 2019 15:57				#140808
		by pl7i92
	
	
		
			
	
			
			 		
													
	
				Replied by pl7i92 on topic Reload Program Through Pin			
			
				it sets up the whole system to the newest condition
we work on 5 Mashines like that
every mashine only got 1 NGC in nc_files that is served from the CAD room
the Mashine MEN only needs to press one button for the next order
or if he did not pressed the FINISH order button he reloads the Mashine owned G-code
					we work on 5 Mashines like that
every mashine only got 1 NGC in nc_files that is served from the CAD room
the Mashine MEN only needs to press one button for the next order
or if he did not pressed the FINISH order button he reloads the Mashine owned G-code
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						28 Jul 2019 17:19				#140815
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Reload Program Through Pin			
			
				That's exactly what he is trying to do - reload the program.
You are using axis-remote, he is using python extensions to AXIS.
Chris M
					You are using axis-remote, he is using python extensions to AXIS.
Chris M
Please Log in or Create an account to join the conversation.
		Time to create page: 0.210 seconds	
