On 2/27/2012 2:48 PM, Chris Morley wrote:
>
>    
>> There may be a function that can look this up, but I think it's hard for
>> the API to know what network the app needs to use, although 99% of the
>> time the host has a single Ethernet port making the practical choice
>> easy. I got the libmodbus 3 unit-test demo to work by just doing a
>> ifconfig to to get my IP address and plugged that in. That's all that
>> was needed. RTU over TCP is probably a different story. My LinuxCNC
>> master could send queries just fine, but the unit-test slave isn't set
>> up to return anything interesting. Successes for unit-test demo seems to
>> be a lack of error messages.
>>
>>      
> CL requires the address and the port number (9502 id default).
> I somewhat understand the address but not really the port number.
> Can you elaborate how you found this info? keep in mind I have
> almost no knowledge of networks other then plugging in my ethernet cable
> in to my cable internet router. :)
>
> Chris M
>                                       
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> 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-dev2
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>    

Chris,

I found a Windows based Modbus test software package on the web and used 
that to test the Modbus TCP functions a while back.
It was very easy to establish a link between the Windows box and CL.  I 
had to setup the IP addresses, and port numbers on each computer but 
after that everything came up and ran.
I first tried it with a simple switch and then went to a crossover cable 
- both worked.
The Modbus test software was really nice since it displayed the packets.
I never tried the Modbus TCP slave functions but I would like to set 
that up some day.

Dave

------------------------------------------------------------------------------
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