Modbus registers

Thendoshedz

Member
Join Date
Apr 2024
Location
Cape town
Posts
2
Good day guys. I have a third party device with its Modbus registers which I want to copy/set up on a plc because I need to convert my Modbus tcp to Dnp3 protocol

I’m still New to this and I’m not sure what I need to do.

What can logic can I use to set up this registers on a plc?
 
You need to provide more information. The first questions concern your communications architecture.

Is the device serving registers to the PLC where it is acting as a client? In that case the PLC is sending requests and the device is answering with replies.

The next question concerns the DNP3. Is there some other device that is trying to get information from the PLC using DNP3?

The next round of questions would include PLC manufacturer and model.
 
Hi thanks for your response

1. The device is sending registers to the PLC and yes you correct.
2.The DnP3 protocol is for the grid operator who wants to connect to the device to control the site

3. I’m using an ABB PLC - PM 5650 2ETH
 
I'm not familiar with that PLC but I can help with what you need to investigate.

A few PLCs support Modbus TCP 'scanning' where you just tell it what registers to read from the other device and set up a time interval. Most PLCs will require you to write some PLC programming that uses the instruction that they provide to do a Modbus register read. You will probably have to trigger this instruction at periodic intervals. You'll have to configure the instruction with the IP address of the device, the Modbus function code that you want to use, how many registers you want to read, the address of the first register, and probably some other information. The function code will probably be number 3 to read holding registers.

This requires studying 3 different things. The first is to gain an understanding of the Modbus protocol specification. It is a free download from the Modbus organization.

The next thing to study is the Modbus information for the device. You'll need to know how to set an IP address, a subnet, and perhaps a gateway address into it that your PLC can hit. You may have to set it to use the default Modbus TCP port 502. You'll need to study their Modbus 'register map'. I tend to say that Modbus register maps are the armpit of technical documentation because most of them are so poor.

The next step I would do is try to hit the device from a computer first before trying to hit it from your PLC. There are several software tools to do this. PM me if you would like some help in this area. The PLC class outline at CorsairHMI.com has some introductory Modbus information.

The next thing to study is the documentation for the Modbus read instruction(s) for your PLC.

When you get all this done you need to investigate the DNP side.....
 

Similar Topics

Hello everyone, I want to read a register in HC900 honeywell but I am not understanding. https://ibb.co/2dNDsmk In this link are the things I...
Replies
10
Views
1,791
Hi Team, So, what is the correct understanding of the codes for Holding vs Input registers? My understanding was #3 = Input registers & #4 =...
Replies
15
Views
2,513
Hello, I am attempting to add some IO Discrete tags to a AVEVA InTouch project (version 2020). These tags use the MBTCP driver and attempt to map...
Replies
1
Views
1,203
Platform: CCW, 2080-LC50-24QBB, Using 2080-SERIALISOL card Task: Writing Multiple Registers Using Modbus RTU (RS485) Problem: I am attempting...
Replies
4
Views
1,365
Hello all, I am working on project to pull data from G4/G5 ABB Totalflows via a modbus master/data radio. I don't have a physical totalflow with...
Replies
5
Views
1,834
Back
Top Bottom