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
System Manual, 09/2015, A5E03822230-AC
291
Example 2: Timed interrupt for reading the value of an analog input
LAD
STL
MAIN
Network 1
On the first scan, call subrou-
tine 0.
Network 1
LD SM0.1
CALL SBR_0
SBR 0
Network 1
Set the interval for the timed
interrupt 0 to 100 ms.
Attach timed interrupt 0
(Event 10) to INT_0.
Global interrupt enable.
Network 1
LD SM0.0
MOVB 100, SMB34
ATCH INT_0, 10
ENI
INT 0
Network 1
Read the value of AIW16 every
100 ms.
Network 1
LD SM0.0
MOVW AIW16, VW100

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals