Parameterization With Sfc 55 (Only Simatic S7) - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

Data Communication with the CM35
4.2.1

Parameterization with SFC 55 (Only SIMATIC S7)

Table 4-3
Sample allocation for a data block (DB 20)
DB
Name
Address
+0.0
Para_Block_1_Data
+0.0
Control word
+2.0
Cmp_Start_Va-
lue_Chan_1
+4.0
Cmp_Start_Va-
lue_Chan_2
+6.0
Cmp_Start_Va-
lue_Chan_3
+8.0
Cmp_Start_Va-
lue_Chan_4
+10.0
Cmp_Start_Va-
lue_Chan_5
+12.0
Cmp_Start_Va-
lue_Chan_6
=14.0
4-6
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.
Type
STRUCT
WORD
WORD
WORD
WORD
WORD
WORD
WORD
END_STRUCT
CALL SFC55
REQ
:=true
IOID
:=B#16#54
LADDR
:=W#16#100
RECNUM
:=B#16#1
RECORD
:=P#DB20.DBX 0.0 BYTE 14
RET_VAL
:=#ret_val
BUSY
:=#busy
Initial Value
Commentary
W#16#11
Parameter block 1/
pulse counting mode
W#16#00
Comparison value/start value,
channel 1
W#16#00
Comparison value/start value,
channel 2
W#16#00
Comparison value/start value,
channel 3
W#16#00
Comparison value/start value,
channel 4
W#16#00
Comparison value/start value,
channel 5
W#16#00
Comparison value/start value,
channel 6
// Request to
write
// Area identifier for
composite mod.
// Logical address = 256
// Data record number 1
// Pointer to beginning
of the block
// Error code
// = 1, writing not
concluded
(4) J31069-D0416-U001-A5-7618
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents