M580 Modbus TCP Setup

travispedley

Member
Join Date
May 2012
Location
NC
Posts
191
I have a project coming up with a M580 cpu with a NOC0301 card.
The majority of the comms will be EIP, which I'm familiar with, but I will have some devices that are Modbus TCP. I have never used modbus in 30 years of programming, so I am looking for some help getting the device setup in ControlExpert (only my 2nd project with SE). The only device I have on hand to test MTCP is a cognex barcode scanner. I know it will do EIP, but I'm trying to stay ahead of this project by learning how to setup MTCP.
Attached are pics of what I have, no matter what I've done so far, I cannot get the Freshness bit to come true, or get any data from the BCR.
My current Connection is ID(255), Read (0) Len (2), Write (0) Len 2.

Any help or insights would be appreciated.

Thanks.

M580.JPG BCR.JPG
 
Usual Modbus Stuff

I'm about to start my first M580 project. I've done a lot of M340.

The usual Modbus admonition to try a 1 instead of a zero in the address applies. Modbus is notorious for being one register off. The PLC Class outline at corsairhmi.com has some explanation of this.

Another issue may be holding (4x) registers versus input (3x) registers. Both sides must have the same expectations for the thing to work. Input registers can be read but not written.
 
I'm very interested in seeing how this plays out. I tinkered with the built-in scanning features before reverting back to the READ_VAR and WRITE_VAR function blocks. Try that as a comparison, if you know the function blocks work there must be something wrong in your Modbus TCP scanning configuration.
 
I didn't even know there were function blocks.
I did get it to work with the scanner interface, apparently the scanner can only read/write to HoldingRegisters. Also i figured out that the scanner addressing is just the offset from 4x, you don't put in the whole 40000 address. 40001 is just 1. After i worked through those kinks, it fired up. Good to know there are some FB's i can use if all else fails with the actual equipment i'll be using. Thanks for the responses.
 

Similar Topics

Looking for some advice on a project. The controller is a BMEP584040. There is a RIO ring with several drops with Quantum I/O. On this ring...
Replies
12
Views
994
Hi all, Sorry to seek help here as I am run out of idea. recently i need to use my PLC(Schneider M580-Unitypro) as Modbus TCP Master to read...
Replies
2
Views
4,383
I'm trying to read modbus data from modbus slave using Read_VAR function. I'm getting an error that my device is not linked to a module. I have a...
Replies
1
Views
151
Hi all, I'm really new to this. I need to export the Modbus register mapping from a Modicon M580 through Control Expert for the registers that...
Replies
4
Views
954
Hi Everyone, I'm new to Control Expert but currently I'm working with a project in which I have a Slave M580 PLC that is using a NOM0200 module to...
Replies
4
Views
1,622
Back
Top Bottom