esekerci
Hello,
 
I am working on a system using OpenPLC and trying to achieve the following:
 
  1. Read data from a Modbus RTU device connected to the system via the DNP3 protocol.
  2. Trigger and monitor I/O pins using the DNP3 protocol.
 
However, I couldn’t find any examples or documentation related to DNP3 in OpenPLC.
 
Does anyone have experience or suggestions on how to set up this configuration in OpenPLC?
 
Thank you in advance for your help!
 
Best regards!
Reply 0 0
CCarr
Hello,
 
I am working on a system using OpenPLC and trying to achieve the following:
 
  1. Read data from a Modbus RTU device connected to the system via the DNP3 protocol.
  2. Trigger and monitor I/O pins using the DNP3 protocol.
 
However, I couldn’t find any examples or documentation related to DNP3 in OpenPLC.
 
Does anyone have experience or suggestions on how to set up this configuration in OpenPLC?
 
Thank you in advance for your help!
 
Best regards!
Hi esekerci,
Unfortunately, I can't be of much help, since I'm in the same boat. I've been scouring the internet looking for a single example of an OpenPLC project with DNP3, and haven't found one yet. Hopefully we can get some eyeballs on this thread and get some help from the community.
Good luck and please post back if you come across anything!
Reply 0 0
fg71
  • Read data from a Modbus RTU device connected to the system via the DNP3 protocol.
  • Trigger and monitor I/O pins using the DNP3 protocol.
My understand of your question, you like to use DNP3 as Server, this server will connect to other device and use Modbus RTU.
I would consider search on the internet for Python solution. Python will do 3 things connect to device using pymodbus and communicate with DNP3 Protocol and running forever as server. You could then I guess use OpenPLC to communicate with DNP3 as Client to trigger or monitor your DNP3 status.
 
I have never used that protocol so I'm not helpful in that regard, but I could give you a module you could try to use.
 
Maybe I will one day study the OpenPLC implementation of DNP3, to know more.
 
From the source code I could see there is configure file called dnp3.cfg, and I believe you need to edit that file to configure your implementation.
Reply 0 0
thiagoralves
DNP3 hasn't been much explored on OpenPLC, and the implementation is quite experimental. As @fg71 said, you will need to edit the dnp3.cfg file to match your needs. The documentation on the file itself should get you started. The mapping is pretty much the same as the Modbus mapping, except that the dnp3.cfg adds an optional offset.
Reply 0 0
thiagoralves
Also, there are some users in the forum that had some luck with DNP3. This is one example: https://openplc.discussion.community/post/openplc-with-scadabr-and-dnp3-10501470?highlight=dnp3&trail=15
Reply 0 0
Reply