English Support - Hardware > easy topics (general)

Limit Scaling Trick

(1/1)

Timelord:
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.

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln