Chris,

As Les said, it should work very simply. Unless you want to change one of
the defaults, all you should need in your hal file is:
loadusr emcrsh

You indicate that you have that working, but best to start with the
defaults.

After connecting with telnet, the hello string should be:

hello EMC client 1.1

Only the password "EMC" is case sensitive. "Client" can be any string,
typically I pass the network name of the computer connecting. I am using
2.2.8 and know it is working in that version. Let me know if the exact hello
string shown above does not work.

One thing you could do to simplify things, although I don't see how the
specific configuration would matter, is to go into the configs/sim folder,
edit core_sim.hal, add "loadusr emcrsh" following the loadrt commands, and
then run the Axis or TkEMC configurations.

You should then be able to establish your telnet connection, see that you
get the same values as displayed by the selected UI, and once enabled, see
the results of set commands issued.

A couple more commands you might want to use after successfully connecting:

set echo off // Don't echo the command sent
set verbose on // Provides additional error messages, useful in getting an
interface working
set enable EMCTOO  // Enable issuing motion and control functions (set)

Note on the loadusr syntax:

The double dashes are required, they indicate that a string of characters
follows the command line option. Yea, I know that is not consistent even on
the command line. The "-ini" option is passed through to an emc standard
routine, while the remaining options are processed with "getopt_long" which
uses the double dash for options having parameters, and single dashes for
parameterless switches (ls -l for example).

No quotes are required around any parameters regardless of whether they are
numeric or alphanumeric.

Regards,
Eric

After the recent discussion about emcrsh I gave it a try tonight. This is
using the latest emc 2.2.8 on the latest Ubuntu 8.04.
As the note by Eric Johnson on 11 Jan suggests the line loadusr emcrsh was
put at the end of my favorite hal file and then emc2 was started with
/usr/bin/emc.
 From another machine on the network I was able to telnet to the running emc
session via emcrsh as the wiki suggests, but could not log in. The default
passwords EMC and EMCTOO resulted in HELLO NAK and when I tried to apply new
passwords to the loadusr emcrsh line, as per the wiki, no joy.
I am getting a sensible reply to Help and lots of HELLO NAK's which is
hopeful. The command line in the wiki page on emcshrc says:

loadusr emcrsh {-- --port <port number> --name <server name> --connectpw
  <password> --enablepw <password> --sessions <max sessions> - ini<inifile>}
Are all those double dashes really used?  Why does the last item only use
one dash? I assume those brackets { } are not used. Are quotes needed around
the passwords? I tried all possible permutations but emcrsh just says NAK.
Any hints would be greatly appreciated.
christopherpurc...@mac.com



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to