5-17
CM35 Counter Module
(4) J31069-D0416-U001-A5-7618
5.5
Hardware Interrupt Evaluation
When in
²
pulse counter
²
mode, the CM35 can trigger a hardware interrupt
when a comparison value is reached. If this is used, the CPU
must
contain a
hardware interrupt OB (OB 40).
The start information of OB 40 contains the following information.
-- The variable OB40_MDL_ADDR contains the base address of the
module which triggered the interrupt.
-- The variable OB40_POINT_ADDR contains information on the event
which caused the interrupt.
The variable OB40_POINT_ADDR consists of four bytes. The hardware in-
terrupt information of the CM35 in
²
pulse counter
²
mode is entered in the
low byte (local byte 11 of OB 40).
By evaluating local byte 11, you can determine which channel triggered the
interrupt. Remember that more than one bit can be set.
Table 5-14
Assignment of the hardware interrupt information (OB 40/local byte 11)
Local Byte
Bit
Meaning
Value Range
11
0
Counter 1 has reached comparison value.
0/1
1
Counter 2 has reached comparison value.
2
Counter 3 has reached comparison value.
3
Counter 4 has reached comparison value.
4
Counter 5 has reached comparison value.
5
Counter 6 has reached comparison value.
6
Counter 7 has reached comparison value.
7
Counter 8 has reached comparison value.
Pulse Counter Operating Mode
Summary of Contents for SIMATIC CM35
Page 1: ...SIMATIC Counter Module CM35 Manual Release 06 2000 ...
Page 9: ...vi CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Table of Contents ...
Page 10: ...1 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Product Overview 1 ...
Page 20: ...2 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description 2 ...
Page 23: ...2 4 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description ...
Page 47: ...3 24 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Commissioning ...
Page 48: ...4 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Data Communication with the CM35 4 ...
Page 70: ...5 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Pulse Counter Operating Mode 5 ...
Page 98: ...7 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Timer Operating Mode 7 ...
Page 112: ...8 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode 8 ...
Page 131: ...8 20 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode ...
Page 133: ...A 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Literature ...
Page 134: ...B 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity B ...
Page 135: ...B 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity ...
Page 141: ...Glossary 6 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Glossary ...