Pseudocode for PLC samples

I did a quick google search for "pseudocode examples" and got quite a few hits.....
Also, try searching for pseudocode here in the site, and you'll get a few more...

Welcome!
 
Problem: Coffee pot is empty.

Step 1: is pot available? Yes- goto step 2. No- goto bad_end

Step 2: Fill pot with water

Step 3: is filter available? Yes- goto step 4, No- goto bad_end

Step 4: Get filter, put in basket

Step 5: Is coffee available? Yes- Goto step 6, No- goto bad_end

Step 6: Put coffee in filter

Step 7: Turn on coffee maker, and pour water into it.

Step 8: Put pot on warming plate (quickly)

Step 9: Delay 3 minutes goto good_end


bad_end: Bob is going to be sleepy and grouchy today, goto exit

good_end: Bob is going to be happy today.

exit
 

Similar Topics

I am currently in a PLC class and need to write pseudocode order of operation for my bead sorter Lab. The Bead sorter has a vaccum in the main...
Replies
3
Views
2,964
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
6
Views
109
the conveyor can stop because of a safety sensor or safety switch. And also it can stop because of an object jam detector sensor. If the conveyor...
Replies
5
Views
154
Good Day to all of you, this is my first post, i will try to explain as best as possible, english is not my natural language. I am performing an...
Replies
0
Views
34
Hi All, Someone at work has put a PLC system on my desk, that's just been taken off an idle production line. He said "It's an S7 PLC. We don't...
Replies
10
Views
229
Back
Top Bottom