Siemens SIMATIC CM35 Manual page 56

Table of Contents

Advertisement

Table 4-5
Sample allocation for a data block (DB 20)
DB Ad-
Name
dress
0
Control_word
2
Timebase_Timer_1
3
Timebase_Timer_2
4
Timebase_Timer_3
5
Timebase_Timer_4
6
Timebase_Timer_5
7
Timebase_Timer_6
8
Timebase_Timer_7
9
Timebase_Timer_8
10
Factor_Timer_1
12
Factor_Timer_2
14
Control_word
CM35 Counter Module
(4) J31069-D0416-U001-A5-7618
Type
WORD
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
WORD
WORD
WORD
A DB20
L DBW0
T PW 130
L DBW2
T PW 132
L DBW4
T PW 134
...
L DBW12
T PW 140
L DBW14
T PW 130
Transfer next parameter block.
Data Communication with the CM35
Initial
Commentary
Value
W#16#13
Parameter block 1/²timer² operating mode
B#16#01
Time base for timer 1
B#16#01
Time base for timer 2
B#16#01
Time base for timer 3
B#16#01
Time base for timer 4
B#16#01
Time base for timer 5
B#16#01
Time base for timer 6
B#16#01
Time base for timer 7
B#16#01
Time base for timer 8
W#16#01
Factor for timer 1
W#16#01
Factor for timer 2
W#16#53
C bit = 1/parameter block 1/
²timer² operating mode
// Open data block.
// Load control word with C bit=0.
// Module start address + 2
// Load time base for timers 1 and 2.
// Module start address + 4
// Load time base for timers 3 and 4.
// Module start address + 6
// Load factor for timer 2.
// Module start address + 14
// Load control word with C bit = 1.
// Module start address + 2
4-9

Advertisement

Table of Contents
loading

Table of Contents