Festo CTEU-PB Electronics Description page 118

Universal bus node, fieldbus protocol profibus-dp
Table of Contents

Advertisement

A. Technical appendix
STL
CALL SFC 59"RD_REC"
REQ
:=TRUE
IOID
:=B#16#54
LADDR
:=W#16#6
RECNUM :=B#16#14
RET_VAL :=MW100
RECORD :=P#M110.0 BYTE 8
BUSY
:=M10.0
Fig. A/1: Example program for reading out the diagnostic memory status
A-8
You can still use the function blocks SFC 58 and SFC 59 in
your existing S7 projects.
Recommendation: When creating new projects, use the new
function blocks SFB 52 and SFB 53 in order to make use of
the full DPV1 functionality. Before accessing the data, set the
DPV1 compatibility to "S7-compatible" as follows:
Siemens S7 - SFC 59 and 58
Function module SFC 59 in STL for reading a data record:
Explanation
Request to read
Identifier of the address range (here always 54)
Logical address of the bus node
(see mask "DP-slave properties" in HW Config)
Data record number 20 (see Fig. 2/9)
If errors occur, output of error code
Target range for the read-in record and
data record length
Reading in process
Festo P.BE-CTEU-PB-OP+MAINT-EN en 1208NH English

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents