unscale range 4---20ma with 0----27648

buolis

Member
Join Date
Apr 2018
Location
egypt
Posts
2
i make a program ( plc siemens s7-300 )
with analog output
4-------20ma
0-------27648
-20-----80c temp.
how to do this?
 
i make a program ( plc siemens s7-300 )
with analog output
4-------20ma
0-------27648
-20-----80c temp.
how to do this?

y=mx+b. Where "y" is temp., "x" are PLC counts.

To find slope (m)...y2-y1/x2-x1 or 80--20/27648-0= 100/27648=0.00361689814814814814814814814815

"b" = -20.

So to check if I take 1/2 the counts (x = 13824) and plug that into the other knowns (b and m) then we get 30, which is what I would expect...
0.00361689814814814814814814814815 x 13824 - 20 = 30.
 

Similar Topics

i make a program ( plc siemens s7-300 ) with analog output 4-------20ma 0-------27648 -20-----80c temp. how to do this?
Replies
8
Views
2,207
I am trying to send a setpoint to a rexroth analog controller from a step7 analog output (4 - 20mA) 6ES7332-5HD01-0AB0. Range of the lift is...
Replies
3
Views
4,320
Hi, I am having issues matching a 50HP submersible pump w/ a PF755 VFD (480V 3-Phase, 65(ND)/52(HD)). The failures occur at the static...
Replies
7
Views
920
Hi, I'm not sure how to do this... Basically, I want to restrict the user input values for this tag to be in the range 20.001 to 25.0. I...
Replies
17
Views
1,446
Hey guys, what is the function block that you guys use for range value ? I want to turn off a valve when a analog value is between 2 and 50, what...
Replies
5
Views
727
Back
Top Bottom