How to Map 32 bit data in Deltav

Dear All,

I want to check the bit value of all bit for the 32 bit data in DeltaV which is coming through serial connection. 

as in case in 16 bit register we get the values at the OUT_D of BFI block. 

17 Replies

  • In reply to stamate_mircea:

    I think you need to explore the Books On Line section on expressions and familiarize yourself with the syntax of DeltaV Calc block expressions. Create a test module, which you can download to the Pro Plus and explore some of these functions for your self.

    The expression above should work as is. As for combining four words into one, you would Use the Shift Left and do a bitwise OR with the next 8 bit word, and this would reverse the above process. that might look like:

    '^/INT32_OUT.CV' := SHL('^/INT8_D.CV', 24) | SHL('^/INT8_C.CV', 16) | SHL('^/INT8_B.CV', 8) | '^/INT8_A.CV';|

    That is as much as I'm going to give you. Good luck.

    Andre Dicaire

  • In reply to Nabil BOU:

    Regarding mapping 32 bit to 1 DST:

    Is it ok to use a BFI with 16 INs and a CALC block with 16 INs (with the calc formula for bits from 16 to 31) and then sum the outputs to the external reference? Seem to work only when single bits are triggered.

    CALC are limited to 16 anyway so I cant make it only with 1 CALC block