Memory Allocation
Section 4-2
69
4-2-4
DM-Memory Mapping
The Counter Unit allocates 90 Words in DM. These 90 Words are divided in 10
General DM-words (m to m+9) and 20 Counter Specific words for every Counter
(Counter 1 = m+10 to m+29, Counter 2 = m+30 to m+49, Counter 3= m+50 to
m+69, Counter 4= m+70 to m+89).
Note
Double words in DM are indicated as for example “m+2, m+3”. On how to distin-
guish between the least- and most significant words (LSW and MSW) within dou-
ble words, refer to section the section
About this Manual
at the beginning of this
Manual.
Word
Bit
Item
Function
Ge
ner
a
l
m
00-07
Output Control Mode
Output Control Mode:
00 = Range Mode (=default)
01 = Comparison Mode
08-15
AND/OR Counter
Output Patterns
In case of Range Mode, define if the output patterns of the Counters
should be logically AND-ed (01) or OR-ed (00)
m+1
00-15
Interrupt Task Offset
(Outputs)
Define Offset [0, 192(BCD)] to execute External Interrupt Tasks
[0, 255] corresponding to Outputs [0-31]
m+2, m+3
00-15
Interrupt Enable
Data Outputs
Enable (=1) or Disable (=0) Interrupts in the Unit corresponding to
Outputs [0, 31]
m+4 - m+9
00-15
---
Not used