Re: [foxboro] How to reverse a 16 bit register - PAKIN
- From: <Bud.Kahovec@xxxxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Mon, 6 Apr 2009 07:43:02 -0600
Thanks Davide,
We will test the mirroring options.
Regards,
bud/
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx
[mailto:foxboro-bounce@xxxxxxxxxxxxx]On Behalf Of Crivellotto, Davide
Sent: April 4, 2009 6:23 AM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] How to reverse a 16 bit register - PAKIN
Bud,
if you are using the gateways to communicate using Modbus protocol, you are
using FDSI Modbus driver.
It has several options, in order to read, as an example, only 16 bits (instead
of 32); and then, you can mirror the 16 bits, or you are also able to swap the
two bytes.
Reading 32 bits, you have different more options, on swapping and so on.
You can get all the details on the "FDSI Driver - Modbus", on the document
B0700BG.
Hope this is applicable to you.
Regards,
Davide
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Bud.Kahovec@xxxxxxxxx
Sent: martedì 31 marzo 2009 18.50
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] How to reverse a 16 bit register - PAKIN
We are converting gateways to FDSI. We need to reverse a two byte register
(Bits 1 to 16).
Our goal was to insert a PAKIN upstream of our MCIN & CIN, which used to read
the MDSCAN.
Below is from B0193AX - PAKIN, which reverses Bits 1 to 32 only.
PKIOPT
Packed Input Option is a short integer input that specifies whether the
input bit stream from the device is packed in the PAKCIN output parameter
with or without reversing the bit order as follows:
1 = No bit reversal (Bits 1 to 32 are mapped bit-by-bit to Bits 1 to 32)
3 = Bit reversal (Bits 1 to 32 are mapped bit-by-bit to Bits 32 to 1)
Where is 2 = Bit reversal (Bits 1 to 16 are mapped bit-by-bit to Bits 16 to
1)????
We are trying to emulate the MCIN blocks IOMOPT = 2, which allows reversing 16
bits.
One option we found is the IIN block to read the register directly, then
connect to a MCIN to allow bit selection - poor use of blocks.
Thanks,
bud/
** Confidentiality Notice:
This e-mail, including any associated or attached files, is intended solely for
the individual or entity to which it is addressed. This e-mail is confidential
and may well also be legally privileged. If you have received it in error, you
are on notice of its status. Please notify the sender immediately by reply
e-mail and then delete this message from your system. Please do not copy it or
use it for any purposes, or disclose its contents to any other person.
This email is from the Invensys Process Systems business unit of the Invensys
Group, a group of companies owned by Invensys plc, which is a company
registered in England and Wales with its registered office at Portland House,
Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of
European legal entities within the Invensys Group, please go to
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail
inet.hqhelpdesk@xxxxxxxxxxxxx This e-mail and any attachments thereto may be
subject to the terms of any agreements 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
_______________________________________________________________________
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: