Not able to set/reset individual bits of an Integer tag

How to set Individual bits of an Integer tag in Ignition?
Integer tag is defined in s7-1500 PLC, which we can browse through OPC sever.

Does this mean you’re connected directly to the OPC UA server built in to the S7-1500 and not using Ignition’s Siemens driver?

@Kevin.Herron
In Ignition OPC-UA server,
we added new device
s7-1500, and assigned host ip address.

In Ignition OPC Connections ,
Created new OPC Server Connections.

We are able browse OPC server in ingnition.
All tags we can see in ignition Project, which are defined in plc.

for example I have one integer tag which is defined in plc, which we can browse in ignition too,
I have 31 buttons on screen,
I want to use single bits of integer tag to to make these 31 buttons on/off.
My problem is iam unable to set or reset individual bits of integer tag for 31 buttons.

.

Since this tag is coming from an OPC server whether or not you can address its individual bits and what that syntax is depends entirely on the server. Ideally, the server would expose a boolean Node for each bit.

Some servers let you append syntax such as .0 or .1 to the end of the NodeId (OPC Item Path in Ignition) to address bit 0 or bit 1. I don’t think the server in the S7-1500 supports this but it’s verifying.

@Kevin.Herron
Thank you.
Regardless of tags if they are coming from OPC server or not, we can address individual bits and what that syntax is depends entirely on the server,its absolutely true.
my concern is, suppose I have one tag DB1.DBD0,which is defined in S7-1500 ,and this tag we can browse in ignition through OPC,if I want to point 31th bit of that tag how can I do it in ignition, I want to set/reset 31th bit of that tag, Can you send me syntax for this.

Have you tried the .0 or .1 example that Kevin posted?

DB1.DBD0.0
DB1.DBD0.1
DB1.DBD0.31

Thanks for information. I have one question, to set individual bits of integer tag, is it necessary to define OPC Item Path in ignition, after we are able to browse that integer tag which is defined in plc(S7-1500) in ignition through OPC server??

Yes, you will need separate item paths for each bit. Changing individual bits in a word requires a read-modify-write operation, which can only be done race-free by the target device itself. Some devices don’t support this at all, unfortunately (usually old modbus stuff).

@pturmel
Thank you.