ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Advanced Tags with unknown values

anaclos
14-Alexandrite

Advanced Tags with unknown values

Hi, I'm using an Advanced Tag of type Derived to perform an AND between two boolean tags. It is expected that if one of them is Unknown because the PLC is disconnected, the result will be 0. If I use only the Derived Tag, the result is shown as Unknown in Quick Client. If I use a Link Tag to copy the result of the Derived to another boolean tag, it shows me the value 0 which is the expected value. Is there any way to get the value 0 without using a link tag?

ACCEPTED SOLUTION

Accepted Solutions
MRohilla
12-Amethyst
(To:anaclos)

Greetings,

You won't be able to obtain the result as a derived tag until you have the values for the input tag. The derived tag calculation fails if an input tag utilized in the computation returns a low-quality value; it does not output a default value, such as 0. It won't be known until every input is of high quality.

Regards,

Mohit

View solution in original post

3 REPLIES 3
ntripathi
14-Alexandrite
(To:anaclos)

Greeting @anaclos 

 

It sounds like you're encountering an issue with how the Derived Tag handles unknown values in Kepware.

One potential solution is to use a Trigger While Comparison is True trigger type on the Derived Tag. This can help ensure that the Derived Tag evaluates to 0 when one of the boolean tags is unknown. Here’s how you can set it up:

  1. Create a Derived Tag: Set up your Derived Tag to perform the AND operation between the two boolean tags.
  2. Configure the Trigger: Use the "Trigger While Comparison is True" option to check the quality of the boolean tags. If either tag is unknown, the Derived Tag should output 0.

This method avoids the need for a Link Tag and directly sets the Derived Tag to 0 when one of the boolean tags is unknown.

anaclos
14-Alexandrite
(To:ntripathi)

Thanks @ntripathi  but only Link Tags have the Trigger While Comparison is True option, in Derived Tags there is the Trigger option to select a particular tag.

MRohilla
12-Amethyst
(To:anaclos)

Greetings,

You won't be able to obtain the result as a derived tag until you have the values for the input tag. The derived tag calculation fails if an input tag utilized in the computation returns a low-quality value; it does not output a default value, such as 0. It won't be known until every input is of high quality.

Regards,

Mohit

Announcements




Top Tags