I’m trying to bind the dataProvider property to an OPCUA tag so that I can dynamically change it with PLC logic, but I don’t know how to set up my tag. It keeps saying it wants an “ItemCollection” datatype, but there’s no ItemCollection in my Automation Studio. I’ve also tried creating string arrays with its elements in the format of {‘value’:‘0’,‘text’:‘Member1’}, but to no success.
Does anyone know how to do this?
So I’ve tried this, and it didn’t work unfortunately.
My code:
RecipeRobot.RecipeList[0] := ‘{“value”:“1”,“text”:“Member1”}’;
RecipeRobot.RecipeList[1] := ‘{“value”:“2”,“text”:“Member3”}’;
My dropdown still shows up blank. I had heard that the problem could be in that my OPCUA information model had something to do with this, that its PV had to be version 2.0. I did so, and I also changed the OPCUA Default Namespace to http://br-automation.com/OpcUa/PLC/PV/, but the dropdown still isn’t working after that. What else could I be missing?
Oh wow, the binding was it… Forgot to do it lol. I knew it had to be something stupid, the dropdown works now. I’ll try out @hakan.kececi’s library in the process. Just a couple of closing questions though,
Did the information model version change matter? Should I keep it on 2.0 moving forward with future projects?
Also, how do you access the mappView diagnostic server?
Keep using OPCUA model 2.0. In AS 6.0 this is the only supported model if Im not mistaken. More info about mappView diagnostic you can find here B&R Online Help and here B&R Online Help