Welcome, Guest
Username: Password: Remember me

TOPIC: Tags to Scripts

Tags to Scripts 3 years 1 week ago #1665

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: -3
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 3 years 1 week ago #1666

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 861
  • Thank you received: 126
  • Karma: -108
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 11 months ago #1707

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: -3
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 11 months ago #1709

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 861
  • Thank you received: 126
  • Karma: -108
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 11 months ago by fatkhrus.
The administrator has disabled public write access.
The following user(s) said Thank You: arifcorp
Go to top