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,981
Hello, im quite new and still learning. I would like to ask is it possible for FATEK PLC to read data value more than 16k? I'm trying to move my...
Replies
0
Views
58
Hi all, looking to model old RR relays in PLC. Does anyone have any SPECIFIC examples on how to model a relay such as a polar relay, slow pickup...
Replies
0
Views
91
HelloI need software to download the program from PLC EH-A28DRP from an old machine whose manufacturer does not exist. It may be Ladder Editor for...
Replies
2
Views
102
HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
12
Views
387
Back
Top Bottom