Welcome, Guest
Username: Password: Remember me

TOPIC: WRITE 2 TAGS WITH ONE CLICK

WRITE 2 TAGS WITH ONE CLICK 3 years 5 months ago #1218

  • rafael
  • rafael's Avatar
I have a few questions :
1) Can i write 2 tags at the same time with one button?
2) Can i close a pop up screen and write with one button?
3) Can i open a pop up screen and write with one button?
The administrator has disabled public write access.

WRITE 2 TAGS WITH ONE CLICK 3 years 5 months ago #1219

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
Hello,
Answers to your questions:
1) You can write values in 2 tags by using scripts. You can do it for example by using tag dependent ST script. When tag's become some value script is called and write value to other tag or you write in 2 tags if you want.
2) You can also do it by using scripts. You can do it for example by using screen dependent ST script. You can call this script when the screen is closed by using OnClose event and bind this script to this script. In this script you can write value to the tag.
3) The same way you can do for open screen, buy use OnOpen event for calling script.

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

WRITE 2 TAGS WITH ONE CLICK 3 years 4 months ago #1220

  • rafael
  • rafael's Avatar
Could you send me a video , saying how to do it?
The administrator has disabled public write access.

WRITE 2 TAGS WITH ONE CLICK 3 years 4 months ago #1223

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

1.Project with example for writing values in 2 tags you can find at the attached file. There are 2 buttons for toggling 2 tags - write10 and write0. When tag is become TRUE from FALSE 2 scripts are called write10 and write0. And in these scripts Tag2 and Tag3 are written by values 10 or 0.

File Attachment:

File Name: write2tags.tsp2.zip
File Size:2 KB
The administrator has disabled public write access.

WRITE 2 TAGS WITH ONE CLICK 3 years 4 months ago #1224

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

File Attachment:

File Name: closepopup.tsp2.zip
File Size:2 KB

2 ,3. For writing value to the when call and close popup see attached project. We create 2 scripts. First is called when Popup is opened and write value 0 to the tag. Second is called when popup is closed and write value 10 to the tag. Both scripts we add to the Collection of the Popup screen.
Last Edit: 3 years 4 months ago by fatkhrus.
The administrator has disabled public write access.

WRITE 2 TAGS WITH ONE CLICK 3 years 4 months ago #1225

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
For more complex working with tags when calling popup screen see this example: teslascada.com/HTML/complex-call-pupup-with-script.html

Best regards,
Ruslan Fatkhullin
The administrator has disabled public write access.
Go to top