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
Содержание SIMATIC CM35
Страница 1: ...SIMATIC Counter Module CM35 Manual Release 06 2000 ...
Страница 9: ...vi CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Table of Contents ...
Страница 10: ...1 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Product Overview 1 ...
Страница 20: ...2 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description 2 ...
Страница 23: ...2 4 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description ...
Страница 47: ...3 24 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Commissioning ...
Страница 48: ...4 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Data Communication with the CM35 4 ...
Страница 70: ...5 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Pulse Counter Operating Mode 5 ...
Страница 88: ...6 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Period Duration Measurement Operating Mode 6 ...
Страница 98: ...7 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Timer Operating Mode 7 ...
Страница 112: ...8 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode 8 ...
Страница 131: ...8 20 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode ...
Страница 133: ...A 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Literature ...
Страница 134: ...B 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity B ...
Страница 135: ...B 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity ...
Страница 141: ...Glossary 6 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Glossary ...