Forum Home › Forums › Understanding the Software › Using Formulas › Formula for Communication Line status and Device Status
- This topic has 11 replies, 3 voices, and was last updated 1 year, 5 months ago by
Mikhail.
-
AuthorPosts
-
May 9, 2024 at 5:23 pm #14507
JW
ParticipantI 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?
May 10, 2024 at 8:01 am #14510
MikhailModeratorDevice 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 – errorLine 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.
May 15, 2024 at 9:43 am #14514JW
ParticipantThanks, it’s quite convenient.
I think the device status can cover 99% of use cases.June 21, 2024 at 2:27 am #14732zzz
ParticipantIs this behavior available in 6.1.1 ? It doesn’t seem to work. I have added four
ActiveInputchannels with different dataType(double/integer), with differentCode(“”, “Status”) with the sameTagCode(“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, 5 months ago by
zzz.
June 21, 2024 at 9:20 am #14737
MikhailModeratorIt should work in 6.1.x
Channel data type is empty.
Channel type isInput
Tag code isStatusI didn’t find any place to verify the channel binding status.
Yes. It’s not displayed in Communicator.
June 22, 2024 at 4:11 am #14743zzz
ParticipantThanks, indeed,
data type=Emptyis the missing piece.
But it still feelsIntegermake sense. No data should have type undefined.June 22, 2024 at 7:25 am #14744zzz
ParticipantHow 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, 5 months ago by
zzz.
June 22, 2024 at 11:24 am #14747zzz
ParticipantI also tried
Dformat, its the same, I realized the formats tried before don’t make any change. I guess formats are not respected forEmptytype channels ?June 24, 2024 at 9:26 am #14764
MikhailModeratorWhen data type is empty, Double is used.
Normal-ErrororDformat would be OK. Format affects only displaying. In any case, you should receive a value that depends on device status.June 25, 2024 at 11:55 am #14772zzz
ParticipantCould 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
Currentcol cell has values, other sharp hour cells always show--, meanwhile, clicking on the item does show trace correctly for these hours though.June 26, 2024 at 12:30 am #14781zzz
ParticipantPlease ignore point #2, I don’t have hourly archive enabled for them, never mind.
June 26, 2024 at 9:27 am #14783
MikhailModeratorIf you use
Dformat, does the value change according to the actual device status? -
This reply was modified 1 year, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.