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, 1 month 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 #14510Mikhail
ModeratorDevice 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
Active
Input
channels 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, 2 months ago by
zzz.
June 21, 2024 at 9:20 am #14737Mikhail
ModeratorIt should work in 6.1.x
Channel data type is empty.
Channel type isInput
Tag code isStatus
I 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
=Empty
is the missing piece.
But it still feelsInteger
make 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, 1 month ago by
zzz.
June 22, 2024 at 11:24 am #14747zzz
ParticipantI also tried
D
format, its the same, I realized the formats tried before don’t make any change. I guess formats are not respected forEmpty
type channels ?June 24, 2024 at 9:26 am #14764Mikhail
ModeratorWhen data type is empty, Double is used.
Normal-Error
orD
format 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
Current
col 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 #14783Mikhail
ModeratorIf you use
D
format, does the value change according to the actual device status? -
This reply was modified 1 year, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.