Get bit from int Tag , can read and write bit?

Modbus TCP:
I add a int Tag: status.
Bit 15 can control a valve.
I add a Expression Tag of getbit 15.

But when I write it , it shows error?

Expression Tag is just for reading?
Like this, what kind type tag can I add?
Let it can read and write bit 15?

Expression tags are read-only.

To write to bits of holding registers, make a boolean tag with an OPC path of the form [device]HR123.15. As long as the device supports Modbus function code 22, the boolean will be writable.

If the device doesn't support function 22, you will need to use a derived tag, and have the write path merge the changed bit into the target integer, which then writes the whole integer. Racy if anything other than Ignition can change any bits in the integer.

1 Like

Yeah! Derived Tag is right!