Modbus Master from Rockwell

plcnovel

Member
Join Date
Feb 2006
Location
LHR
Posts
215
Hello Everybody
I have attached a demo version of the Modbus Master for Logic controllers from Rockwell (zip file contains both master and slave....i am reffering to Master).I haven't gone through this program,and before i go through this program, i would just like to pass it on to every body on the forum to take a look at it. Point is to clear following things:
Did anybody use it before? if yes, what is the success rate of this program? Also if you guys share your thoughts after going through the ladder logic, it will be a great help for me when i get a chance to go through it. Thanks in advance

Regards
 
Did you try it?
Why you asking us to try it?

These programs included in standatd installation of RSlogix5000 since ver 13
I used them and they working. Just dont expect any performance from the PLC serial port - it has lowest priority. If you need fast application, use prosoft module.
 
Hi Contr-Conn

I haven't try them yet....that was the reason i asked if someone out there tried it, hows the performance and views....Thats what i wanted to collect from this thread. Anyway thats good taht you have tried them. In my case i just want to read the data from the slave. My slave doesn't allow me to write anything. basically i want use Modbus function codes (01, 02, 03 and 04). My question is do i have to still use the complete code in order to make it wroking or i can cut down the code. Since i am not that experience with plc programming, if i can cut down some code what should i take out in order to implement the above function code. Thanks
 
You probably strip some code down, but at this point you will be on your own. You will not see any performance difference.
 
Hi To Everyone

My slave is on RS-485, and i am using Compact logic processor (L35E)'s serial port. How can i connect these two devices physically so that i can use that ModbusMaster.ACD demo. Like do i have to use Null modem cable for it? or something else


thanks
 
Use NET-AIC module or any other RS485-RS232 converter.

Also keep in mind that application supports Modbus Register and Bit addresses lower than 32767 only (7FFF HEX)
To address full range up to FFFF some code modifications required.
 
Last edited:
Contr_Conn said:
Also keep in mind that application supports Modbus Register and Bit addresses lower than 32767 only (7FFF HEX)
To address full range up to FFFF some code modifications required.

I need to read function code 01, 02, 03, 04, would this application do this or do i have to modify the code?
 
Contr_Conn said:
No, you dont need to modify code if your Modbus register/coil address is less than 7FFF hex (32767 DEC)

Lets say i want to read modbus register 40033 or 40034(func code 03), do i have to modify the code for this?
 
Contr_Conn said:
No, these are actually 0033 and 0034
First "4" is for register identification

Is it possible if i want to read specific register value instead of reading the whole range. Whats happening in the code, it is ready the whole range (NumberofPoints). For example lets say i want to read register 30027 to 30033, and then want to read register values 30064 to 30079. Can i do that in the application?

Thanks
 
plcnovel:

Did you look at this application or you want someone else to do your home work?
Load application, read the manual and find out if it will work for you.
The short answer to your last question: YES.
Try this application and you will definately find your answer.

You don't have to have a Modbus device, tons of simulators availabe for free download.
 
Hi Contr_Conn vbmenu_register("postmenu_152977", true);


I am right now working on this projet(online), The maximum number of points i can read in function code 4 is 67, it can't let me read more than 67 points. I want to read more points. Even Out of 67 points , i dont need all of them, but i really dont know how to find a way to read one particular register. I am a little new to this field and learning alongside. Please if you can suggest me something, it will be a great help. Thanks
 
You can issue multiple commands (up to 40), they will be executed one after another. You can specify ranges separately.

mb.jpg

You can't read a single register or coil, you can read range only, but you can write a single register or coil (FN 5 and 6)
 
Contr_Conn said:
You can issue multiple commands (up to 40), they will be executed one after another. You can specify ranges separately.

mb.jpg

You can't read a single register or coil, you can read range only, but you can write a single register or coil (FN 5 and 6)

Yeah thats what exactly hapening with me. I am using command[0] for function code 4, to read (Numberofpoints = 30, modbus register 40001 to 40030) and starting address for this command is 0 with 0 offset. In Command[1] i am trying to read (func. code = 04, number of points 15, modbus regiters 40063 to 40079). The starting address for this command is 0 with offset=31. But it keeps on reading the first 15 points in this command, never reads register 63 to 79. How can i indicate the range in my command(to read from register 40063 to 40079)? Thanks
 

Similar Topics

We are looking at an application with 10x VSD's, that have Modbus RTU by default. We can also easily add an E/IP card to the VSD. At this stage...
Replies
5
Views
1,982
Does anyone have an example project of the cm ptp ET200 SP HA with 410-5H DCS (PCs7 9.1 SP1) for MODBUS MASTER/SLAVE communication ?
Replies
2
Views
122
I'm using M340 (Schneider Electric) as modbus master. It works fine but if there is a disconnection with the slave, it stops working even after...
Replies
2
Views
418
Hi guys, Just wondering if anyone has tackled an issue similar to this before: creating a redundant master on Modbus so I can have a redundant...
Replies
2
Views
438
Hi Guys, I am a new member and this is my first post! I have a little PLC experience but it is mostly with siemens logo and using ladder...
Replies
4
Views
897
Back
Top Bottom