9/13/2005
Programming the SMLC
33
CoDeSys - New POU
•
The New POU box automatically
appears when you create a new
project.
•
Every project must have at least
one POU (POU stands for
Program Organization Unit).
•
By default, CoDeSys will run the
POU PLC_PRG at powerup.
•
Each project can have up to 512
POUs. This number can be
increased in the target settings.
•
While its not required, we recommend that the main POU in your program be
written as a Sequential Function Chart (SFC). It is certainly possible to create your
main program in ladder logic, but the SFC is a good way to structure your overall
program.
•
This example program will be written as an SFC where each SFC step is written in
Ladder Logic. The SFC will serve as a state machine for our program.
•
Press OK when finished