Program instructions
7.10 Interrupt
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
333
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
Содержание SIMATIC S7-200
Страница 30: ...Product overview 1 7 Programming software S7 200 SMART 30 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 267: ...Program instructions 7 6 Counters S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 267 HSC modes 3 and 4 ...
Страница 394: ...Program instructions 7 18 Subroutine S7 200 SMART 394 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 425: ...Communication 8 5 PROFIBUS S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 425 ...
Страница 786: ...Technical specifications A 11 S7 200 SMART cables S7 200 SMART 786 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 798: ...Error codes C 4 PLC fatal error codes S7 200 SMART 798 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 848: ...Ordering information F 6 Human Machine Interface devices S7 200 SMART 848 System Manual V2 3 07 2017 A5E03822230 AF ...