• Not Answered

How to alter DC1 Device options in runtime.

I am looking at altering the active device options based on plant conditions.

Can anyone suggest the correct format to use in an ACT block to drive the various bits?

DeltaV 9.3

2 Replies

  • Under the DeltaV\bin folder (Typically on C:) there is a text file "BitstringTranslations.txt" what will tell you which bit the particular option is using.

    You can then use this to know which bit to set or reset in your ACT block. You can just blindly set the integer word but then if someone wants to configure a different bit for DEVICE_OPTS then you would lose this when your logic updates the DEVICE_OPTS.

    Example:
    Turning Trip On:
    '^/DC1/DEVICE_OPTS.CV' := STBT('^/DC1/DEVICE_OPTS.CV', 1, 11);

    Turning Trip Off
    '^/DC1/DEVICE_OPTS.CV' := STBT('^/DC1/DEVICE_OPTS.CV', 0, 11);
  • Thanks Matt.
     
    That’s just the syntax help I was needing.
     
    I’d managed to get a global integer value working, but this is a much cleaner solution.
     
    Cheers
     
    Roddy