Sign in to follow this  
Followers 0
rbyrne15

compressor motor toggle

5 posts in this topic

I came a cross a problem today which asked me to write a program which would toggle between two compressor motors each time the compressor tank needed to be re-filled. The problem gave a condition that I could only use one internal relay instruction. Could anyone offer a suggestion? Thanks, Richard.

Share this post


Link to post
Share on other sites
Ok. There are about as many ways to do this as there are programmers. Why is there a limit of only one internal relay? Is this a requirement of the job or is somebody just pulling your chain? Anyway here is one way to do it. (see attached picture) Edited by HalBishop

Share this post


Link to post
Share on other sites
Thanks HalBishop, now my program works like a charm. Does anyone feel that a bad programmer is one that asks too many questions? Richard

Share this post


Link to post
Share on other sites
Well, if asking too many questions is the sign of a bad programmer, then I must be a bad programmer. When doing a project, we always ask questions. That way the you give the customer what he needs, not what you thought he might want.

Share this post


Link to post
Share on other sites
At the beginning of any automation project, I always ask as many questions as I can think of, and then several more as they occur later. Many times you deliver a project and get the: "Yes, that's what we asked for, but it's not what we wanted" In my opinion, if I ever encountered a programmer who didn't ask any questions, I would be extremely worried. Experience teaches you which questions to ask, a lack of questions, could be an indication of lack of experience. ken

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
Sign in to follow this  
Followers 0