im creating pi tags and i was wondering what is the attribute that i can use to set the analog pi tags minimum and maximum value?
The closest thing you set is the pi point attributes of 'zero' and 'span'. Except for Float16 data types the zero and span are generally informational. The numeric value is recorded regardless if it falls far above or below the range of values. In the case of Float16 values above the range will record a value of 'Over Range'. Digital tags settings for these attributes are set automatically by the PI Data Archive and ignore changes made to them.
Many Thanks for your reply. So using Zero and Span i can set the minimum and maximum values but pi still records value that are above or below the min/max , But does it only display the value between between Zero and Span to the user?
Yes the user will still be able to see the values. Outside of float16 tags, the zero and span attributes are mostly used for default formatting i.e chart ranges in client tools.
To pile onto James' explanation, you can see this KB: http://techsupport.osisoft.com/Troubleshooting/KB/KB00472/ for an explanation of the "under range" and "over range" behavior.
If your goal is to convert tag values on the fly before archiving (to a different range than the interface), then depending on the interface, you can use transformations and scaling (included link is for an interface for OPC DA): https://livelibrary.osisoft.com/LiveLibrary/content/en/int-opc-v6/GUID-43AB254E-ED27-4513-90F5-D655D9885171
Retrieving data ...