Can I receive the value with bad quality by OPC interface ?
For example, can I receive 300.00 for FT-1104.PV to replace "Bad" value ?
I regret to inform you but it is impossible for a client to receive the value on OPC data with a bit mask of bad. When a bad value is sent from an OPC server with a bit mask of bad the client is unable to read the value payload. This is part of the OPC standard. It is possible for the PI Server to not store the "Bad Value" value but it is not possible to recover the actual data.
On the other hand questionable data can be stored and is processed differently than bad data. As see from the from the OPC DA Interface manual bellow, when questionable data is sent the client will still receive a value:
Because the PI archive stores either the quality or the value, the interface will translate the qualities in the “questionable” category to GOODSTAT, and set the “questionable value” flag for the data value. “Bad quality” flags get the corresponding PI status stored for the tag. If the quality is SUBSTITUTED_ST, the interface will currently store the status rather than the value sent. This behavior can be changed with the /SQ parameter in the startup file. Setting/SQ=Y parameter will cause the interface to store the quality (translated to a PI digital state) if the quality is anything but GOOD. Similarly, if /SQ=I is set, the interface will ignore the "questionable" quality, and treat the value as if it had good quality.
no /SQ parameter
The behavior can be enhanced to send only GOOD quality data by setting the /SG parameter. If the /SG is set, only GOOD quality data will be sent to PI. Questionable quality data and BAD quality data will be ignored.
If the /SQ=I or /SQ=Y flag is also set, then Questionable Quality data will be sent to PI as described above. BAD quality data will continue to be ignored.
The quality information will continue to be sent to tags that are configured to store quality instead of values.
If you would like to no longer store the digital states for bad values you can check the following box in ICU:
I think you can receive value with bad by choosing right option from 'Questionable Qualities'. Please refer below link.
PI Interface for OPC DA
I did same settings but still getting BAD values.any further suggestion
Retrieving data ...