07.03.2014 Views

Introduction.

Introduction.

Introduction.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Workshop PG5 Exercise Chapter 4<br />

Counters and blinker :<br />

Example:<br />

Parking lot<br />

Output 17<br />

(red light) is<br />

lit as soon as<br />

the parking<br />

lot is full<br />

(Lot_full)<br />

Input 0<br />

( NewCar )<br />

Input 1<br />

( Car_leaving )<br />

You have a parking lot with 8 parking slots.<br />

You have to sensors : One at the entrance gate which gives a pulse each time a car<br />

enters. Input 0 (NewCar ) a second one tells you when a car is leaving (input 1<br />

Car_leaving ).<br />

A signal ( output 17 Lot_full ) starts blinking as soon as 8 cars are in the parking lot.<br />

Cars can enter the lot even if the lot is already full !!<br />

Set the counter to 0 when you start up.<br />

Goal:<br />

You learn to know the different types of counters we have.<br />

You learn to document the program.<br />

You'll use a blinker.<br />

You learn how to create a reset signal at start up.<br />

© Saia-Burgess Controls Ltd. Page 4E-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!