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 7<br />

Solution:<br />

1. First create a new project and open a new IL ( Instructionlist ) file.<br />

2. Make a list of all the elements you think you are going to use ( inputs, outputs<br />

....)<br />

2. First you have to tell the PCD that you want this program to run in the COB<br />

0. Enter the COB 0 ECOB instruction as shown underneath.<br />

3. Add some comments.<br />

So. Now you already have a program. Although it wouldn't do anything yet,<br />

you could assemble and download it down to your PCD.<br />

4.Back to our parking lot program.<br />

The counter content always tells us how many empty places there are inside the<br />

parking lot. Once the counter comes to zero ( = 0 empty places ) we know that<br />

we have to turn on the red light.<br />

We presume that the parking lot is empty at the moment we turn on the PCD.<br />

So we load the counter with 8.<br />

When we want to do something at start up, we have to do so in XOB 16. Therefore<br />

add an XOB 16 in front of the existing COB and load the counter “NumberOFreeSlots”<br />

with 8.<br />

© Saia-Burgess Controls Ltd. Page 7E-9

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

Saved successfully!

Ooh no, something went wrong!