Structure Of The Parameter Block - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

Period Duration Measurement Operating Mode
6.2.2

Structure of the Parameter Block

Table 6-4
Parameter block 1, data structure
Address
Name
Para_Block_1_Data
+0.0
Control_word
+2.0
PeriodNumber_Chan_1
+3.0
PeriodNumber_Chan_2
+4.0
PeriodNumber_Chan_3
+5.0
PeriodNumber_Chan_4
+6.0
PeriodNumber_Chan_5
+7.0
PeriodNumber_Chan_6
+8.0
PeriodNumber_Chan_7
+9.0
PeriodNumber_Chan_8
+10.0
F_RefFrequency
+ 12.0
Res_12
= 14.0
Table 6-5
Parameter block 1, acceptance structure (only with SIMATIC S5)
Address
Name
Para_Block_1_Accept
+0.0
Control_word
=2.0
6-6
Table 6-4 shows the data structure of the parameter block and how to transfer
it to the CM35 using SFC 55 calls or I/O direct accesses.
The first word of the parameter block contains the control word. The struc-
ture shows the required assignment as an initial value.
When I/O direct accesses are parameterized (only possible with the
SIMATIC S5), the acceptance structure must be transferred after the data
structure. See table 6-5. The table shows the required assignment of the ac-
ceptance structure as an initial value.
Adhere to the specifications in chapter 4.2 which apply to transmission of the
data.
Parameter block 1 contains the following information.
- - The period numbers for channels 1 to 8
- - The factor for reference frequency (measuring range)
Type
STRUCT
WORD
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
WORD
END_STRUCT
Type
STRUCT
WORD
END_STRUCT
Initial Value
W#16#12
Parameter block no. 1/
²period duration measurement² mode
B#16#1
Period number, channel 1
B#16#1
Period number, channel 2
B#16#1
Period number, channel 3
B#16#1
Period number, channel 4
B#16#1
Period number, channel 5
B#16#1
Period number, channel 6
B#16#1
Period number, channel 7
B#16#1
Period number, channel 8
B#16#0
Factor for reference frequency
W#16#0
Initial Value
W#16#52
Consistency bit = 1/
parameter block no. 1/
²period duration measurement² mode
(4) J31069-D0416-U001-A5-7618
Commentary
In reserve
Commentary
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents