General

The auxiliary tasks are intended for slower processing tasks. These are the least priority tasks.

It is possible to program up to four auxiliary tasks (AUX0, AUX1, AUX2 or AUX3) on the Premium TSX P57 5•• and Quantum 140 CPU 6•••• PLCs.

It is possible to program up to two auxiliary tasks (AUX0, AUX1) on the Modicon M580 BME P58 •••• PLCs.

Auxiliary tasks are not available for Modicon M340 PLCs.

Structure

The auxiliary tasks (AUX) are made up of Program Units and/or sections and subroutines.

NOTE: Program Units are only available for Modicon M580 and M340.

Each section of the auxiliary task is programmed in one of the following languages: LD, FBD, IL or ST.

The SFC language is not usable in the sections of an auxiliary task.

A maximum of 64 subroutines can be programmed in the LD, FBD, IL or ST language. These are called in the task sections.

Execution

The execution of auxiliary tasks is periodic.

They are the least priority.

The auxiliary task period can be fixed from 10 ms to 2550 ms.

Control

The auxiliary tasks can be controlled by program by system bits and words:

System objects

Description

%SW2

Period of auxiliary task 0

%SW3

Period of auxiliary task 1

%SW4

Period of auxiliary task 2

%SW5

Period of auxiliary task 3

%S32

Activation of auxiliary task 0

%S33

Activation of auxiliary task 1

%S34

Activation of auxiliary task 2

%S35

Activation of auxiliary task 3

%S11

Watchdog error

%S19

Period overrun.

%SW36

Execution time (in ms) of the last cycle of auxiliary task 0

%SW39

Execution time (in ms) of the last cycle of auxiliary task 1

%SW42

Execution time (in ms) of the last cycle of auxiliary task 2

%SW45

Execution time (in ms) of the last cycle of auxiliary task 3

%SW37

Execution time (in ms) of the longest cycle of auxiliary task 0

%SW40

Execution time (in ms) of the longest cycle of auxiliary task 1

%SW43

Execution time (in ms) of the longest cycle of auxiliary task 2

%SW46

Execution time (in ms) of the longest cycle of auxiliary task 3

%SW38

Execution time (in ms) of the shortest cycle of auxiliary task 0

%SW41

Execution time (in ms) of the shortest cycle of auxiliary task 1

%SW44

Execution time (in ms) of the shortest cycle of auxiliary task 2

%SW47

Execution time (in ms) of the shortest cycle of auxiliary task 3