Bind BOOL Tag to INT Value

I have a BOOL tag that I am trying to bind to a multistate button. The only states are 0 and 1. When I do the binding in the designer it looks fine, but in runtime the tag shows a red overlay error and throws a “error writing 1 to tag - Bad” error.

The path to the tag is correct.

I have done this with other BOOL tags though

By default, a multi-state has pre-defined states of 0,1,2. Did you remove the 2?

I read your post too fast sorry haha

Ya, I’m at a loss here. I have 2 instances of the same template in the same popup, both bound to different BOOL tags. Both paths are correct.

Both are working in the designer.

During runtime, one is working, one is not. I ran diagnostics on the template in the designer and all bindings are good.

Oops. Quality of one of the tags is bad. I have multiple instances of the same UDT and template and was only looking at the first one.

FWIW the issue was that I was referencing a BOOL in a BOOL array in the PLC. Had to be referenced as array[0].index, not array[index].