Vijeo Look VBA access to in-symbol variables

R

Thread Starter

Raycho Raykov

I have a SYMBOL with two wariables %Sensor and %Actuator. I need to set the real variable (for example @Actuator) conected to %Actuator when some event hapens and real variable (for ex. @Sensor) connected to %Sensor is set to 1 using VBA inside of this symbol.

The problem is that I cannot find the name of connected real variable. Is it posible or not? If someone knows how to do that, please help me.

Thanks.
 
N

Nicolas Kunzer

Hi Raycho Raykov,

That's right, you cannot access the variable animated inside the symbol.

To do what you want you need to declare the variables to monitor in event. Then this event runs VBA script.

You have to define a good naming rule between the variable monitored and the variable to set. For example the variable to monitor is VALVE1.VALUE and the variable to set is VALVE1.VALUE_SET. Then it's easy to your script to find the variable name to set.

For more details I advise you to contact Schneider's support.

Regards.

Nicolas Kunzer
PCVUE SEA
http://www.pcvue-sea.com
 
Top