Re: [foxboro] Floating point data via FBM 224

Floating point in FBM224 Modbus uses the format tAxxxxxFyWz for PNT_NO
of the RIN block.

In order to satisfy myself of the bit-order of the bytes in the floating
point value to be read, I always build a temporary PAKIN to look at the
raw bits. Once you get one value built properly, the rest are easy.

You build up PNT_NO (tAxxxxFyWz) as follows:
t is the transaction code from the device configurator
Axxxxx is the point address (either 4 or 5 digit addressing)
Fy is the number of bytes in the floating point value to be read
Wz is whether the bytes need to be swapped (hence the PAKIN)

1A33001F4 reads a 4-byte (32-bit) floater at address 33001 with no byte
swapping
1A33001F4W1 reads the same value but reverses the order of all 4 bytes
1A33001F4W2 reads the same value but flips bytes 1/2 and 3/4

The swapping codes are detailed in Tables 5-5 to 5-8 of B0400FK
The key is to look at the PAKIN and see what order the bytes are in,
then use the proper W code to restore them.

Brad Wilson
brad.wilson@xxxxxxxxxxxxxxxx
Invensys Process Systems, Inc
1090 King Georges Post Rd, Suite 204
Edison, NJ  08837
732-661-4012 o
732-874-0087 c
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of Gregory A Hurwitt
Sent: Tuesday, July 22, 2008 5:55 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Floating point data via FBM 224

I am trying to read floating point data from a Triconex system (Tricon
V9.x) with an FBM 224.  Data is in Memory/Real/Read-only addresses in
the
Tricon (Modbus alias numbers 33xxx).  The "Example for Reading a
Floating-Point Input" in document B0400FK hasn't been much help.


* Confidentiality Notice:
This e-mail and any associated files are intended solely for the individual=
 or entity to whom they are addressed. Please do not copy it or use it for =
any purposes, or disclose its contents to any other person. Further, this e=
-mail and any associated files may be confidential and further may be legal=
ly privileged. This email is from the Invensys Process Systems business uni=
t of Invensys plc which is a company registered in England and Wales with i=
ts registered office at Portland House, Bressenden Place, London, SW1E 5BF =
(Registered number 166023).  For a list of European legal entities within t=
he Invensys Process Systems business group, please click here http://www.in=
vensys.com/legal/default.asp?top_nav_id=3D77&nav_id=3D80&prev_id=3D77.

If you have received this e-mail in error, you are on notice of its status.=
 Please notify us immediately by reply e-mail and then delete this message =
from your system. Thank you for your co-operation. You may contact our Help=
desk on +44 (0)20 7821 3859 / 2105 or email inet.hqhelpdesk@xxxxxxxxxxxxx T=
his e-mail and any attachments thereto may be subject to the terms of any a=
greements between Invensys (and/or its subsidiaries and affiliates) and the=
 recipient (and/or its subsidiaries and affiliates).


 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: