Page 1 of 1

Set active controllers using scripting

Posted: Thu Nov 08, 2012 10:32 am
by Hari Mistry
Hi

I am looking to set active controllers in script from what i have read it is possible but i dont know how to get to the right class for the name of controller.

eg. I can use the following to get to tag value property and set value.
Globals.Tags.Tags1.Value = 42;

I would like to set the active property of the controller
..............Controller1.Active = true;

Kind regards

Re: Set active controllers using scripting

Posted: Fri Nov 09, 2012 8:53 am
by mark.monroe
There is no way to set the active controllers via a script. You have to use the action which is under Controllers in the action menu. You also must cycle power to the HMI for the change to take effect.