Reading The Data - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

4.3.4

Reading the Data

CM35 Counter Module
(4) J31069-D0416-U001-A5-7618
The CM35 supplies the following data, based on the operating mode set.
Table 4-8
Data of the CM35
Operating Mode
Pulse counter
Period duration measurement
Timer
Positioning
For the allocation and description of the data of the CM35, see the descrip-
tion of the particular operating mode.
Remember the following points which concern the assurance of data consis-
tency based on the programmable controller used.
SIMATIC S7 (central or distributed)
Only one single load command (L PIW or L PID) can be used to read the
desired value.
This means that an actual value in double- - word format must be read with
one double- - word access (L PID). Use of two word accesses (L PIW) can
cause data inconsistency in this case.
SIMATIC S5 or standard DP master (distributed)
Only word- - accesses to even addresses may be used to read- - access the de-
sired value.
Table 4-9 shows an example of the address allocation for reading the count-
ing values in ²pulse counter² mode.
Table 4-9
Address allocation of the counting values for the ²pulse counter² operat-
ing mode
Offset to
Module Start Address
+0
+2
+4
+6
+8
+10
+12
+14
Data Communication with the CM35
Data
Current counting value
Measured period duration
Status of the timer
Current actual position
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
Data Type
Word
Word
Byte
DWord
Value Range
0 to 65535
4-15

Advertisement

Table of Contents
loading

Table of Contents