Siemens Simatic S7 Series System Manual page 291

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents