Siemens SIMATIC S5-95F Manual page 352

Table of Contents

Advertisement

Interrupt Processing
Response Time for OB3 Interrupts
The response time for OB3 interrupts, T
the internal S5-95F delay for OB3 interrupts (max. 12 ms when no OB2 interrupts are used and
max. 16 ms when both OB2 and OB3 interrupts are used)
the execution time T
the execution time T
the number of interrupt input bytes n
In the majority of applications, the programs in OB2 and OB3 are relatively short. The execution
time of OB2 is generally less than 0.2 ms and that of OB3 less than 10 ms. You can therefore
expect a typical interrupt response time of 23 ms for OB3 interrupts.
If the execution times of OB2 and OB3 for your application differ from those assumed above, you
can calculate the interrupt response time using the following formulae.
Interrupt Response Time for OB3 Interrupts under Worst-Case Conditions
(OB3 Interrupts only)
Under worst-case conditions, the response time for OB3 interrupts if no OB2 interrupts are
used is
T
OB3 response, wort-case
Interrupt Response Time for OB3 Interrupts under Worst-Case Conditions
(OB2 and OB3 interrupts)
Under worst-case conditions, the response time for OB3 interrupts when OB2 interrupts are
also used is
T
OB3 response, worst-case
Minimum Signal Duration for OB3 Interrupts
Note
An OB3 interrupt is triggered by an edge at an OB3 interrupt input or when an onboard
counter reaches a specific comparison value.
The S5-95F detects the edge at an OB3 interrupt input under worst-case conditions
when signal states "0" and "1" have a duration of at least (5 ms + T
the case of counters, signal levels "0" and "1" must have a duration of at least
1.4 ms. For this reason, be sure to use suitable sensors and optimize OB2 and OB3 for
the shortest possible execution time.
12-16
OB3 response
of organization block OB2
OB2
of organization block OB3
OB3
used for interrupt processing with OB3
bytes
12 ms+1.25×T
+1.5 ms×n
OB3
= 16 ms+5×T
+1.25×T
OB2
, depends on:
bytes
+1.5 ms×n
OB3
bytes
S5-95F
(n
=1, 2 or 3)
bytes
(n
=1, 2, 3)
bytes
) ; in
OB3 response
EWA 4NEB 812 6210-02

Advertisement

Table of Contents
loading

Table of Contents