linuxcncrsh: Does not open files
- ummerland
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 2
 - Thank you received: 0
 
			
	
						02 Nov 2019 20:40				#149441
		by ummerland
	
	
		
			
	
			
			 		
													
	
				linuxcncrsh: Does not open files was created by ummerland			
			
				Hi community
I am developing a control software in .net that is using linuxcncrsh (emcrsh) to open some programs in order.
The commands i am calling are:
hello EMC RSHUSER 1.0
set enable EMCTOO
set open file.ngc
Sometimes that works, but most of the times it spids out the following error message in the command line:
emc/task/emctask.cc 399: interp_error: A file is already open
can't open file.ngc
I found a Issue on GitHub that is describing an issue where it would call an error on two subsequent file loads. That issue seems solved.
Is there a way to call a specific function in between to work arround this issue?
Or is there a way to completely solve this?
Thanks in advice
ummerland
					I am developing a control software in .net that is using linuxcncrsh (emcrsh) to open some programs in order.
The commands i am calling are:
hello EMC RSHUSER 1.0
set enable EMCTOO
set open file.ngc
Sometimes that works, but most of the times it spids out the following error message in the command line:
emc/task/emctask.cc 399: interp_error: A file is already open
can't open file.ngc
I found a Issue on GitHub that is describing an issue where it would call an error on two subsequent file loads. That issue seems solved.
Is there a way to call a specific function in between to work arround this issue?
Or is there a way to completely solve this?
Thanks in advice
ummerland
Please Log in or Create an account to join the conversation.
- andypugh
 - 
				
											 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 19678
 - Thank you received: 4559
 
			
	
						04 Nov 2019 23:51				#149561
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic linuxcncrsh: Does not open files			
			
				Can you raise an issue report on this? Just so it doesn't get lost.
github.com/LinuxCNC/linuxcnc/issues
					github.com/LinuxCNC/linuxcnc/issues
Please Log in or Create an account to join the conversation.
- dgarrett
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 492
 - Thank you received: 297
 
			
	
						05 Nov 2019 01:48				#149565
		by dgarrett
	
	
		
			
	
	
			 		
													
	
				Replied by dgarrett on topic linuxcncrsh: Does not open files			
			
				Use the abort command.
The following session works for me
(tested on 2.8~pre):			
					The following session works for me
(tested on 2.8~pre):
$ telnet localhost 5007
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
hello EMC me 1.0
HELLO ACK EMCNETSVR 1.1
set enable EMCTOO
set enable EMCTOO
set echo off
set echo off
set verbose on
SET VERBOSE ACK
set estop off
SET ESTOP ACK
set machine on
SET MACHINE ACK
set home -1
SET HOME ACK
set open ../../nc_files/3D_Chips.ngc
SET OPEN ACK
-----> OK
set open ../../nc_files/spiral.ngc
SET OPEN ACK
----> emc/task/emctask.cc 405: interp_error: A file is already open
----> A file is already open
set abort
SET ABORT ACK
set open ../../nc_files/spiral.ngc
SET OPEN ACK
----> that worked
set mode auto
SET MODE ACK
set run
SET RUN ACK
		The following user(s) said Thank You: tommylight, ummerland 	
			Please Log in or Create an account to join the conversation.
- ummerland
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 2
 - Thank you received: 0
 
			
	
						09 Nov 2019 18:04				#149998
		by ummerland
	
	
		
			
	
			
			 		
													
	
				Replied by ummerland on topic linuxcncrsh: Does not open files			
			
				The abort command is working great!
Thanks dgarrett;)
					Thanks dgarrett;)
Please Log in or Create an account to join the conversation.
		Time to create page: 0.112 seconds