tiria

How can I refine this so that it works properly for this problem?

5 posts in this topic

Develop a program that will latch on an output Y0, 20 seconds after input X1 has been turned on. The timer will continue to cycle up to 20 seconds, and reset itself, until input X1 has been turned off. After the third time the timer has timed to 20 seconds, the output B will be unlatched.
problem.png.a6c8d0d1feddd084d6a3749197ef

Share this post


Link to post
Share on other sites

Do you mean like this ?

prog1.JPG

Share this post


Link to post
Share on other sites

Thanks Gambit.

The question was not well understood the first time.It's much clear now.

I have added a reset to M0 to stop the endless looping of the counter. 

Regards.problem1.png.85d302b0a442514dbe5423e1140

Share this post


Link to post
Share on other sites

Am I correct in reading that the system will repeat itself " until input X1 has been turned off" ?  If that is the case, then X1 would need to stay on for the entire time in order to set the output.  The sequence would abort and reset if X1 goes off at any time.  Or am I misunderstanding the requirement?

Share this post


Link to post
Share on other sites

LDI X1
RST Y0
RST C0
INV
ANI T0
OUT T0 K200

LD T0
SET Y0
OUT C0 K3
AND C0
RST Y0

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