Ignoring special values

Forum Home Forums Understanding the Software Formulas Ignoring special values

  • This topic has 3 replies, 3 voices, and was last updated 1 month ago by oley.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18003
    oley
    Participant

    Some output channels I use have special values if uninitialized.
    After restart the device the channel value is 0x7FFF or 0x7FFFFFFF.
    In this case the values should not be presented.
    Should I use script or is there a simpler solution?

    #18004
    manjey73
    Participant

    yes, you need a script, you can even use it in the input formula, something like this

    (Cnl == 0x7FFF || Cnl == 0x7FFFFFFF) ? SetData(CnlNum, 0, 0): Cnl

    however, I did not try to check for two values at once.
    instead of the first 0, you can double.NaN

    #18011
    Mikhail
    Moderator

    Could you clarify 0x7FFF and 0x7FFFFFFF are input values provided by the controller, or output values send to the controller. Maybe publish some screenshots.

    #18085
    oley
    Participant

    Hi,

    sorry for late answer, too much to do…
    Those are set points channels, e.g. active power of the plant.
    If I do not set any value, which is ok – full power, or after restart of the controller, it have this special values 0x7FFF or 0x7FFFFFFF, which are presented in the SCADA. This does not look like real value (it is not).
    @manjej73 advice works well. Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.