Force Bit in Block_ERR Option Bit String

I was investigating the feasibility of exchanging our "soft_ai" composite for an Alarm Function Block, 's extremely useful writeup. I think he makes some great points, and for my systems, i think an Alarm Block would be a great fit. The only missing piece is how to deal with the "simulate" functionality. A few parameters with an xfer block does the trick. I put all of these into a composite block. The "missing piece" is, how do I drive the BLOCK_ERR parameter either on a block in the composite (i.e. alarm block, dummy calc block, etc.) such that it flags the "simulate active" bit. If this bit is flagged on the composite, then I assume it will be flagged in the module that the composite is in.

This is important b/c the dynamos (developed by Emerson) key the "simulation active" bitmap off of the BLOCK_ERR bit that shows "simulate active". 

Is it possible to force a bit on the BLOCK_ERR bit string? I tried using an expression using the [    STBT(integer value, boolean value, bit position)    ] function with no success.

Anyone have any ideas?

3 Replies

  • No it isn't possible to write to BLOCK_ERR as it is not a writeable parameter (you should have received a output failure or something in your module if attempting this).

    Currently for this issue what could be done is selecting Regular AI or SOFT on a dynamo and then change the animation accordingly for the simulation active bitmap.
  • In reply to Matt Stoner:

    Thanks, Matt. I created my own "simulate enabled" parameter in my soft AI and I broke out a condition block that looks at a combination of "simulate enabled" and the BLOCK_ERR simulation bit. My animations will now point to the output of that condition block.

    What do you mean by selecting SOFT on a dynamo? I did not see that as an option on any of the built-in fshr dynamos? Are you referring to a dynamo that only comes with PCSD?

  • In reply to Alex Lutz:

    My suggestion was you could Add a "Soft" selection on a dynamo that would trigger how the animation the Simulation animation is configured.

    If you do this just make sure that you don't modify an OOB GEM and you copy that dynamo(s) to User and then edit this dynamo and use it instead.