For FP2SH120k and FP10SH120k, program memory is divided into two tasks. Each task can perform a maximum of 60k programming steps.
For POUs entered into task 1, the compiler automatically writes the program code into the first 60k of program memory. For POUs entered into task 2, the program code is written into the second 60k of program memory.
There are two program code editors in the Project pane, one for each program memory: Program code and Program code 2. The initialization of variables used in programs (POUs) always takes place in the task 1. The tasks are executed in turn by the PLC (task 1, task 2, task 1, task 2, ...).
System resources, e.g. labels, data registers or file registers, are used by both tasks and are administered centrally.
Programs entered under 0–23 and Periodic Interrupt) are assigned to task 1.
and the interrupt routines (InterruptPrograms entered under
are assigned to task 2.SFC programs can only be used in task 1.
If a function is used in various POUs and is not assigned to a task, the program code of the function is duplicated and assigned to both task 1 and task 2.
If Indexed function block instances under is selected and the function block is used by POUs in task 1 and task 2, the function block is duplicated nevertheless.