« Return to Thread: Mono & ModBus

Re: Mono & ModBus

by Panoramix :: Rate this Message:

Reply to Author | View in Thread

The library NModbus works perfectly on Mono. ( http://www.nmodbus.com/ )
I'm using Mono on UBUNTU 8.04 and then:

Develop Mono 1.0
Mono JIT compiler 1.2.6 (mono-V)


The tests I performed were used to establish a serial communication (and everything works perfectly) but also try short on TCP.
The library is easy to use and at the URL some example code :
http://groups.google.com/group/NModbus-discuss/browse_thread/thread/a0c5e4c1b4362bd9

Thanks to all  


Wooowww
Now work all



That was what I needed to know, how to use the DLL .
Thanks Andreas  

Andreas Färber wrote:
Am 14.05.2008 um 14:51 schrieb Panoramix:

>
>> Do yu start with Mono/MD, because you plane to work under linux or  
>> you
>> will work under Windows ?
>> The choice your made, NModbus, work with some windows dll (ex :
>> NModbus\source\tools\jamod), also once again it's a fully and  
>> complete
>> Modbus library, so complex, ......:)
>> This library can be used with a really big project, for example to
>> replace "Intouch" from "Wonderware" ...
>> But if your application is "basic" , yu should have a look at modbus
>> documentation.
>
> I'm working (playing for the moment) on Ubuntu 8.04 Linux with Mono  
> and
> Mono-Develop 1.0.
> My problem is that I don't know how to install a library on Mono  
> (because I
> don't know Mono and MonoDevelop).
> Until now I have used other languages like :
> PHP with framework as P4a (http://p4a.crealabsfoundation.org/)
> Lazarus (Delphy on linux http://www.lazarus.freepascal.org/)
> Gambas (VB on Linux http://gambas.sourceforge.net/).
>
> But at the first impact with Mono and MonoDevelop I was captured by  
> her
> beauty, I like it.
> For the moment I'll like try NModbus with Mono but not to produce
> proprietary software but only to learn.

You don't need to install the library anywhere then, just place it  
inside your working directory and add a local reference to it. If the  
downloaded software does not advise you to install it into the GAC,  
it's probably not a good idea to put it there.

http://www.mono-project.com/Assemblies_and_the_GAC#What_Should_Be_Installed_to_the_GAC

To find out whether you can use the downloaded software, you might  
want to try the MoMA tool to check for dependencies on native Windows  
libraries.

HTH,
Andreas
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


-----------------------------------------------------------------------------
http://freeflow.awardspace.com
-----------------------------------------------------------------------------

 « Return to Thread: Mono & ModBus