Set active controllers using scripting

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Hari Mistry
Posts: 4
Joined: Thu Nov 08, 2012 10:16 am

Set active controllers using scripting

Post 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

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

Re: Set active controllers using scripting

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

Beijer Electronics, Inc. | Applications Engineer

Post Reply