Siemens SIMATIC S5-115U User Manual page 296

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

Interrupt Processing
Example of alarm processing
The module is operated with base address 0. You need 2 channels as alarm input. If you want to
enable inputs 2.4 and 2.5 as alarm inputs, you must set outputs 2.0 and 2.1 in the restart OB (see
Figure 9.4).
7
6
Output byte 2:
Input byte 2:
The following programming example shows:
How the module is parameterized at restart
How alarm evaluation is handled in OB2
and
How all inputs and outputs are accessed cyclically.
OB 21 STL
:
:
:
:
:L KM 00000000 00000011
:T PY 2
:BE
OB 22 STL
:
:
:
:
:L KM 00000000 00000011
:T PY 2
:BE
9-14
5 4
3
2 1 0
Bits
0 0 ´ 1
´ 1
7
6
5 4
3
2 1 0
Figure 9-4. Example of Alarm Enable
Alarm enable DIDQ485
Enabling of inputs 2.4 and 2.5
for alarm generation
(Set bit 0 and 1 in output byte 2)
Alarm enable DIDQ485
Enabling of inputs 2.4 and 2.5
for alarm generation
(Set bit 0 and 1 in output byte 2)
Bits
Enabled as alarm input
Not enabled as alarm input
Explanation
Explanation
S5-115U Manual
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents