Presentation is loading. Please wait.

Presentation is loading. Please wait.

Schutzvermerk nach DIN 34 beachten Task management in the XSoft.

Similar presentations


Presentation on theme: "Schutzvermerk nach DIN 34 beachten Task management in the XSoft."— Presentation transcript:

1 Schutzvermerk nach DIN 34 beachten Task management in the XSoft

2 Schutzvermerk nach DIN 34 beachten Task Definition Task1 20ms Prg1 Prg2Prg3 Task2 event Prg4 Prg5 In XSoft there exist two kinds of tasks „Periodic“ and „Event triggered“. For the execution the following rules are valid:.The task, for which the condition is fulfilled, will be executed, i.e. if the time period has elapsed or on the rising edge of the associated global triggering event. ·If several task have valid conditions at the same moment the task with the highest priority will be executed first. ·If several tasks have valid conditions and the same priority the task with the longest waiting time will be executed.

3 Schutzvermerk nach DIN 34 beachten Task Definition Xsoft Task Interval Execution priority Event triggered task with global trigger variable

4 Schutzvermerk nach DIN 34 beachten Project Task 1 Task 2 Task Program 1 Program 2 Program 3 Program N Definition of hierarchies

5 Schutzvermerk nach DIN 34 beachten Cyclic Event triggered e.g. by global variable S1= 1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 H1:=1H1:=0H1:=1 1s TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 H1:=1H1:=0H1:=1 S1=1 Task Interval: Definitions:

6 Schutzvermerk nach DIN 34 beachten Task A Prio 5 Task B Prio4 Task A Prio 5 High priority tasks interrupt low priority tasks! Priorities of 0-31 are allowed ! Definition of Priority

7 Schutzvermerk nach DIN 34 beachten TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 H1:=1H1:=0H1:=1 1s Task Interval: TaskB Prog2 Cycle time error (Watchdog) If any one task can NOT complete the execution of its assigned programs within the defined interval, the PLC will go into HALT (watchdog) ! Definition of priorities

8 Schutzvermerk nach DIN 34 beachten Prog_L Prog_H Program execution time t 0T ProgL T ProgH (Task interval H) T IH (Task intervall L) T IL Prog_L 1. Break Prog_H T IRH Prio 0 1 Task_L: Task_H: Prog_L 2.Prog_L Break Prog_H Break Prog_H New Start 1. Prog_H T progL* Definition: Task Timing

9 Schutzvermerk nach DIN 34 beachten (Task interval L) T IL Break Prog_H T IRH Task_LL: Task_L: Break Prog_H Break Prog_H Prog_L 1.Prog_L 2.Prog_L Prog_L 1.Prog_L 2.Prog_L 3. T ProgL* Prog_L Prog_H Program execution time t 0T ProgL T ProgH Prio 0 1 Prog_LL 2 T ILR Prog_LL 4 Break etc. And what about 3 Tasks?

10 Schutzvermerk nach DIN 34 beachten Exercise: Task configuration


Download ppt "Schutzvermerk nach DIN 34 beachten Task management in the XSoft."

Similar presentations


Ads by Google