EasyManua.ls Logo

Siemens SIMATIC S7-1200 - 5.1.3.5 Hardware interrupt OB

Siemens SIMATIC S7-1200
1614 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...
PLC concepts
5.1 Execution of the user program
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
95
5.1.3.5
Hardware interrupt OB
Hardware interrupt OBs execute when the relevant hardware event occurs. A hardware
interrupt OB interrupts normal cyclic program execution in reaction to a signal from a
hardware event.
Hardware interrupt events
Changes in the hardware, such as a rising or falling edge on an input point, or an HSC (High
Speed Counter) event trigger hardware interrupt events. The S7-1200 supports one interrupt
OB for each hardware interrupt event. You enable the hardware events in the device
configuration, and assign an OB for an event in the device configuration or with an ATTACH
instruction in the user program. The CPU supports several hardware interrupt events. The
CPU model and the number of input points determine the exact events that are available.
Limits on hardware interrupt events are as follows:
Edges:
Rising edge events: maximum of 16
Falling edge events: maximum of 16
HSC events:
CV=PV: maximum of 6
Direction changed: maximum of 6
External reset: maximum of 6
Table 5- 5 Start information for a hardware interrupt OB
Input
Data type
Description
LADDR HW_IO Hardware identifier of the module that triggered the hardware inter-
rupt
USI WORD User structure identifier (16#0001 to 16#FFFF), reserved for future
use
IChannel
USINT
Number of the channel that triggered the interrupt
EventType BYTE Identifier for the module-specific event type associated with the
event triggering the interrupt, for example falling edge or rising
edge.
The bits in EventType depend on the triggering module as shown below:
Module / Sub-
module
Value
Process event
Onboard I/O
from
CPU or SB
16#0
Rising edge
16#1 Falling edge
HSC
16#0
HSC CV=RV1
16#1
HSC direction changed
16#2
HSC reset
16#3
HSC CV=RV2

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals