Converting values of analog inputs

User avatar
zorro_66
Posts: 23
Joined: Mon Aug 08, 2016 10:15 am

Converting values of analog inputs

Postby zorro_66 » Sun Sep 11, 2016 3:36 pm

How do I convert from AI1 0-10V in to 0-100% out :oops: :oops:
tomas_hora
Site Admin
Posts: 298
Joined: Wed Oct 29, 2014 9:56 am

Re: Converting values of analog inputs

Postby tomas_hora » Mon Sep 12, 2016 7:31 am

You do not need to convert it.... 0V means 0%, 10V means 100%, so 2.5V means 25%
User avatar
zorro_66
Posts: 23
Joined: Mon Aug 08, 2016 10:15 am

Re: Converting values of analog inputs

Postby zorro_66 » Mon Sep 12, 2016 12:07 pm

I must be doing something wrong
I've set the input sa below
Analog1.jpg
Analog1.jpg (16.9 KiB) Viewed 1385 times

but the value shown is wrong
Analog2.jpg
Analog2.jpg (5.13 KiB) Viewed 1385 times

it should be 2.4 bar and not 2426.8 Bar
tomas_hora
Site Admin
Posts: 298
Joined: Wed Oct 29, 2014 9:56 am

Re: Converting values of analog inputs

Postby tomas_hora » Tue Sep 13, 2016 11:28 am

The value of Ai is presented in mili Volts, so all you need to do is divide by 1000. Try playing with the X2 value ;)
User avatar
zorro_66
Posts: 23
Joined: Mon Aug 08, 2016 10:15 am

Re: Converting values of analog inputs

Postby zorro_66 » Wed Sep 14, 2016 6:58 am

Perfect thanks now it works. :mrgreen: :mrgreen:
Analog3.jpg
Analog3.jpg (4.85 KiB) Viewed 1378 times

Return to “Mervis”

Who is online

Users browsing this forum: No registered users and 0 guests