PLC_PRG

The PLC_PRG is a special predefined POU. Each project must contain this special program. This POU is called exactly once per control cycle.

The first time the ‘Project’ ‘Object Add’ command is used after a new project has been created, the default entry in the POU dialog box will be a POU named PLC_PRG of the program type. You should not change this default setting!

If Task Configuration have been defined, then the project may not contain any PLC_PRG, since in this case the procedure sequence depends upon the task assignment.

Note

Do not delete or rename the POU PLC_PRG (assuming you are not using a Task Configuration) PLC_PRG is generally the main program in a single task program.