PLC Gurus, I need a little bit help here..
A little background, we're working on a project using PlantPAx from Rockwell.. We use some of their built-in global objects and create some of our own.. The thing is, the string tag which will be used to display tag names are stored in the controller as a tag inside the add-on defined tag (Cfg_Label)..
Since manually writing them one by one would be time consuming (deadlines...deadlines..), I'm trying to utilise the VBA feature of FTView Studio to write on them all at once..
This is roughly what I have at the moment:
Dim Tagname As String
Tagname = [PATH]PLCTag
Dim Cmd as String
sCmd = "Set {" & Tagname & "} & InputValue
I've tried for other data type (BOOL, DINT) in the input value, and it's working well.. The problem is when I want to write String values, the VBA will alwas looking for the tagname with the name as my String value..
The plan is to have Tagname and InputValue as arrays and put the above code in a for loop..
Any suggestions on how to do this?
Thanks
Dan
A little background, we're working on a project using PlantPAx from Rockwell.. We use some of their built-in global objects and create some of our own.. The thing is, the string tag which will be used to display tag names are stored in the controller as a tag inside the add-on defined tag (Cfg_Label)..
Since manually writing them one by one would be time consuming (deadlines...deadlines..), I'm trying to utilise the VBA feature of FTView Studio to write on them all at once..
This is roughly what I have at the moment:
Dim Tagname As String
Tagname = [PATH]PLCTag
Dim Cmd as String
sCmd = "Set {" & Tagname & "} & InputValue
I've tried for other data type (BOOL, DINT) in the input value, and it's working well.. The problem is when I want to write String values, the VBA will alwas looking for the tagname with the name as my String value..
The plan is to have Tagname and InputValue as arrays and put the above code in a for loop..
Any suggestions on how to do this?
Thanks
Dan