Hello.
Is it possible to save new Tag description?
I manage to edit and change the Tag description, but when I reboot the panel the description is the same as when I downloaded to the panel.
For example:
"Tag1" has description: "D1"
I change the description with this script:
In "AnalogNumeric0" I type: "D2"
void AnalogNumeric0_ValueChanged(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
Globals.Tags.Tag1.Description = AnalogNumeric0.Value.ToString();
}
"Tag1" now have description: "D2"
But when I reboot the panel the description is back to "D1".
Is it possible to save the new tag to the boot file?
Panel TA70.
Save new Tag Description
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Save new Tag Description
No, there is no way to save the tag description. It was designed to be a design time value. We give you the option of changing it at runtime but there really is no reason why you would want to do that.
The Tag description is just a note about what the tag is used for. If you want to save values and use them in your application, you should set a tag as "nonvolatile" and use that. Then the tag will hold its value between reboots.
The Tag description is just a note about what the tag is used for. If you want to save values and use them in your application, you should set a tag as "nonvolatile" and use that. Then the tag will hold its value between reboots.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Save new Tag Description
Thanks Mark.
The reason for changing Tag description is because I use the description as button labels for light control.
This way I can use the same program for multiple deliveryes. Just change the tag descriptions in Excel regarding light positions and import the taglist to IX Developer.
But if there are any changes after delivery I need to travel to change the text.
My thought was to let the service personel on site change the text without the use of computer. Just change the text on the panel and store it so it will stay after reboot.
Do you have any tips or solutions for this?
The reason for changing Tag description is because I use the description as button labels for light control.
This way I can use the same program for multiple deliveryes. Just change the tag descriptions in Excel regarding light positions and import the taglist to IX Developer.
But if there are any changes after delivery I need to travel to change the text.
My thought was to let the service personel on site change the text without the use of computer. Just change the text on the panel and store it so it will stay after reboot.
Do you have any tips or solutions for this?
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Save new Tag Description
You could put your text in string tags, then use script to set the button text. Many controls have a text property. Something like:
this.Button1.Text = Globals.Tags.MyTextTag.Value;
When the HMI boots up, if there is no value in a tag it will use the text that is in the initial value column in the Tags Tab. To save the text after the user has changed it, you just check the nonvolatile box in the Tags Tab. Then when the unit boots up, it will use that last value that was in the tag.
this.Button1.Text = Globals.Tags.MyTextTag.Value;
When the HMI boots up, if there is no value in a tag it will use the text that is in the initial value column in the Tags Tab. To save the text after the user has changed it, you just check the nonvolatile box in the Tags Tab. Then when the unit boots up, it will use that last value that was in the tag.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer