Starting And Stopping The Counting Channels - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

Pulse Counter Operating Mode
5.3

Starting and Stopping the Counting Channels

Table 5-12
Start/stop block
Address
Name
Start_Stop_Block
+0.0
Start_Stop_Chan_1
+0.1
Start_Stop_Chan_2
+0.2
Start_Stop_Chan_3
+0.3
Start_Stop_Chan_4
+0.4
Start_Stop_Chan_5
+0.5
Start_Stop_Chan_6
+0.6
Start_Stop_Chan_7
+0.7
Start_Stop_Chan_8
+1.0
CoordinationByte
=2.0
5-14
After the module has been parameterized, you can start and stop the individ-
ual counting channels of the CM35. To do this, write the start/stop block to
the address ²module start address + 2.²
Table 5-12 shows the contents of the start/stop block. The required assign-
ment of the coordination byte is entered as the initial value in the structure.
For a description of the bit assignment of the coordination byte, see chapter
4.3.1.
Write- - accesses to the start/stop block must be programmed as word- -
accesses.
Type
STRUCT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BYTE
END_STRUCT
Example:
The CM35 has module start address 256.
L
W#16#FF81
T
PQW 258
...
...
L
W#16#0081
T
PQW 258
In DO mode ²automatic,² the related output is switched on when a channel
starts. The output is switched off with stop even when the comparison value
has not yet been reached.
Initial Value
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
B#16#81
Start/stop byte enable = 1
C bit = 0/counter mode
// Start all channels
// Module start address + 2
// Stop all channels
// Module start address + 2
(4) J31069-D0416-U001-A5-7618
Commentary
0: Stop channel
1: Start channel
1 S
h
l
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents