Siemens SIMATIC S7 System Manual page 333

Hide thumbs Also See for SIMATIC S7:
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, V2.3, 07/2017, A5E03822230-AF
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
333

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents