[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Modbus Serial - Reading 32bits value from two 16bits datapoints  XML
Forum Index » M2M general discussion
Author Message
ftomiBR

Initiate

Joined: 12/07/2010 10:43:59
Messages: 53
Offline

Hello there,

Someone could help-me:

I want to know how can I get a real value from two 16bits variable (HIGH and LOW parts).


This message was edited 2 times. Last update was at 18/07/2010 20:58:26


Best Regards
Tommy
ftomiBR

Initiate

Joined: 12/07/2010 10:43:59
Messages: 53
Offline

How to read and write values coming from two 16bits registers?

This message was edited 2 times. Last update was at 18/07/2010 21:01:39

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

Just use a 4-byte data type.

Best regards,
Matthew Lohbihler
ftomiBR

Initiate

Joined: 12/07/2010 10:43:59
Messages: 53
Offline

Wonderful, that's it!

Thanks for helping so quickly.

I did not know that Mango could automatically handle the 32bits values.




Best Regards
Tommy
 
Forum Index » M2M general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team