Added a Pi tag from Excel.
I was expecting a 0 or 1, but in PI SMT I get a 0 or -1.
When i check it in Topserver I get 0 or 1 which is correct.
What have I done wrong?
Are you using OPC Boolean type for this PI tag? If so, please check your location2 attribute for your tag. This attribute configures handling of data types for PI Interface for OPC DA.
More information can be found in the documentation for OPC DA interface.
Yeah I have location 2 set to 0, i was wondering if it was the display digits i set it to 5 wonder if it needs to be -5
The display digits should not affect the sign of a number. If the value of the tag has always been -1 and 0, then it's likely that the correct location2 might be 2 for you.
This can happen as an interpretation of OPC specification can differ per manufacturer.
It would be good to check on other OPC boolean type tags as well.
That has resolved the issue, thank you very much.
After reading your comment and then the location 2 explanation in the manual it makes perfect sense now.
Great! I'm happy to hear that helped.
Retrieving data ...