IO variable direct mapped to datalayer

I'm trying to communicate with WebIQ using OPC UA
It's working properly with every variable, except with the booleans mapped to an IO address.

For example:
xTest at %IX0.0: bool;

If i monitored this variable online it is shown as a bit variable instead of a boolean. And this type is not recognized by the OPC UA.

The only work around I could find was to declare the variable as a bool, without adressing and using a program to do the map.

This looks a little awkward. Is there a right way to read a IO mapped variable in the OPC UA server?

Best reply by StephenO

I have tested this with simply getting a IO bool into the OPC UA Server and reading with UAExpert. For me, I was able to get it to work with the instructions you provided. Even though the value is labeled as a 'BIT' in the PLC Engineering, it displayed in UAExpert without issue. Did you make sure to check the Symbol Configuration to expose your IO variables to OPC UA Server?

View original
4 replies