Example Of Interrupt Instructions For Simatic Lad, Stl, And Fbd - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

SIMATIC Instructions
Interrupt Examples
Figure 9-65 shows an example of the Interrupt Routine instructions.
MAIN OB1
Network 1
SM0.1
Network 2
SM5.0
Network 3
M5.0
.
.
INTERRUPT 4
.
Network 1
SM5.0
MAIN OB1
Network 1
SM0.1
4
0
Network 2
SM5.0
0
Network 3
M5.0
INTERRUPT 4
Network 1
SM5.0
Figure 9-65
9-178
LAD
On the first scan:
ATCH
Define interrupt routine 4
to be a rising edge
EN
ENO
interrupt routine for I0.0.
4
INT
0
EVNT
Globally enable
ENI
interrupts.
If an I/O error is detected,
DTCH
disable the rising edge
EN
ENO
interrupt for I0.0.
(This rung is optional.)
0
EVNT
Disable all interrupts
when M5.0 is on.
DISI
I/0 rising edge interrupt
subroutine.
RETI
Conditional return based
on I/O error
End of I0.0 rising edge
interrupt routine.
ATCH
ENI
EN
ENO
INT
EVNT
DTCH
EN
ENO
EVNT
DISI
RETI

Example of Interrupt Instructions for SIMATIC LAD, STL, and FBD

Network 1
LD
ATCH
ENI
Network 2
LD
DTCH
Network 3
LD
DISI
Network 1
LD
CRETI
FBD
S7-200 Programmable Controller System Manual
STL
SM0.1
4, 0
SM5.0
0
M5.0
SM5.0
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents