Jump to content

Analog input to Digital output


Recommended Posts

Hi to all,

I have one question. I made simple program linearization for analog input 4-20mA to read pressure sensor 0-250bar.

I can read pressure from display without a problem.

Now I would like to add if pressure is 180bar or higher it has to activate digital output O 0.

I add this function but its not working.

Did I use wrong function?

Analog_input_test_4-20mA.U90

Link to comment
Share on other sites

Hi kikitron,

 

You used linearization for display.

The linearized value created in this way is used only for display purposes and cannot be used for ladder operations.

You have to use SI 80 - 85 to set the (x,y) range and energize SB 80 to activate the linearization function in ladder.

 

Or simply leave it as it is and use non-linearized value for the compare function (#794 instead of #180).

Link to comment
Share on other sites

Now I wrote linearization with program and its working perfect :rolleyes:

Now I have second question:

What happens if I use 2 or more analog inputs (sensors) and I can write linearizaion program only for the one.

Because if I use for first sensor SI 80 - 85 to set the (x,y), what  SI xx can I use for secon one or third ... ?

 

 

Analog_input_test_4-20mA_ladder.U90

Link to comment
Share on other sites

  • MVP 2023

Joe's answer is correct, but I well remember the first time I encountered this quirk of the program.  It is initially confusing that you are using the same things repeatedly for a different result, all in the same scan....but that's the way it works.

cheers,

Aus

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.