Reading The Counting Values - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

Pulse Counter Operating Mode
5.6

Reading the Counting Values

5-18
In ²pulse counter² mode, you can read the current counting values from the
CM35.
To ensure data consistency, the read- - access must be performed with one load
command (L PIW).
Table 5-15 shows the addresses of the individual channels for reading the
counting value.
Table 5-15
Assignment of the output area for reading the counting values
Offset to the
Module Start Address
+0
+2
+4
+6
+8
+10
+12
+14
Example:
²Pulse counter² mode
- Read counting value of counting channel 4
- The CM35 has the module start address 256.
L
PIW 262
T
MW16
Meaning
Counting value,
channel 1
Counting value,
channel 2
Counting value,
channel 3
Counting value,
channel 4
Counting value,
channel 5
Counting value,
channel 6
Counting value,
channel 7
Counting value,
channel 8
// Address = 256 + 6, counting value of
channel 4
// Save the counting value
(4) J31069-D0416-U001-A5-7618
Value Range
0 to 65535
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents