Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Help Modbus communication
Help Modbus communication [message #1794971] Tue, 11 September 2018 21:24 Go to next message
Rodrigo Esposito is currently offline Rodrigo EspositoFriend
Messages: 24
Registered: August 2016
Junior Member
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 44 times)
  • Attachment: 4diac 2.png
    (Size: 259.04KB, Downloaded 32 times)
  • Attachment: 4diac 3.png
    (Size: 230.25KB, Downloaded 22 times)
  • Attachment: 4diac 4.png
    (Size: 227.63KB, Downloaded 22 times)
  • Attachment: 4diac 5.png
    (Size: 257.94KB, Downloaded 37 times)

[Updated on: Wed, 12 September 2018 17:16]

Report message to a moderator

Re: Help Modbus communication [message #1795017 is a reply to message #1794971] Wed, 12 September 2018 19:20 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 665
Registered: January 2014
Senior Member
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 14:47 Go to previous messageGo to next message
Rodrigo Esposito is currently offline Rodrigo EspositoFriend
Messages: 24
Registered: August 2016
Junior Member
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 15:11 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 665
Registered: January 2014
Senior Member
great!
Previous Topic:Help needed Traffic Light Tutorial
Next Topic:How to add wiringPi library to access the softPWM functions.
Goto Forum:
  


Current Time: Sat Nov 17 12:50:01 GMT 2018

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

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

Back to the top