EasyManuals Logo

Siemens Simatic S7 Series System Manual

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
Page #284 background imageLoading...
Page #284 background image
Program instructions
7.10 Interrupt
S7-200 SMART
284 System Manual, 09/2015, A5E03822230-AC
7.10.2
Interrupt routine overview and CPU model event support
Before an interrupt routine can be invoked, an association must be assigned between the
interrupt event and the program segment that you want to execute when the event occurs.
Use the attach interrupt instruction to associate an interrupt event (specified by the interrupt
event number) and the program segment (specified by an interrupt routine number). You can
attach multiple interrupt events to one interrupt routine, but one event cannot be concurrently
attached to multiple interrupt routines.
When you attach an event and interrupt routine, new occurrences of this event will cause
execution of the attached interrupt routine only if the global ENI (enable interrupts)
instruction was executed and interrupt event processing is active. Otherwise, the event is
added to the interrupt event queue. If you disable all interrupts using the global DISI (disable
interrupts) instruction, each occurrence of the interrupt event is queued until interrupts are
re-enabled, using the global ENI (enable interrupt) instruction, or the interrupt queue
overflows.
You can disable individual interrupt events by breaking the association between the interrupt
event and the interrupt routine with the detach Interrupt instruction. The detach interrupt
instruction returns the interrupt to an inactive or ignored state. The following table lists the
different types of interrupt events.
Event
Description
CR40/CR60
SR20/ST20
SR30/ST30
SR40/ST40
SR60/ST60
0
Rising edge I0.0
Y
Y
1 Falling edge I0.0 Y Y
2
Rising edge I0.1
Y
Y
3
Falling edge I0.1
Y
Y
4
Rising edge I0.2
Y
Y
5
Falling edge I0.2
Y
Y
6
Rising edge I0.3
Y
Y
7
Falling edge I0.3
Y
Y
8
Port 0 Receive character
Y
Y
9
Port 0 Transmit complete
Y
Y
10
Timed interrupt 0 (SMB34 controls the time interval)
Y
Y
11
Timed interrupt 1 (SMB35 controls the time interval)
Y
Y
12
HSC0 CV=PV (current value = preset value)
Y
Y
13
HSC1 CV=PV (current value = preset value)
Y
Y
14-15
Reserved
N
N
16
HSC2 CV=PV (current value = preset value)
Y
Y
17
HSC2 Direction changed
Y
Y
18
HSC2 External reset
Y
Y
19
PLS0 PTO pulse count complete interrupt
N
Y
20
PLS1 PTO pulse count complete interrupt
N
Y
21
Timer T32 CT=PT (current time = preset time)
Y
Y
22
Timer T96 CT=PT (current time = preset time)
Y
Y

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals