Page 1 of 1

Project Code

Posted: Wed Jul 17, 2024 7:40 pm
by Toby2205
Hi All
I was looking for advice too see if the code for my final project will work as expected. It has the following requirements:
>Start that hen operated will operate a relay to open a DAC hopper valve and power a relay to control machinery.
>Stop will stop the machinery running, shut the DAC hopper valve and await a reset and then power a reset required light.
>Micro switch will stop the machinery running, shut the DAC hopper valve and await a reset and then power a reset required light.
>Reset can be operated mid program or after the the stop or microswitch is actuated, it must take the code back to the start and await the start to be pressed again.

Re: Project Code

Posted: Wed Jul 17, 2024 8:41 pm
by kersing
Not looking at the code but at the logic you describe, what happens to the hopper valve when you reset mid program? Is that a safe situation?

Re: Project Code

Posted: Wed Jul 17, 2024 8:49 pm
by Toby2205
When resetting it will go through the same process. However I see your point. Is it best to just have the reset move the code back to the start?

Re: Project Code

Posted: Wed Jul 17, 2024 10:28 pm
by Toby2205
I planned for it to close the hopper to prevent anything entering the conveyors to allow time for theoretical unload clean and reset

Re: Project Code

Posted: Wed Jul 17, 2024 10:34 pm
by kersing
May-be always close the hopper at the start of the program so you are sure what the initial state is?