4-6
CM35 Counter Module
(4) J31069-D0416-U001-A5-7618
4.2.1
Parameterization with SFC 55 (Only SIMATIC S7)
SFC 55 “WR_PARM” can be used to transfer to the module a complete pa-
rameter block (control word and parameterization data, length of 14 bytes) as
data record 1.
Below is an example for the transmission of the 1st parameter block from DB
20 (pulse counting mode). The CM35 has the logical base address 256.
Table 4-3
Sample allocation for a data block (DB 20)
DB
Address
Name
Type
Initial Value
Commentary
+0.0
Para_Block_1_Data
STRUCT
+0.0
Control word
WORD
W#16#11
Parameter block 1/
pulse counting mode
+2.0
Cmp_Start_Va-
lue_Chan_1
WORD
W#16#00
Comparison value/start value,
channel 1
+4.0
Cmp_Start_Va-
lue_Chan_2
WORD
W#16#00
Comparison value/start value,
channel 2
+6.0
Cmp_Start_Va-
lue_Chan_3
WORD
W#16#00
Comparison value/start value,
channel 3
+8.0
Cmp_Start_Va-
lue_Chan_4
WORD
W#16#00
Comparison value/start value,
channel 4
+10.0
Cmp_Start_Va-
lue_Chan_5
WORD
W#16#00
Comparison value/start value,
channel 5
+12.0
Cmp_Start_Va-
lue_Chan_6
WORD
W#16#00
Comparison value/start value,
channel 6
=14.0
END_STRUCT
CALL SFC55
REQ
:=true
// Request to
write
IOID
:=B#16#54
// Area identifier for
composite mod.
LADDR
:=W#16#100
// Logical address = 256
RECNUM
:=B#16#1
// Data record number 1
RECORD
:=P#DB20.DBX 0.0 BYTE 14
// Pointer to beginning
of the block
RET_VAL
:=#ret_val
// Error code
BUSY
:=#busy
// = 1, writing not
concluded
Data Communication with the CM35
Summary of Contents for SIMATIC CM35
Page 1: ...SIMATIC Counter Module CM35 Manual Release 06 2000 ...
Page 9: ...vi CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Table of Contents ...
Page 10: ...1 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Product Overview 1 ...
Page 20: ...2 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description 2 ...
Page 23: ...2 4 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description ...
Page 47: ...3 24 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Commissioning ...
Page 48: ...4 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Data Communication with the CM35 4 ...
Page 70: ...5 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Pulse Counter Operating Mode 5 ...
Page 98: ...7 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Timer Operating Mode 7 ...
Page 112: ...8 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode 8 ...
Page 131: ...8 20 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode ...
Page 133: ...A 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Literature ...
Page 134: ...B 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity B ...
Page 135: ...B 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity ...
Page 141: ...Glossary 6 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Glossary ...