Modbus RTU using RS232 to Micrologix 1400 chan 2

sophickj

Member
Join Date
Nov 2015
Location
Jamaica
Posts
9
I am trying to communicate from a Micrologix 1400 chan 2 to a SC2124M scanner via modbus rtu. I have taken a straight through cable with RS232 on both ends and cut to connect to another cable based on distance. Sending and receiving but not seeing any data in holding registers. There is also an Error code 2 counter counting.
 
I have taken a straight through cable with RS232 on both ends


I would think a null-modem cable would be the one to use.

Pin 2 to 3
Pin 3 to 2
Pin 5 to 5
__________________
 
I would think a null-modem cable would be the one to use.

Pin 2 to 3
Pin 3 to 2
Pin 5 to 5
__________________

Actually the SC2124M has a DCE port (according to its manual) and the MicroLogix’s port is a DTE. A straight cable should work.
 
I am seeing where in the master (PLC) the messages are being sent and received. But no data is in the table of the holding registers. Error code 2 is counting in the channel status window for channel 2.
 
Error code 2 is counting in the channel status window

This is probably the most important troubleshooting fact; Exception Code 02 in Modbus means "Illegal Address".

This is consistent with everything working fine on the MicroLogix side, because the messages are getting through and the slave device is responding to them. It's just rejecting their contents because it doesn't have a memory address to put that data in.

What are the Modbus function codes you are using and what are the Modbus addresses ? Are you certain that you are using the correct initial address and length ?
 
The Modbus Command is Function code 03 Read Holding Registers
Size in elements 20 Data Type 16 bit MB Data Address 47001-47024. See additional info attached.
 
Thanks Ken. Really want to resolve this issue. I am reading the addresses and storing it in Holding register N file. I have tried modbus address with and without the 4 at the front and still no success.
 
The Modbus Command is Function code 03 Read Holding Registers
Size in elements 20 Data Type 16 bit MB Data Address 47001-47024. See additional info attached.

There are two addressing schemes for Modbus, Base 0 and Base 1 (I won’t go into all of the different vernacular that gets used for this). Some PLC’s start “0” and some start at “1”. You might try adding a “1” or subtracting a “1” and see if you get any results. The other thing you could do is download Modbus Poll and make it work with the SC2124 so that you can confirm the addressing and that the device responds correctly.
 
Definitely omit the "4" from the Modbus Address field when you type it in RSLogix 500.

This confuses everybody when they start with Modbus: they look at "40001" and think "Forty Thousand and 1" when it's really "Data Area 4, Register Offset 0".

I like to use Simply Modbus or Modscan to test whenever I can because those make it very easy to see the raw data going back and forth.
 

Similar Topics

Hi, I'm hoping to use an SLC 5/05 PLC to communicate as Modbus RTU Master to a number of Modbus TCP slaves. I understand that a gateway is...
Replies
3
Views
4,262
Hi friends, this is my first post in this forum. I am Implementing an application that works like this: I want use the RS-485 interface of...
Replies
15
Views
4,701
we are trying to do a Modbus Rtu communication between a Delta plc and an Abb inverter, using ISPsoft and NWconfig. do you have any sample program...
Replies
3
Views
3,909
Hi, I have a project using a panel view plus 1000 communicating using kepware over Modbus RTU serial. Initially I was getting a com1 OS 12 error...
Replies
5
Views
2,463
Hi ! I would like to know if it is possible to use a MicroLogix 1400 with a 1761-NET-DNI module AND Modbus RTU at the same time ? Thanks in...
Replies
14
Views
4,267
Back
Top Bottom