Passing variable string value in device tags by using script

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
rohit Kadam
Posts: 8
Joined: Thu Oct 04, 2012 12:27 am

Passing variable string value in device tags by using script

Post by rohit Kadam »

I am using IX developer 2.0.
In one of our application we are communicating Beijer HMI with SQL Server.
For same I write script for data logging and retrieving. But I am not able to pass script string variable value in Beijer HMI Device Tags. So can you please help for doing it. How to write script for passing internal string variable in device tags.

Thanks,
Rohit

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

Re: Passing variable string value in device tags by using sc

Post by mark.monroe »

This is how you assign a value to a tag in script

Globals.Tags.Tag3.Value = "My String";

You may not have set the Analog Numeric box to display strings or you may not have set the data type of the tag to string. Both of those will cause a tag to not handle strings properly.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply