Go Down

Topic: HELP WITH PROGRAMME WRITING!! (Read 521 times) previous topic - next topic

Luke_Johnston

I am struggleing writing a code to control a valve output controlled by a button input with an emergency stop also written in.!!

The Format of the test is as followed

Button Pressed

System Primed - which involved 10 x 2sec  of output causing the valve to open with 2 sec rest intervals inbetwwen.

this is then followed by 5 mins of valve being open

close valve

END - wait for button to be pressed to comense test again....

with an emergency stop built in to end the process straight away!!!

ANY HELP WOULD BE VERY MUCH APRIECIATED!! ;D ;D

L JOHNSTON

PaulS

Quote
ANY HELP WOULD BE VERY MUCH APRIECIATED!!

OK, OK. Stop the screaming already.

Quote
I am struggleing writing a code to control a valve output controlled by a button input with an emergency stop also written in.!!

What you want to do is simple enough. Read the state of two buttons - the start and the stop buttons. If the stop button is not pushed, do something.

What to do depends on what time it is, and the last thing done.

If you are struggling to write the code, that suggests you have some code that is not exactly right.

Post that code, and explain what is wrong, and when the homework is due, and we'll help you with it.

Quietly, please.
The art of getting good answers lies in asking good questions.

Go Up