-

'Tasks and Events' Editor (Safety PLC)

The following information refers to a specific, typical device type. Your screen may differ.

This help topic describes the 'Tasks and Events' editor of the 'Safety PLC' PLANT node.

Note
To be able to edit safety-related data, you have to be logged on to the Safety-related Area. Refer to the topic "Safety-Related Area with Password Protection" for details.

In contrast to the standard controller, the Safety PLC executes exactly one task in which exactly one program is instantiated which is always the safety-related program named S_Main. Both the safety-related task and the program instance are created automatically on insertion of a controller with a Safety PLC in the PLANT. The program instance can neither be deleted nor edited and only the task properties 'Interval (ms)' and 'Watchdog (ms)' can be modified.

Further Info
Further details and information can be found in the topic "Safety PLC Runtime Configuration".

This topic contains the following sections:

Toolbar of the editor

Toolbar buttonDescription
The icon is inactive as only one task is allowed and cannot be moved.
The icon is inactive as only one task is allowed and cannot be moved.
Opens the toolbar for local find and replace operations.

Description of the task editor table

The 'Tasks and Events' editor contains a hierarchically structured table where tasks and events can be specified and program instances can be assigned.

Entries in the table can be expanded and collapsed by clicking the appropriate icons and

ColumnDescription
NameName of the table entry. Depending on the hierarchical position, this can be:
  • SafetyTask: identifier of the default, automatically created and non-editable safety-related task.
  • S_Main: name of the default, automatically created and non-editable program instance of the safety-related S_Main program type.

    Further safety-related programs can be created in the COMPONENTS area but they cannot be instantiated and are therefore not executed by the Safety PLC.

Task typeThe task type specifies the condition which starts the execution of the task.

For the Safety PLC only the type 'cyclic' is allowed and can not be edited.
Event nameEvent that triggers the execution of the task. This is not allowed and therefore not editable for the Safety PLC.
Program typeProgram that is assigned to the task (type of the instance).

The Safety PLC executes exactly one program which is always the safety-related program named S_Main. This program instance is created automatically on insertion of a controller with a Safety PLC in the PLANT. It can neither be edited nor deleted.

Further safety-related programs can be created in the COMPONENTS area but they cannot be instantiated and are therefore not executed by the Safety PLC.
Interval (ms)Time interval in ms in which the cyclic SafetyTask is executed (integer or floating point value).

The time value should be a multiple of the timer resolution of the Safety PLC.

Note
Enter floating point values 0.xxx for specifying interval durations in the range of µs.

Observe the hazard message below this table.
PriorityPriority for calling the task. The SafetyTask has always the highest priority 0 which cannot be edited.
Watchdog (ms)Maximum time a task is allowed to run for one cycle (call). If the watchdog time exceeds, a watchdog error is generated. This way, the watchdog monitors the execution and completion of a task within the defined time. The watchdog is executed during each system cycle.

The watchdog time normally should be shorter than the Safety PLC cycle time.

Observe the hazard message below this table.

The valid value range depends on the Safety PLC. Please refer to the PLCnext Info Center and the device manual for minimum and maximum watchdog settings.

Note
Deactivating the watchdog with the value 0 is not permitted.

CommentUser-defined comment.

WARNING
Non-conformance to safety function requirements
  • Verify that the time value set for the 'Interval (ms)' and 'Watchdog (ms)' of the SafetyTask correspond to your risk analysis.
  • Be sure that your risk analysis includes an evaluation for incorrectly setting the time values for the 'Interval (ms)' and 'Watchdog (ms)' of the SafetyTask.
  • Validate the overall safety-related function with regard to the set 'Interval (ms)' and 'Watchdog (ms)' value and thoroughly test the application.