hit counter script

Siemens SIMATIC S7 System Manual page 168

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Programming instructions
6.2 Extended instructions
Hardware interrupt events
The following hardware interrupt events are supported by the CPU:
● Rising edge events (all built-in CPU digital inputs plus any signal board digital inputs)
● Falling edge events (all built-in CPU digital inputs plus any signal board input)
● High-speed counter (HSC) current value = reference value (CV = RV) events (HSC 1
● HSC direction changed events (HSC 1 through 6)
● HSC external reset events (HSC 1 through 6)
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.
Check box options within the PLC device configuration:
● Digital input
● High-speed counter (HSC)
168
– 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.
– A falling edge occurs when the digital input transitions from ON to OFF.
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.
– A direction changed event occurs when the HSC is detected to change from
increasing to decreasing, or from decreasing to increasing.
– 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.
– Enable rising edge detection
– Enable falling edge detection
– Enable this high-speed counter for use
– Generate interrupt for counter value equals reference value count
– Generate interrupt for external reset event
– Generate interrupt for direction change event
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF