Q :How do you convert a raw signal input from degrees C to degrees F at the OPC DA level so the archive receives the temperature in degrees F?
A: Refer to the PI Interface for OPC DA 2.x manual, Scaling and Transformations section.
Use these values in Point Builder:
OutValue = [ (InValue - Dzero) / Convers ] * Span + Zero
Conversion factor = 1
Total Code = 1
Squareroot = 0
In Excdec, write the following: DZERO = 0
Zero = 32
Typical value = 33
This should result in:
[ ( TagVal – 0 ) / 1 ] * 1.8 + 32
TagVal * 1.8 + 32
NOTE: Make sure when you have “DZERO = 0” in the Excdec field, include a space before and after the equals sign!
Thanks for this! I have marked the post as a discussion instead of a question, since it is simply showing a neat little trick! Feel free to let me know if you did have a question.
Retrieving data ...