Jump to content

Output coils staying high when input is low


Recommended Posts

I am a very new user of ladder logic and having some problems understanding where I am going wrong.

I am writing a simple program to turn on and off some digital outputs (aliased as PV09, PV10, SV02 in my logic) in a series of steps with a set delay during each step. The coils turn on in the expected way, however when the inputs to the output coil turns off then the output remains high in the code and in the actual digital output.

I paste a snippet of my logic in online mode below - each rung is supposed to be a single step (Step[1] and Step[2]) which should finish once the bit for the next step is set, however the outputs (PV09/PV10/SV02) remain high even though the input into them is low. These outputs are not referenced anywhere else in the code so I can't understand why they are high.

Thanks for any help in advance!

 

 

image.png.9c3cc52110c98017c04a72bceee17fae.png

Link to comment
Share on other sites

  • MVP 2023

It looks like this is a UniStream program.  True?

You can only use a regular coil once in a program.  In ladder logic all rungs are scanned and solved and the last one wins.  In your program example above use different bits for each rung, and then OR them all together below your logic for the actual controlled bit.

Joe T.

Link to comment
Share on other sites

Like Joe already told us many many times.....

it's better to split complex ladder into minor parts on different rungs.....

sometimes you don't know how the compiler translate your thoughts 

Link to comment
Share on other sites

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.