Problem to create tag! in DigiVis500 graphic builder
Hi all experts, I have a problem to add a tag in a project. After synchrize all variable from a OPC server, it's show all item in OPC list. When I select some items, and click Instantiate Tags, a window shows in attached file. No tag can be show in the bottom of the windows. Please advice
Voted best answer
First of all try using "Instantiate All" button in "OPC item" window. It should show You all Tag avaible to instantiate. If You can't instantiate a TAG that should be in the system, check if:
1. the TAG hasn't been instantiated already (You can't create two TAGs from the same OPC items),
2. all required items are avaible on the OPC server and they are properly described (the system can only see TAG to instantiate if the description in TAG-type exactly matches the OPC items),
3. any OPC TAGs with invalid names (they will be shown in red) were renamed.
Please check the above and come back with results. If the problem lies somewhere else I'm sure we will find it.
Three photos are attached.
Firstly, I have created a tag-type, ALL, and success. Then instantiate all variable to PLC_PRG, OK. Then I have tried to Instantiate other tag, show in instantiate tag.png. All window is empty. Therefore, I added four tags, show in RED, in tag list manual. It can instantiate . The problem is I don't know how to create tag under ALL tag-type.
From the screenshots I see You created a PLC_PRG Tag, but it seems Your whole application is treated as one tag as all variables are assigned to this tag.
The thing is that I'm not sure what You would like to achieve in the end. You were writing something about Group Display, but do You PAUs, AHUs or any other devices have a coresponding tag or function in Your PLC program?
Normaly it works like this:
I write a program in PLC (for example AC500, like in Your case) and in this program I use a PID function block named CONTROL1. In DigiVis I then create (or use already created) PID Tag-type in Tag_type_lib object. After that I go to OPC item window, assign all variables and instantiate Tag for PID function CONTROL1 using PID Tag-type.
If You want to create a Tag for AHU1...4 and they are all of the same type (as I understand it's a type of equipment or device) You have to create a Tag-type AHU and then instantiate it four times, creating four different tags: AHU1, AHU2, AHU3 and AHU4.
Does this clear things a bit?
In answer to Your comment here is a step by step instruction how to create tags. Before You start reading I have one comment: as I don't have an AC500 for testing all screenshots attached below are made when connecting to Freelance controller. That shouldn't be a problem, though, as the instructions are just the same.
First thing You must do is create a tag-type. As I understand You already have done it, but "just in case" note - if You created a tag-type it should be visible in tree view, like this:
If you have appropieriet tag-type in library the rest is quite easy. First go to OPC itme list and synchronixze it with Your server. I do it every time before some important changes to be always up-to-date. It looks something like this:
Then simply click "Instantiate all" button. You should get a window like this one:
In this example I have two PID function blocks in my controller (they are named Control1 and 2). DigiVis automaticly find that this are C_CS_O type tags and tries to instantiate them both, but there already are tags within my system named control1 and control2, so newly created tags must be renamed (all tags, that must be rename are in red). Change this by changing the name in "New name" column:
After changing their names, You can click OK. All Tags that where correct (or corrected) in "Rename tags" window (see above) should now be visible in Your Tag list.
You may also want to instantiate only one Tag. In that case use "Instantiate Tags" button in OPC items window (You must select at least one item before You click the button and this item must be part of the tag You want to create):
You should get this kind of window:
Click "OK" and then You will get a "Rename tags" window if there is a name colision. If not, Your done - click "OK" and the tag should be in Your Tag list.
I really hope that above instruction helps You. If You still find any problems, please tell at which step.