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 #285 background imageLoading...
Page #285 background image
Program instructions
7.10 Interrupt
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
285
Event
Description
CR40/CR60
SR20/ST20
SR30/ST30
SR40/ST40
SR60/ST60
23
Port 0 Receive message complete
Y
Y
24 Port 1 Receive message complete
N
Y
25
Port 1 Receive character
N
Y
26 Port 1 Transmit complete
N
Y
27
HSC0 Direction changed
Y
Y
28
HSC0 External reset
Y
Y
29-31
Reserved
N
N
32
HSC3 CV=PV (current value = preset value)
Y
Y
33
Reserved
N
N
34
PLS2 PTO pulse count complete interrupt
N
Y
35
Rising edge, signal board input 0
N
Y
36
Falling edge, signal board input 0
N
Y
37
Rising edge, signal board Input 1
N
Y
38
Falling edge, signal board input 1
N
Y
7.10.3
Interrupt programming guidelines
Interrupt routine execution
An interrupt routine executes in response to an associated internal or external event. Once
the last instruction of an interrupt routine has executed, control returns to the point in the
scan cycle at the point of the interruption. You can exit the routine by executing a conditional
return from interrupt instruction (CRETI).
Interrupt processing provides quick reaction to special internal or external events. Optimize
your interrupt routines to perform a specific task, and then return control to the scan cycle.
Note
You cannot use the disable interrupt (DISI), enable interrupt (ENI), high-speed counter
definition (HDEF), and end (END) instructions in an interrupt routine.
Keep interrupt routine program logic short and to the point, so execution is quick and
other processes are not deferred for long periods of time. If this is not done, unexpected
conditions can cause abnormal operation of equipment controlled by the main program.
System support for interrupts
Because interrupts can affect contact, coil, and accumulator logic, the system saves and
reloads the logic stack, accumulator registers, and the special memory bits (SM) that
indicate the status of accumulator and instruction operations. This avoids disruption to the
main user program caused by branching to and from an interrupt routine.

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