Writing to a single bit of a tag

Good day,

Currently I am doing a new project inside Perspective, I take a tag from the OPC server and configures it as Boolean Array inside the Data Type property, when I try to write to one of the bits of the tag I get the following error:

image
image

When I configure the tag as Integer and try to write a value, I don't get any error and the value is written without problem. Do you know why this happens, if I'm doing the configuration wrong or if there is any other way to achieve what I'm trying to do, anyway I would appreciate your help.

If this is a tag from Ignition's OPC UA server with Ignition's Logix driver, you can create a new tag with .0, .1, etc.. appended to the OPC Item Path to access the individual bits.

If it's another OPC server, then what the syntax is and whether it's supported, is up to that server.

3 Likes

Hello Kevin! I'm facing the exact situation described by Josue (AB Logix OPC driver, boolean array on PLC side that Ignition sees as INT value) and I just noticed your solution works. However, I have a big amount of tags so this would take a long time to create all "individual" access. So, is this solution still the only one? Thanks in advance.

Yes.

If you have repeating patterns in your tags, consider making a UDT of that pattern, so you can instantiate all of the tags in the pattern at once. You can also script the creation of tags.

1 Like

Hello Phil. After some tests I chose to create an UDT for each pattern. For me it is the quickest alternative. Thank you for your help.

1 Like