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.

What is What in CoDeSys<br />

Entry or exit action<br />

Additional to a step action you can add an entry action and an exit action to a step. An entry action is<br />

executed only once, right after the step has become active. An exit action is executed only once<br />

before the step is deactivated.<br />

A step with entry action is indicated by an "E" in the lower left corner, the exit action by an "X" in the<br />

lower right corner.<br />

The entry and exit action can be implemented in any language. In order to edit an entry or exit action,<br />

doubleclick in the corresponding corner in the step with the mouse.<br />

Example of a step with entry and exit action:<br />

Transition / Transition condition<br />

Between the steps there are so-called transitions.<br />

A transition condition must have the value TRUE or FALSE. Thus it can consist of either a boolean<br />

variable, a boolean address or a boolean constant. It can also contain a series of instructions having a<br />

boolean result, either in ST syntax (e.g. (i

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

Saved successfully!

Ooh no, something went wrong!