Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Help Modbus communication
Help Modbus communication [message #1794971] Tue, 11 September 2018 17:24 Go to next message
Eclipse UserFriend
Hi, I'm developing an application for the control of a small test plant.
the data is acquired by sensors in raspberry and sent via modbus tcp / ip to the client (Modbus master) running on my pc (FORTE). The connection between devices has already been made.
I'm having trouble performing the data read on 4DIAC. I'm using the client block to make the requisitions. The attached figures show my IDE.
Why can not I get any value in the RD_1 field?
  • Attachment: 4diac 1.png
    (Size: 204.35KB, Downloaded 325 times)
  • Attachment: 4diac 2.png
    (Size: 259.04KB, Downloaded 295 times)
  • Attachment: 4diac 3.png
    (Size: 230.25KB, Downloaded 249 times)
  • Attachment: 4diac 4.png
    (Size: 227.63KB, Downloaded 235 times)
  • Attachment: 4diac 5.png
    (Size: 257.94KB, Downloaded 290 times)

[Updated on: Wed, 12 September 2018 13:16] by Moderator

Re: Help Modbus communication [message #1795017 is a reply to message #1794971] Wed, 12 September 2018 15:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
the problem is that you haven't connected anything to the SD_1 and RD_1. However these are in the defintion of the Client fb of type ANY. In order to correctly recieve or send data you need to typify it. The easist way is to connect them to other functionblcoks with the type you want to send or receive.

I hope this helps.
Alois
Re: Help Modbus communication [message #1795050 is a reply to message #1795017] Thu, 13 September 2018 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Thank you, once again, for you attention. I just figure how to manage it e now everything is working correctly!
Re: Help Modbus communication [message #1795052 is a reply to message #1795050] Thu, 13 September 2018 11:11 Go to previous messageGo to next message
Eclipse UserFriend
great!
Re: Help Modbus communication [message #1850387 is a reply to message #1795050] Mon, 28 February 2022 16:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sir

Would you be so kind as to send me an example on how you managed to read the data using modbus. I'm trying to read UINT from a holding register.

regards
Re: Help Modbus communication [message #1850502 is a reply to message #1795050] Sun, 06 March 2022 20:30 Go to previous message
Eclipse UserFriend
Can you kindly display the revised attachment here? It may save some of us valuable time.
Thank you.
Previous Topic:Working tutorial for 4diac
Next Topic:IEC61850 MMS server
Goto Forum:
  


Current Time: Tue Jun 17 23:21:48 EDT 2025

Powered by FUDForum. Page generated in 0.11059 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top