24.01.2015 Views

PLC Programming

  • No tags were found...

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

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

3 - We Write a Little Program<br />

Program SEQUENCE, Second Expansion Level, Instruction Part<br />

Now two new actions and a new transition condition are to be implemented. At the step Count the<br />

variable COUNTER is increased by one:<br />

Action Count<br />

The EXIT transition checks whether the counter is greater than a certain value, for example 7:<br />

Transition EXIT<br />

At Off the state of both lights is set at 5(OFF), (or each other number not equal 1,2,3 or 4) the<br />

COUNTER is reset to 0, and a time delay of 10 seconds is set:<br />

CoDeSys V2.3 3-9

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

Saved successfully!

Ooh no, something went wrong!