Jump to content

when I energize v130 does not update alarm triggered on input


Recommended Posts

  • MVP 2023

You need to understand how Positive Transitions work. The only way for the PLC to know that the bit changed state is to have saved the state of the bit on the previous scan and do the comparison. On the very first scan of the PLC that is not possible since it has nothing previous to compare it to. You will need to rework your logic to account for that. You could do something like this:

image.png.ed0faef0e4e5133c9c5f798a24866cbc.png

 

Also, while I'm at it, you need to understand what Ladder Logic is all about. The program is divided up into ladder rungs purposefully to separate logic threads. Do not place multiple logic threads in a single ladder rung. It works most of the time, but can cause problems unexpectedly and is VERY poor programming practice.

Link to comment
Share on other sites

it's the first time I've worked with unitronics and I'm having a hard time understanding even subroutines
I could give you an example of what you commented on doing separate in rows of stairs.
Thank you very much for your help and sorry for the words as I'm from Brazil and I'm translating.

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.