Autor Thema: Limit Scaling Trick  (Gelesen 20125 mal)

Offline Timelord

  • Newbie
  • *
  • Beiträge: 16
Limit Scaling Trick
« am: April 07, 2015, 12:01:54 Nachmittag »
Limit Scaling trick

To get a direct precise reading from an analog input with 2 digits behind the decimal fraction
A little trick.

A sensor from -20  °C. to +70  °C.

I needed at least 1 digit behind the decimal fraction

So this is what I came up with.

I increased the sensor values in the LS by 10 or by 100 and looked at the actual output.
See example :   Scaling_Trick.zip

In the Easy Soft simulation the value (0-1023) goes up by 10 points at the time, BUT :

In REAL TIME the digital (0-1023) values go up a point at the time so it's very accurate.

The tag conversion in Winlog Lite with a division by 100,  and the template output with accuracy of 00.00

Works as a charm.

Just a little tip.   ;)

T L.