Starting script from PLC.

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Starting script from PLC.

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Starting script from PLC.

Post 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 7523 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: Starting script from PLC.

Post 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

Post Reply