PointEditor - Read and Write Args.
This post is about the Read and Write arguments editor.
The Read and Write functions alter value of the points before they enter the database or are used on the web, trended or evaluated for alarm condition. In the example above I entered a test value of 71. You can use different values to test your function. Then I added the first function that multiplies my test value by 1.142 to reshape the temperature sensor reading. Next I added 0.5 to give it a little offset. Please note that while adding a new equation you must take the focus out of the previous function by clicking on the "Applied Equations" label. Otherwise you will keep modifying the previous equation instead of making a new one.
When a driver gets a raw value for a point it checks if there are any functions applied in the Read or the Write Args editor. If there are any functions it will apply one function at the time starting at the top. So, in my example it will multiply the raw value by 1.142 first, then it will add 0.5 to the result of the first function, then it will take the result and round it up to two decimal places. As a best practice you want to first calculate the values and last apply the precision (round up to certain amount of decimal places). There are other functions available besides addition and multiplication:
- Addition –> result = rawValue + "my constant"
- Multiplication –> result = rawValue * "my constant"
- Exponant -> result = rawValue to the power of "my constant"
- Square root -> result = square root of rawValue
- Cosine -> result = Cosine(PI * rawValue / 180)
- Sine -> result = Sine (PI * rawValue / 180)
- Tangent -> result = tangent(PI * rawValue / 180)
- Precision -> result = round rawValue to "my constant" of decimal places.
http://www.inetsupervisor.com/Support/default.htm "InetSupervisor SUPPORT"
http://www.inetsupervisor.com/Products/Default.htm "Quark Communications PRODUCTS"
http://www.inetsupervisor.com "InetSupervisor HOME"
Have fun with the math…

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home