Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Modbus control from HC2


Mackan79

Question

Hi

 

I have a project at home, where I want to read data from my floor heating controlsystem and heating system.

Those systems have Modbus RTU, and I have a gateway which convert it to Modbus TCP-IP.

 

Is there any way to read data from modbus in HC2? If so, how could I get the information from the modbus register? Can look like: Register 50006, Temperature, 16bit value.

The gateway can be set to "Transparent modbus/tcp to modbus/rtu", i.e to reach the information I first need to access 192.168.1.90 and then the modbus register.

 

Any help is appreciated!

Thanks

Best Regards,

Marcus

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hi Marcus,

 

this is a small example on how to communicate via Modbus:

Please login or register to see this code.

Link to comment
Share on other sites

  • 0

 

 

Hello
  Can you help me with the correct implementation of the codes.
I need the values of this register.
how can I best implement.
With Simpli modbus this program I can read but how do I do with the code.
 
00 01 00 00 00 06 01 03 00 43 00 02
 
##########################################################
Funktion 03H : READ HOLDING REGISTERS
 
Register       Beschreibung                                Länge  Datentyp
40068          Photovoltaik-Leistung in Watt        2          Int32
##########################################################

Please login or register to see this code.

Or this code

Please login or register to see this code.

But the debug is

Please login or register to see this code.

answer is instructive

 

######################################################
Please help me with a example.

Please login or register to see this attachment.

Please login or register to see this attachment.

  • Like 1
Link to comment
Share on other sites

  • 0

I find this interesting. I think about buying a modbus adapter for my ventilation, but trying to consider cost vs usable functions and fun of the challenge.

 

Remember to include limit while comparing either [ < OR >= ] or [ <= OR ]

Please login or register to see this code.

Please login or register to see this code.

What if someNumber = 2147483647  ?

Better remove the first if, and hav return after the second if

Link to comment
Share on other sites

  • 0

I don't know what goes on in the scene but the number equal to: 231 − 1

If you use a signed 32 bit data type it would be the larges positive number you can have. The first bit is used for the sign 0: positive and 1: negative. 

Link to comment
Share on other sites

  • 0

Bonjour je suis a la recherche de quelqu'un qui serais capable de faire une VD modbus/ TCP/IP pour le logo8 De Chez Siemens ? une idée ?

 

Merci a tous pour votre aide. 

 

Voir traduction google merci 

Edited by DGDIM
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...