Member Login
member
passwd
remember me on this computer.

- join now -

Search

Neat Stuff

Visit our shop for nerds in control lifestyle products.

Cool stuff
Select a topic of interest:
...and press:
Fortune
Good news from afar can bring you a welcome visitor.
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Automation department...
Analog values in Modbus protocol
Sensors topic
advertisement
Posted by jinson on 3 July, 2008 - 12:28 am
How to calculate the actual analog input value in Modbus protocol?

Posted by Romulo Rodriguez on 5 July, 2008 - 11:00 am
You have to convert the byte array of the reply from the plc to an analog number. Make sure the number the plc is sending is an integer value or a real floating point value. If what you get is a floating point value it seems that you have to use the IEEE 754-1985 algorithm to make the conversion. Google it or take a look on what the wikipedia says:

http://en.wikipedia.org/wiki/IEEE_754

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!