24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Text Editors...<br />

5.3.1 The Instruction List Editor...<br />

This is how a POU written in the IL looks under the corresponding CoDeSys editor:<br />

All editors for POUs consist of a declaration part and a body. These are separated by a screen<br />

divider.<br />

The Instruction List editor is a text editor with the usual capabilities of Windows text editors. The most<br />

important commands are found in the context menu (right mouse button or +).Multiline<br />

POU calls are also possible:<br />

Example:<br />

IL in Online mode<br />

CAL CTU_inst(<br />

CU:=%IX10,<br />

PV:=(<br />

LD A<br />

ADD 5<br />

)<br />

)<br />

For information concerning the language, see Chapter 2.2.1, Instruction List (IL).<br />

With the 'Online' 'Flow control' command, an additional field in which the accumulator contents is<br />

displayed is inserted in the IL editor on the left side of every line.<br />

For further information concerning the IL editor in Online mode, see 'The Text Editors in Online Mode'.<br />

5-16 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!