Formula for Communication Line status and Device Status

Forum Home Forums Understanding the Software Using Formulas Formula for Communication Line status and Device Status

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #14507
    JW
    Participant

    I remember I have seen discussions that about the V6 support formula to get Communication Line status and Device Status on the forum. But I couldn’t find it by search.

    Is this a feature in V6? If yes, where can find the related info? or I just remember it wrong?

    #14510
    Mikhail
    Moderator

    Device status is available. Each device in Communicator contains a hidden tag with the code Status
    If you create a channel, specify the device and tag code (Status), the device status will be received in this channel. 0 – normal, 1 – error

    Line status currently cannot be received by a channel. To implement this, there should be a channel number in the line options. But it looks ugly. We should find a better idea.

    #14514
    JW
    Participant

    Thanks, it’s quite convenient.
    I think the device status can cover 99% of use cases.

    #14732
    zzz
    Participant

    Is this behavior available in 6.1.1 ? It doesn’t seem to work. I have added four Active Input channels with different data Type (double/integer), with different Code (“”, “Status”) with the same TagCode (“Status”) and different devices (2 up 2 down), all show as ‘–‘ in tableview.
    I didn’t find any place to verify the channel binding status.

    • This reply was modified 1 year, 2 months ago by zzz.
    #14737
    Mikhail
    Moderator

    It should work in 6.1.x
    Channel data type is empty.
    Channel type is Input
    Tag code is Status

    I didn’t find any place to verify the channel binding status.

    Yes. It’s not displayed in Communicator.

    #14743
    zzz
    Participant

    Thanks, indeed, data type = Empty is the missing piece.
    But it still feels Integer make sense. No data should have type undefined.

    #14744
    zzz
    Participant

    How do I reverse the display format as you stated ? Currently it shows Normal as Off(red), Error as On(green).

    I copied, modified and assigned an Off-On format as On-Off, only reversing the On and Off in Edit Format, but it still show the same thing. Possible to make 1 red 0 green ?

    • This reply was modified 1 year, 1 month ago by zzz.
    #14747
    zzz
    Participant

    I also tried D format, its the same, I realized the formats tried before don’t make any change. I guess formats are not respected for Empty type channels ?

    #14764
    Mikhail
    Moderator

    When data type is empty, Double is used.
    Normal-Error or D format would be OK. Format affects only displaying. In any case, you should receive a value that depends on device status.

    #14772
    zzz
    Participant

    Could you check? At least on 6.1.1, setting any format (I tried, D, No-Yes, Device status, there is no Normal-Error format in this version’s config) won’t make any difference:

    1. It’s always shown as On(green) Off(red) — which is usually ok, but reversed in logic for these special channels.

    2. Only the Current col cell has values, other sharp hour cells always show --, meanwhile, clicking on the item does show trace correctly for these hours though.

    • This reply was modified 1 year, 1 month ago by zzz.
    • This reply was modified 1 year, 1 month ago by zzz.
    #14781
    zzz
    Participant

    Please ignore point #2, I don’t have hourly archive enabled for them, never mind.

    #14783
    Mikhail
    Moderator

    If you use D format, does the value change according to the actual device status?

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