STATE_MASKS specification as value

I'm trying document STATE_MASKS configuration for a DC block, and was wondering what the parameter extension is to display this as a value, instead of having to nest tables of checked/unchecked/grayed in my design spec. Similar to how you can use .CV to define an option bitstring as a value.

6 Replies

  • You can use:

    MODULE/DC1/STATE_MASKS.PASSIN

    MODULE/DC1/STATE_MASKS.PASSOUT

    MODULE/DC1/STATE_MASKS.ACT1IN

    MODULE/DC1/STATE_MASKS.ACT1OUT

    MODULE/DC1/STATE_MASKS.ACT2IN

    MODULE/DC1/STATE_MASKS.ACT2OUT

    The value will be in binary bit format to produce integer number in this format

    awbxcydz where:

    a=Fourth Ignore - 1 is Ignored

    w=Fourth Value - 1 is checked, 0 is unchecked

    b=Third Ignore - 1 is Ignored

    x=Third Value - 1 is checked, 0 is unchecked

    c=Second Ignore - 1 is Ignored

    y=Second Value - 1 is checked, 0 is unchecked

    d=First Ignore - 1 is Ignored

    z=First Value - 1 is checked, 0 is unchecked

    So if you had an input mask for passive of second unchecked and first checked and rest ignored...you would have 169.

    Unforfulately you can't see these values from Explorer or Control Studio so I am not sure how you will be using this with your design spec unless you just document the above.

    Regards,

    Matt

  • In reply to Matt Stoner:

    Thanks Matt. That's a huge help. Mostly I'm just using these values to make my design docs neater/more script friendly. I think listing these as values instead of checkbox grids within a spreadsheet is better.

    I ran into a hiccup with ACT2.IN and ACT2.OUT - the values for them are 32938 (corresponds to 10000000 10101010). I'm thinking the leading 8 bits have to do with the "Use active 2" checkbox? This particular block doesn't use Active2 - is there a parameter extension to specify this, or is it reflected in the ACT2.IN and ACT2.OUT values?

  • In reply to Phil L:

    Yeah I forgot about that check box....the 16th Bit says if Active 2 is Not Being Used on both IN and OUT.

    So if you are NOT used Active 2, you will add 32768 (16th bit is set).

    If you are using Active 2, that bit will not be set and the original table is correct.

  • We usually provide design docs through export files.  When you bulk export these fields you get

    1's, and 0's, and X's (e.g. 01XX) to represent  enabled, disabled, and disregard (grayed out) for the 4 inputs/outputs

     

    It sounds like your trying to create documents using real-time data.

     

    Youssef El-Bahtimy | Systems Integration Technologist
    PROCONEX | 103 Enterprise Drive | Royersford, PA 19468 USA
    Proconex Office: 610 495 2970 | Cell: 267 275 7513



    From: Phil L [bounce-Phil_L@community.emerson.com]
    Sent: Wednesday, December 05, 2012 12:01 PM
    To: DeltaV@community.emerson.com
    Subject: RE: [EE365 DeltaV Track] STATE_MASKS specification as value

    Thanks Matt. That's a huge help. Mostly I'm just using these values to make my design docs neater/more script friendly. I think listing these as values instead of checkbox grids within a spreadsheet is better.

    I ran into a hiccup with ACT2.IN and ACT2.OUT - the values for them are 32938 (corresponds to 10000000 10101010). I'm thinking the leading 8 bits have to do with the "Use active 2" checkbox? This particular block doesn't use Active2 - is there a parameter extension to specify this, or is it reflected in the ACT2.IN and ACT2.OUT values?

  • Minor correction:
    For passive input of 10XX (first checked, second unchecked, rest ignored), the bits would be 10 10 00 01 = 161
    169 = 10 10 10 01 which is 1XXX (first checked and rest ignored)



    From:        "Matt Stoner" <bounce-MStoner@community.emerson.com>
    To:        <DeltaV@community.emerson.com>
    Date:        12/05/2012 11:29 AM
    Subject:        RE: [EE365 DeltaV Track] STATE_MASKS specification as value




    You can use:

    MODULE/DC1/STATE_MASKS.PASSIN

    MODULE/DC1/STATE_MASKS.PASSOUT

    MODULE/DC1/STATE_MASKS.ACT1IN

    MODULE/DC1/STATE_MASKS.ACT1OUT

    MODULE/DC1/STATE_MASKS.ACT2IN

    MODULE/DC1/STATE_MASKS.ACT2OUT

    The value will be in binary bit format to produce integer number in this format

    awbxcydz where:

    a=Fourth Ignore - 1 is Ignored

    w=Fourth Value - 1 is checked, 0 is unchecked

    b=Third Ignore - 1 is Ignored

    x=Third Value - 1 is checked, 0 is unchecked

    c=Second Ignore - 1 is Ignored

    y=Second Value - 1 is checked, 0 is unchecked

    d=First Ignore - 1 is Ignored

    z=First Value - 1 is checked, 0 is unchecked

    So if you had an input mask for passive of second unchecked and first checked and rest ignored...you would have 169.

    Unforfulately you can't see these values from Explorer or Control Studio so I am not sure how you will be using this with your design spec unless you just document the above.

    Regards,

    Matt

  • In reply to Youssef.El-Bahtimy:

    We're just modifying an existing class to make the DC statemask configurable. I wanted to label the design doc columns with the appropriate parameter extension, and wasn't sure what it was.

    Thanks all for the help.