Skip to main content
12-Amethyst
November 21, 2024
Solved

Kepware Advanced Derived Tags - Logic Expression with String Output

  • November 21, 2024
  • 2 replies
  • 1376 views

I am looking to evaluate multiple tags in my Advanced Derived Tag with a String output.  I would like the output to be the following machine states: "Running" or "Idle" or "Down".  Is this possible?

Best answer by joetenny

Working with PTC, here is what they helped me figure out:

 

To get Machine State it required 3 sets of advanced tags:
1. 3 derived tags to identify the state as a Boolean (Running, Idle and Down)
2. 3 derived tags that hold the strings for the states (String tags with values: "Running", "Idle" and "Down")
3. 3 link tags to link the state string to the MachineState tag based on actual state

 

Here is an image of the LinkRunning tag for reference.

joetenny_0-1733419059621.png

 

2 replies

15-Moonstone
November 22, 2024

Hello,

 

Regards,
Mohit

joetenny12-AmethystAuthor
12-Amethyst
November 22, 2024

Thanks Mohit.  I have opened a case on the PTC Support page: Case # 17590680

 

Thanks,

Joe

joetenny12-AmethystAuthorAnswer
12-Amethyst
December 5, 2024

Working with PTC, here is what they helped me figure out:

 

To get Machine State it required 3 sets of advanced tags:
1. 3 derived tags to identify the state as a Boolean (Running, Idle and Down)
2. 3 derived tags that hold the strings for the states (String tags with values: "Running", "Idle" and "Down")
3. 3 link tags to link the state string to the MachineState tag based on actual state

 

Here is an image of the LinkRunning tag for reference.

joetenny_0-1733419059621.png