EmbeddedRelated.com
Forums

Re: MODBUS RTU RS232

Started by Dave McLaughlin March 9, 2011
Hi Humphrey,

I have managed to get both SLAVE and MASTER working on the same project.

The Dynamic C library is not complete and ready to go and will require a bit of work from yourself to get it going. If you are a dab hand at programming you will figure it out but it will be a bit of work.

If you are doing this over serial, you need to provide the driver for that part. Same for the TCP/IP version.

I can’t supply any code because of the commercial nature but read the PPP document as this will guide you.

Once you get going, please feel free to ask questions on what you find.

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---

From: r... [mailto:r...] On Behalf Of Humphrey Murray
Sent: 09 March 2011 21:18
To: r...
Subject: [rabbit-semi] MODBUS RTU RS232

Hello Fellows, my name is Humphrey. I am completely new into this
I am using a JackRabbit BL1800 and I want to make a serial RS232 comunication over MODBUS RTU.

I have no idea how to use any of this libraries and specially the one for MODBUS RTU

Please can any kind soul, could send an example? Or where i can read about this?

Thanks in advance
Humphrey
Hi Dave,
thanks for ur fast reply. Unfortunately my knoweldge is so small that i dont have a clue, what is the ppp document? Where i can find it? (I am sorry but google was not at any help)

Thanks again
Humphrey

--- El mié 9-mar-11, Dave McLaughlin escribió:
De: Dave McLaughlin
Asunto: RE: [rabbit-semi] MODBUS RTU RS232
Para: r...
Fecha: miércoles, 9 de marzo de 2011, 16:42

 

Hi Humphrey,  I have managed to get both SLAVE and MASTER working on the same project.  The Dynamic C library is not complete and ready to go and will require a bit of work from yourself to get it going. If you are a dab hand at programming you will figure it out but it will be a bit of work.  If you are doing this over serial, you need to provide the driver for that part. Same for the TCP/IP version.  I can’t supply any code because of the commercial nature but read the PPP document as this will guide you.  Once you get going, please feel free to ask questions on what you find.  Dave...---
Very funny Scotty, now beam down my clothes!!!
---

 From: r... [mailto:r...] On Behalf Of Humphrey Murray
Sent: 09 March 2011 21:18
To: r...
Subject: [rabbit-semi] MODBUS RTU RS232    Hello Fellows, my name is Humphrey. I am completely new into this
I am using a JackRabbit BL1800 and I want to make a serial RS232 comunication over MODBUS RTU.

I have no idea how to use any of this libraries and specially the one for MODBUS RTU

Please can any kind soul, could send an example? Or where i can read about this?

Thanks in advance
Humphrey  
Sorry Humphrey, long day. I meant the HEADER files for the libraries.

Try to locate the library file for the LP3500 as this has a lot of the support code for Modbus. I can’t seem to locate it on my system but I know it is installed with the library.

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---

From: r... [mailto:r...] On Behalf Of Humphrey Murray
Sent: 10 March 2011 00:34
To: r...
Subject: RE: [rabbit-semi] MODBUS RTU RS232

Hi Dave,
thanks for ur fast reply. Unfortunately my knoweldge is so small that i dont have a clue, what is the ppp document? Where i can find it? (I am sorry but google was not at any help)

Thanks again
Humphrey
OK. I found them

Check these libraries out as they give you more information about how the code works.

MODBUS_SLAVE_BL26xx.LIB

MODBUS_SLAVE_LP35XX.LIB

They are both in the Modbus library directory. I made my own libraries based on these to suit the exact hardware I was using. My design was also running under UCOS II.

Good luck.

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---

From: r... [mailto:r...] On Behalf Of Humphrey Murray
Sent: 10 March 2011 00:34
To: r...
Subject: RE: [rabbit-semi] MODBUS RTU RS232

Hi Dave,
thanks for ur fast reply. Unfortunately my knoweldge is so small that i dont have a clue, what is the ppp document? Where i can find it? (I am sorry but google was not at any help)

Thanks again
Humphrey