Siemens SIMATIC CM35 Manual page 81

Table of Contents

Advertisement

Pulse Counter Operating Mode
Table 5-10
Parameter block 2
Address
Name
Para_Block_2_Data
+0.0
Control_word
+2.0
Cmp_Start_Value_Chan_7
+4.0
Cmp_Start_Value_Chan_8
+6.0
DO_Mode_Chan_1
+6.1
DO_Mode_Chan_2
+6.2
DO_Mode_Chan_3
+6.3
DO_Mode_Chan_4
+6.4
DO_Mode_Chan_5
+6.5
DO_Mode_Chan_6
+6.6
DO_Mode_Chan_7
+6.7
DO_Mode_Chan_8
+7.0
C_Direction
+7.1
Enable_Mode
+7.2
Reserve_1
+7.3
Reserve_2
+7.4
Reserve_3
+7.5
Delete_CountVal
+7.6
Interrupt_Generation
+7.7
ScanningRate
+8.0
ScanRate_F_Chan_1
+9.0
ScanRate_F_Chan_2
+10.0
ScanRate_F_Chan_3
+11.0
ScanRate_F_Chan_4
+12.0
ScanRate_F_Chan_5
+13.0
ScanRate_F_Chan_6
=14.0
5-12
Parameter block 2 contains:
The comparison or start values for channels 7 and 8
S
The bit- - coded settings
S
- - For the switching reaction of the outputs
- - For the direction of counting
- - For the counting value after counter stop
- - For interrupt generation
- - For selection of scanning rate
The scanning rate factors for channels 1 to 6
S
Type
STRUCT
WORD
WORD
WORD
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
END_STRUCT
Initial Value
W#16#21
Parameter block no. 2/counter mode
W#16#00
Comparison value/start value, channel 7
W#16#00
Comparison value/start value, channel 8
FALSE
DO mode:
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
Counting direction: 0 = Up
FALSE
Enable mode:
(only applicable to ²automatic² DO
mode)
0 = Continuous enable
1 = Enable control by DO byte
FALSE
Reserved
FALSE
FALSE
TRUE
Delete counting value: 0 = At stop
FALSE
Interrupt generation:
FALSE
Scanning rate: 0 = no, 1 = yes
B#16#0
Encoder Scanning rate, channel 1
B#16#0
Encoder Scanning rate, channel 2
B#16#0
Encoder Scanning rate, channel 3
B#16#0
Encoder Scanning rate, channel 4
B#16#0
Encoder Scanning rate, channel 5
B#16#0
Encoder Scanning rate, channel 6
(4) J31069-D0416-U001-A5-7618
Commentary
0 = Automatic
1 = CPU control
1 = Down
1 = At start
0 = none,
1 = active
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents