Download Guideline
Transcript
During the second laboratory afternoon, demonstrate your design. Instructions for the introductory exercise P000 ld or set rst I/1 B/2 B/0 B/1 Query the on switch B2 is the continue bit If rung is true set the next rung enable bit If rung is true set bit B1 to off (the wait-for-thetimer bit) P001 ld ton pre acc ld set set rst B/0 T/0 Is rung 0 completed? If B0 is set start timer 0 T0/DN O/0 B/1 B/2 load the timer-finished bit Activate cylinder 0 Turn B1 on which says timer timed out Not ready to continue to rung 3 B/1 T/1 B1 is the unactivate cylinder bit If B1 is set start timer 1 T1/DN O/0 B/2 load timer-finished bit Deactivate cylinder 0 Set the ready-to-continue bit I/0 Query the off switch P002 P003 ld ton pre acc ld rst set ldi rst rst rst 100 066 100 066 B/0 B/1 B/2