Welcome, Guest
Username: Password: Remember me

TOPIC: Tags to Scripts

Tags to Scripts 2 years 5 months ago #1665

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: 0
Hi Ruslan

I have situation of multiple different tags called the same script upon changes.

Is there a way to identify which tags that triggered the script? By doing so, the script reacts according to the caller tags.

Thanks
The administrator has disabled public write access.

Tags to Scripts 2 years 5 months ago #1666

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
Hello,

No, unfortunately it's not possible to detect which tag triggered the script.

Best regards,
Ruslan
The administrator has disabled public write access.

Tags to Scripts 2 years 4 months ago #1707

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: 0
Hi Ruslan,

Is there a way for us to call the script for any changes of the tag value. Not just by comparing the value before calling the script.

Thanks
The administrator has disabled public write access.

Tags to Scripts 2 years 4 months ago #1709

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
Hello,

It's possible if you choose OnDataChange execution. If tag's value is changed in this its executed. For more info: teslascada.com/HTML/script-properties.html

Best regards,
Ruslan
Last Edit: 2 years 4 months ago by fatkhrus.
The administrator has disabled public write access.
The following user(s) said Thank You: arifcorp
Go to top