noorloai

Using TON within Loop in Ladder logic

4 posts in this topic

Hi All,

I have an issue and hoping you can help me with the solution.  I am not sure how can I use TON within loop in ladder logic?

I have made a loop using JSR and LBL to execute Sub, in this subroutine I need to use timer or delay before turning the output on, as I am facing an ON/Off condition which turn the output on.

Is there any suggestion ?

Appreciate your response in advance.

Thanks,

Share this post


Link to post
Share on other sites

Are there any conditions on the JSR?  If it is always execute the same as the main routine then the timer will function the same.  However if you enable a timer in a subroutine then stop executing the subroutine, then the DN it will not be set when the timer times out.

Share this post


Link to post
Share on other sites

there is no condition on JSR, BUT I am using conditional MCR to execute those codes .

Is there any other solution ? 

Share this post


Link to post
Share on other sites

move the timer below the MCR zone

Share this post


Link to post
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