Programming - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

4.3

Programming

4.3.1
Controlling the Channels
Layout of the
control word
Table 4-6
Allocation of the control word for controlling the channels
Bit Address
0 to 3
for the operating mode set
4 to 5
6
7
Start/stop byte enable
8 to 15
Oper. mode: Pulse counter
Oper. mode: Positioning
CM35 Counter Module
(4) J31069-D0416-U001-A5-7618
Parameterization must be correct before the channels and digital outputs can
be controlled and the actual values can be read.
With both the SIMATIC S7 and the SIMATIC S5, direct I/O accesses are al-
ways used. Only word or double- - word accesses to even addresses can be
used for I/O accesses.
The individual channels of the CM35 can be started and stopped by writing
the control word. The control word must be written to address ²module start
address + 2.²
The control word is assigned as shown below to start and stop the channels.
Byte n
Start/stop byte
15 14 13 12 11 10 9 8 7
Table 4-6 shows the permissible assignments of the control word.
Description
Identifier
0001:
0010:
0011:
0100:
Always 0
00:
Disregard
0/1:
0:
1:
Start/stop byte
Bit Address
8 to 15
Period duration meas.
Timer
9, 8; 11, 10;
13, 12; 15, 14
Data Communication with the CM35
Byte n+1
Coordination byte
6
5
4
3 2 1 0
1
X
0
0
Consistency bit (disregard)
Start/stop byte enable
Start/stop byte
Allocation
²Pulse counter² operating mode
²Period duration measurement²
operating mode
²Timer² operating mode
²Positioning² operating mode
Start/stop byte is written.
Consistency bit
Evaluate parameter data
Evaluate start/stop byte
0:
Stop channel
1:
Start channel
01: Start axis
10: Stop axis
Oper. mode
4-11

Advertisement

Table of Contents
loading

Table of Contents