On Tue, 2012-02-28 at 07:03 +0000, Chris Morley wrote:
... snip
> When I fire up classicladder (I'm using the parent version not EMC's)
> then run sudo netstat -anp --tcp
> I see:
> tcp        0      0 0.0.0.0:9503            0.0.0.0:*               LISTEN    
>   20701/classicladder
> 
> so that is address 0.0.0.0 port 9502 and its waiting for someone to connect 
> to it.
> 
> I can change the port number. 
> I'm not sure how to change that address.
> 
> Chris M
... snip

I think I know a little more now. I was able to bring up 
"loadusr classicladder --modslave" (I didn't know the rt component had
to be loaded too). My netstat returned the same result above with
"0.0.0.0:9502". I then did a ifconfig to find my network computer's
addresses with 192.168.1.10 (eth0) and 127.0.0.0 (localhost) being
listed. I nmap both addresses and found port 9502 open on both, so it
seems by default, "--modslave" will listen on all addresses (two in this
case), with "all or any addresses" being called out as "0.0.0.0".
http://en.wikipedia.org/wiki/0.0.0.0 

If I use "loadusr classicladder --modslave --modbus_port=1502" netstat
sees port 1502 as listening, nmap doesn't see it whereas it did see 9502
previously. My guess is that as any ports above 1000 have lighter
restrictions, maybe ports above a higher value are handled differently
too, so 1502 doesn't show where 9502 does. I guess I have more work to
do.

I haven't tried connecting to the LinuxCNC slave with a master yet.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to