Siemens SIMATIC S5 1P 243 Equipment Manual page 47

Analog module with fb 160, fb 161
Hide thumbs Also See for SIMATIC S5 1P 243:
Table of Contents

Advertisement

On the interrupt module6ES5432-4UA1 1 various presetting are required. For the relevant input
in this case the setting "rising edge" was selected. The module address is given as 128. For a
more detailed description of interrupt procedures, see the appropriate equipment manual.
Simplified user program for scanning the interrupt inputs:
NETWORK 1
0000
0000
:
KM 1 IXXXXXX
0001
:L
PY167
0003
0004
:
0005
:
0006
NETWORK 1
0000
0000
0001 NAME :SAVE
0002
:
:L
PW 128
0003
:T
0004
0005
:L
Pw 130
:T
FW 116
0006
:L
PY 165
0007
0008
:T
:AN F 110.1
0009
F 114.0
Z
:
0010
NETWORK 1
NAME :INTERRUPT 922
:L
0005
0006
:T
PW 162
0007
In addition, system organization blocks OB 190 to OB 193 are available in
for saving and loading the scratchpad flags.
Interrupt Processing
Enable interrupt ("STROBE" = 1) and
Reaction to falling edge
("LOG" = 1)
Interrupt OB for CPU 921
Save scratchpad flag
Read in interrupt module
Read in interrupt module
Load comparator states
Evaluate parameter bit "B"
Evaluate interrupt input
Interrupt reaction (CPU 922)
Load scratchpad flags
Interrupt reaction (CPU 922)
Write DAC2
922 and 928A/B
CPUS
4 – 15

Advertisement

Table of Contents
loading

Table of Contents