emcrsh: server part locks up
16 Oct 2011 00:00 #13940
by jpka
emcrsh: server part locks up was created by jpka
Hi!
I try to control Emc2 software via 'emcrsh', because i read about this is recommended way to do some non-trivial tasks like SMT Pick and place machine, and other types of external control.
I'm configure my system in standard way so i able milling well. Then, only i change is add 'loadusr emcrsh' in .hal file.
I not find any working example (command sequence) for emcrsh, so i try to write from scratch.
Here is my terminal log:
...but in places shown as (x), i not receive anything, and all stops until i disconnect telnet, and connect again (and 'hello' again, etc) - then 'set machine on' command, which first time always stop telnet server, second time always work. I reproduce it multiple times, and i reproduce it not only in hand mode, but also in simple C code which work in raw string send/receive mode, like telnet.
Where i am wrong? Probably command order?..
Thanks!
I try to control Emc2 software via 'emcrsh', because i read about this is recommended way to do some non-trivial tasks like SMT Pick and place machine, and other types of external control.
I'm configure my system in standard way so i able milling well. Then, only i change is add 'loadusr emcrsh' in .hal file.
I not find any working example (command sequence) for emcrsh, so i try to write from scratch.
Here is my terminal log:
telnet 10.1.1.73 5007
Trying 10.1.1.73...
Connected to 10.1.1.73.
Escape character is '^]'.
hello EMC x 1.0
HELLO ACK EMCNETSVR 1.1
set verbose on
set verbose on
SET VERBOSE ACK
set enable EMCTOO
set enable EMCTOO
SET ENABLE ACK
get time
get time
TIME 1318719448.462683
set estop OFF
set estop OFF
SET ESTOP ACK
set update auto
set update auto
SET UPDATE ACK
set machine on (x)
set machine on (x)
set machine on (x)
set estop off (x)
get mode (x)...
^]
telnet> q
Connection closed.
...but in places shown as (x), i not receive anything, and all stops until i disconnect telnet, and connect again (and 'hello' again, etc) - then 'set machine on' command, which first time always stop telnet server, second time always work. I reproduce it multiple times, and i reproduce it not only in hand mode, but also in simple C code which work in raw string send/receive mode, like telnet.
Where i am wrong? Probably command order?..
Thanks!
Please Log in or Create an account to join the conversation.
16 Oct 2011 11:38 #13946
by jpka
Replied by jpka on topic Re:emcrsh: server part locks up
I just found topic which describes exactly same problem:
www.linuxcnc.org/component/option,com_ku...ew/catid,10/id,1633/
But it still not has a solution.
www.linuxcnc.org/component/option,com_ku...ew/catid,10/id,1633/
But it still not has a solution.
Please Log in or Create an account to join the conversation.
20 Oct 2011 13:39 #14070
by jpka
Replied by jpka on topic Re:emcrsh: server part locks up
Hi!
Still no luck. I also check jitter and try increase Base_period, but it is not helpful.
Any chances to turn it to work?..
Please give me the direction where to search about fixing Emcrsh. Any success stories about using Emcrsh exist?.. Or, maybe another way to control Emc2 from my software, is exist?
Many thanks!
Still no luck. I also check jitter and try increase Base_period, but it is not helpful.
Any chances to turn it to work?..
Please give me the direction where to search about fixing Emcrsh. Any success stories about using Emcrsh exist?.. Or, maybe another way to control Emc2 from my software, is exist?
Many thanks!
Please Log in or Create an account to join the conversation.
20 Oct 2011 14:59 #14072
by andypugh
Replied by andypugh on topic Re:emcrsh: server part locks up
I don't think it is very heavily used, so very few, if any, forum users have any experience.
You could try asking on the mailing list, which more of the developers read.
(Look at the "Community" link at the top)
You could try asking on the mailing list, which more of the developers read.
(Look at the "Community" link at the top)
Please Log in or Create an account to join the conversation.
22 Oct 2011 23:50 #14116
by andypugh
Replied by andypugh on topic Re:emcrsh: server part locks up
I don't know if you were the one who raised the Sourceforge bug report, but that has elicited a workaround, at least:
thread.gmane.org/gmane.linux.distributions.emc.devel/4983
thread.gmane.org/gmane.linux.distributions.emc.devel/4983
Please Log in or Create an account to join the conversation.
23 Oct 2011 13:37 #14135
by ArcEye
Replied by ArcEye on topic Re:emcrsh: server part locks up
jpka wrote:
Hi
There has been a bit of discussion on emcrsh both here and on the user list, so I thought that I would try it.
The command sequence you posted does produce the result you specified, ie emcrsh seems to lock up and does not respond until restarted on 2.4.5
However, I did not try your sequence to start with and because update defaults to auto anyway, I just did the sequence below.
It worked perfectly, homed the axes then moved to the given co-ordinates.
I did not do extensive testing, just wanted to home and test axis movement, which were the major control items.
I will dig through the emcrsh code later to see if anything leaps out at me as to why and whether this tallies with the bugfix that Andy highlighted.
For now appears the factor which caused the lock-up was the set update auto command.
Seems to work OK if you don't use it.
regards
set update auto
SET UPDATE ACK
set machine on (x)
Hi
There has been a bit of discussion on emcrsh both here and on the user list, so I thought that I would try it.
The command sequence you posted does produce the result you specified, ie emcrsh seems to lock up and does not respond until restarted on 2.4.5
However, I did not try your sequence to start with and because update defaults to auto anyway, I just did the sequence below.
hello EMC emcrsh 2.4.5
set enable EMCTOO
set verbose on
set echo off
set estop off
set machine on
set mode manual
set home 0 (again for 1 and 2)
set mode mdi
set mdi g00 x20 y20 z20
shutdown
It worked perfectly, homed the axes then moved to the given co-ordinates.
I did not do extensive testing, just wanted to home and test axis movement, which were the major control items.
I will dig through the emcrsh code later to see if anything leaps out at me as to why and whether this tallies with the bugfix that Andy highlighted.
For now appears the factor which caused the lock-up was the set update auto command.
Seems to work OK if you don't use it.
regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.164 seconds