How to Address Strings from RSLinx in my OPC Client?
When I load my tags from RSLinx my Strings come in as Arrays with each character as an individual array element.How do I address the entire string as a whole in a single tag?
When an OPC Client loads the tags from RSLinx it will treat strings as an array of characters.
Let's assume the tag you are trying to read is [ProgramName].Batch_ID.DATA[]. In your OPC Client you will have tags like [ProgramName].Batch_ID.DATA[0] through [ProgramName].Batch_ID.DATA[82].
In order to read the entire string in a single tag you will have to manually add a tag using the following syntax:
[ProgramName].Batch_ID
All you have to do is drop the .DATA from the tag name and only use the portion before the .DATA.