EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.10 Interrupt
S7-200 SMART
290 System Manual, 09/2015, A5E03822230-AC
Priority group
Event
Description
Timed
Lowest Priority
10
Timed interrupt 0 SMB34
11 Timed interrupt 1 SMB35
21
Timer T32 CT=PT interrupt
22 Timer T96 CT=PT interrupt
Example 1: Input signal edge detector interrupt
LAD
STL
MAIN
Network 1
On the first scan:
1. Define interrupt routine
INT_0 to be a falling-edge
interrupt for I0.0.
2. Globally enable interrupts.
Network 1
LD SM0.1
ATCH INT_0, 1
ENI
Network 2
If an I/O error is detected, disa-
ble the falling-edge interrupt for
I0.0.
(This network is optional.)
Network 2
LD SM5.0
DTCH 1
Network 3
When M5.0 is on, disable all
interrupts. When disabled,
attached interrupt events will be
queued, but the corresponding
interrupt routines will not be
executed until interrupts are re-
enabled with the ENI instruc-
tion.
Network 3
LD M5.0
DISI
INT 0
Network 1
I0.0 falling-edge interrupt rou-
tine: Conditional return based
on an I/O error.
Network 1
LD SM5.0
CRETI

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals