linuxcncrsh: Does not open files

More
6 years 11 months ago #149441 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

Please Log in to join the conversation.

More
6 years 11 months ago #149561 by andypugh
Can you raise an issue report on this? Just so it doesn't get lost.

github.com/LinuxCNC/linuxcnc/issues

Please Log in to join the conversation.

More
6 years 11 months ago #149565 by dgarrett
Use the abort command.
The following session works for me
(tested on 2.8~pre):
Code:
$ 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

Please Log in to join the conversation.

More
6 years 11 months ago #149998 by ummerland
The abort command is working great!

Thanks dgarrett;)

Please Log in to join the conversation.

Time to create page: 0.188 seconds
Powered by Kunena Forum