Event Description

Forum Home Forums Understanding the Software Event Description

Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #11609
    victorlam
    Participant

    Hennie,

    Or have you tried these formula proposed by Mikhail?

    A formula would be close to
    Cnl >= 2 ? 0 : 1

    If you also want to calculate channel status
    Cnl >= 2 ? 0 : 1; Cnl >= 2 ? 201 : 202
    where 201 and 202 are status IDs

    For me, I was really confused on this and not fully digested with correct understanding. Or you can show me the picture how you have deployed the formula statement Cnl>?0:1 etc. or this must be used. Then I need to buy a programmer book and learn how this programming condition can be applied.

    #11610
    Hennie_Kotze
    Participant

    Victorlam,

    If I understand correctly, you want to view the actual value of the channel, while also associating the channel value with a predefined status, or “unit”…

    For the event viewer to indicate the status, or the “unit” of the channel, we have to define the channel format as “ENUM TEXT”. For this reason, the actual number will not show on the webstation as a number, but as a text…

    I am not sure what the correct way will be to accomplish this…. however, I do have a work-around for you….

    I created a new input channel, and a new communication line, which is connected to the same device (In my case, the same battery). You can edit the properties of the communication channel to only retrieve the data word you are interested in, so you don’t have to re-create ALL the tags again…

    Once you have created the new channel, you can change the format of the specific input channel to “D”, instead of “ENUM TEXT”. This new input channel will now indicate the number and not the text.

    In short, we have created a new input channel, with a separate communication line that is identical to the one used for the same device….

    Hope this helps…

    Regards,

    #11871
    victorlam
    Participant

    Hello again,

    Sorry for bothering you again.
    For your changes of the status, may I knnow if you have tested this in V6 version?
    If yes, please advise where is the location of the formula now.
    I cannot find any formula at V6 now.

    #11873
    victorlam
    Participant

    Hello Hennie,

    Thanks for trying to use the official V6 release version.
    I follow your steps and can manage and see the changes of the status name based on the values of the register 40001.

    0 – Communication LOST
    1 – Battery NORMAL
    2 – Battery Charging
    3 – Battery faulty

    Thanks again.

    If you have time, please try to use V6 and see if it works for your project also.

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