101BExtended instructions
8.4 Interrupts
S7-1200 Programmable controller
274
System Manual, 11/2011, A5E02486680-05
Table 8- 87 Data types for the parameters
Parameter and type
Data type
Description
OB_NR
IN
OB_ATT
Organization block identifier: Select from the available hardware
interrupt OBs that were created using the "Add new block" feature.
Double-click on the parameter field, then click on the helper icon to
see the available OBs.
EVENT
IN
EVENT_ATT
Event identifier: Select from the available hardware interrupt events
that were enabled in PLC device configuration for digital inputs or
high-speed counters. Double-click on the parameter field, then click
on the helper icon to see the available events.
ADD
(ATTACH only)
IN
Bool
ADD = 0 (default): This event replaces all previous event
attachments for this OB.
ADD = 1: This event is added to previous event attachments for
this OB.
RET_VAL
OUT
Int
Execution condition code
Hardware interrupt events
The following hardware interrupt events are supported by the CPU:
●
Rising edge events (all built-in CPU digital inputs and SB digital inputs)
–
A rising edge occurs when the digital input transitions from OFF to ON as a response
to a change in the signal from a field device connected to the input.
●
Falling edge events (all built-in CPU digital inputs and SB digital inputs)
–
A falling edge occurs when the digital input transitions from ON to OFF.
●
High-speed counter (HSC) current value = reference value (CV = RV) events (HSC 1
through 6)
–
A CV = RV interrupt for a HSC is generated when the current count transitions from an
adjacent value to the value that exactly matches a reference value that was previously
established.
●
HSC direction changed events (HSC 1 through 6)
–
A direction changed event occurs when the HSC is detected to change from
increasing to decreasing, or from decreasing to increasing.
●
HSC external reset events (HSC 1 through 6)
–
Certain HSC modes allow the assignment of a digital input as an external reset that is
used to reset the HSC count value to zero. An external reset event occurs for such a
HSC, when this input transitions from OFF to ON.
Enabling hardware interrupt events in the device configuration
Hardware interrupts must be enabled during the device configuration. You must check the
enable-event box in the device configuration for a digital input channel or a HSC, if you want
to attach this event during configuration or run time.