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.

What is What in CoDeSys<br />

Simulation<br />

Log<br />

During the simulation the created <strong>PLC</strong> program is not processed in the <strong>PLC</strong>, but rather in the<br />

calculator on which CoDeSys is running. All online functions are available. That allows you to test the<br />

logical correctness of your program without <strong>PLC</strong> hardware.<br />

Please regard: POUs of external libraries do not run in simulation mode.<br />

The log chronologically records user actions, internal processes, state changes and exceptions during<br />

Online mode processing. It is used for monitoring and for error tracing (see Online Functions).<br />

2.4 The Standard...<br />

The standard IEC 61131-3 is an international standard for programming languages of Programmable<br />

Logic Controllers.<br />

The programming languages offered in CoDeSys conform to the requirements of the standard.<br />

According to this standard, a program consists of the following elements:<br />

• Structures (see Data Types)<br />

• POUs<br />

• Global Variables<br />

The general language elements are described in the sections Identifier, Addresses, Types,<br />

Comments, and Constants.<br />

The processing of a CoDeSys program starts with the special POU <strong>PLC</strong>_PRG. The POU <strong>PLC</strong>_PRG<br />

can call other POUs.<br />

CoDeSys V2.3 2-25

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

Saved successfully!

Ooh no, something went wrong!