Page 1 of 1

Starting script from PLC.

Posted: Thu Sep 13, 2012 4:19 am
by wlederer
If we want to start script after a button was clicked, we can use something like:
void Button1_Click(System.Object sender, System.EventArgs e)
{

}
How to start a script after tag's value changed, for example, values from PLC?

Regards, Waldemar

Re: Starting script from PLC.

Posted: Thu Sep 13, 2012 8:52 am
by mark.monroe
Go to the Script section of the Tags Tab and put your script in the value change event section of the tag that you want to use to trigger the event.
Snap 2012-09-13 at 08.51.56.jpg
Snap 2012-09-13 at 08.51.56.jpg (86.17 KiB) Viewed 7521 times

Re: Starting script from PLC.

Posted: Fri Sep 14, 2012 4:17 am
by wlederer
Thank You very much Mark.
At first did not work. The HMI did not notice short pulses in PLC. After the pusle was made long enough it works fine.
regards, Waldemar