[foxboro] How to reverse a 16 bit register - PAKIN
- From: <Bud.Kahovec@xxxxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Tue, 31 Mar 2009 10:49:45 -0600
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/
_______________________________________________________________________
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:
- » [foxboro] How to reverse a 16 bit register - PAKIN - Bud.Kahovec