You are on page 1of 3

Calculation and simulation of the AS cyclic interrupt behaviour (OB30 to OB38)

Adjusted Correction duration [ms] [ms] Corrected cyclic load [ms] /1000ms

Priority OB-number 30 31 32 33 34 35 36 37 38 Sum 7 8 9 10 11 12 13 14 15

Duration [ms]

Execution [ms] 5000 2000 1000 500 200 100 50 20 10

Cycle load [ms]/1000ms

100 100

50 100

70 70

30 30

15 30

20

200

10

10

100

500 850
(of 1000ms)

500 645

Description of the columns :

Input fields: -The duration of the cyclic interrupts, e.g. calculated by the FBs "TIME_BEG" and TIME_END" . The duration of an priority OBs. -The execution interval of the cyclic interupts can be changed too, e.g. if it is a necessary requirement in the project

Calculated fields: -The cylic load is calculated with the duration and execution values standardized to 1000ms. -The correction is calculated if the duration contains other durations of higher prority OBs which interrupts the exec -The adjusted duration is defined as duration minus correction. -The corrected cyclic load is the relationship between the clean duration and the execution intervals standardized t Sum: If "Cyclic load to high" appears, the corrected cyclic load sum is higher than 700ms, that means OB80- (Timefaul as recommendation you have to reduce the cyclic load of the OBs which have caused the fault.

The following methods can reduce the cyclic load: - Moving running sequence groups from one OB to another "slowlier" OB - Increase the execution interval of an OB (Caution: this change requires an STOP of the AS ! )

s "TIME_BEG" and TIME_END" . The duration of an OB can contain the duration of higher

too, e.g. if it is a necessary requirement in the project.

alues standardized to 1000ms. ations of higher prority OBs which interrupts the execution of this OB. n. an duration and the execution intervals standardized to 1000ms

is higher than 700ms, that means OB80- (Timefault) can be started, Bs which have caused the fault.

"slowlier" OB nge requires an STOP of the AS ! )