Home » Categories » Multiple Categories |
How does field server modbus driver handle floats |
Article Number: 563 | Rating: Unrated | Last Updated: Mon, Aug 17, 2015 at 2:24 PM |
When dealing with floats and modbus in a field server product, there are a few key elements to be aware of. First, if the data array you are connecting with your modbus point is of type Float, the field server will convert the value to an integer (stripping off the mantissa/fraction such that 12.34 would become just 12) and transfer that. If you're getting integer values from your other protocol, even though they're being stored in a 32 bit floating value (common for BACnet for instance) this means no conversion is necessary for you, the quick server will do the conversion for you. However, if you wish to maintain the mantissa/fraction and send the full floating point value, additional steps will be necessary. Since modbus does not have any floating point register type, you will need to break down the floating point value into two separate integer values, and transfer those. To break down a floating point value, use the special move command function Split_Float. To recombine a floating point value transferred as separate integers, use the special move command function Join_Float. To swap the word order of floats when splitting or joining them, use Split_Float_Swapped and Join_Float_Swapped respectively. Example Syntax would be: Moves Function , Source_Data_Array, Source_Offset, Target_Data_Array, Target_Offset, Length Join_Float, Your_Integer_Array , 0 , Your_Float_Array , 0 , 2 Length is the number of floats created or disassembled. For additional details on float conversion refer to page 23 and 24 of the Field Server Configuration Manual. |
Attachments (0)
![]()
There are no attachments for this article.
|
Comments
![]()
There are no comments for this article. Be the first to post a comment.
|
Does the PS56-LON SlotServer module support Lonworks TP/XF-1250?
Viewed 1 times since Fri, Dec 3, 2010
How many data points do the SlotServer Modules (PS56) support?
Viewed 1 times since Tue, Aug 25, 2015
How many Client and Server connections does the QuickServer’s Modbus TCP/IP driver support?
Viewed 1 times since Tue, Nov 3, 2015
What steps should I take to diagnose a Fieldserver product?
Viewed 1 times since Wed, Aug 20, 2014
Can I use Excel to create or edit CSV files for QuickServers or SlotServers?
Viewed 1 times since Tue, Nov 3, 2015
My sample slot server CSV is throwing a backplane error, do I have a bad sample?
Viewed 1 times since Mon, Aug 17, 2015
What do the QuickServer LEDs indicate?
Viewed 1 times since Thu, Jul 17, 2014
|