Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
In my project to open the Alarms page I want to use script. Because first I control the alarm bit then if the alarm bit set I wll show the Alarms page.. How can I show screen in the script.
if ( Globals.Tags.Alarm_Bit.Value == 0)
{
MessageBox.Show("No Active Alarms !", "No Alarm",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
else
{
---- The code to show Alarms screen -----
}
For example we have many of recipes and want to load a default recipe each system is powered on. So I have to write script for this but I didn't find what code to write into script. Please help..
You could create a timer and turn the timer on and off via a button. That timer could increment a tag which is used to tell the datalogger to log data.
If you set the timer for 1 minute, when the timer is enabled, then every minute the timer will change the value of the event tag, and the datalogger will log some data. You just need to set the "Log on Tag event" of your datalogger to the tag that is being incremented via a timer.
Snap 2012-07-09 at 08.41.45.jpg (45.91 KiB) Viewed 28480 times
Thanks for you for replies I know that I ask many question but I near to finish my project in 2 weeks. So; here is a problem that waiting me as creating test reference number.. For example; I want to give a reference number to my test as date.
Eg. Today is 13/07/2012 Time is 09:30 in this situation I want to create a reference number as 130712-0930..
The below code will convert the SystemTagDateTime, which is a tag that reports the current time on the HMI, to the format that you want.
To log this value into the datalogger, you will need to add the tag, RefID, to your test. Then it will show up as a column in the datalogger output.
You will need to decide on how you want to trigger the code. You could do it as part of a button that starts your test for example. Or you could put it in the value change event of the SystemTagDateTime tag.