EasyManua.ls Logo

Festo CPX-FB13 - Page 133

Festo CPX-FB13
166 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A. Technical appendix
A−11
Festo P.BE−CPX−FB13−EN en 0811c
Siemens S7 SFC 59 and 58
Function module SFC 59 in STL for reading a data record:
STL Explanation
CALL SFC 59”RD_REC”
REQ :=TRUE Request to read
IOID :=B#16#54 Identifier of the address range (here always 54)
LADDR :=W#16#6 Logical address of the field bus node
(see mask Properties DP slave" in HW Config)
RECNUM :=B#16#14 Data record number 20 (see Tab.A/8)
RET_VAL :=MW100 If faults occur, output fault code
RECORD :=P#M110.0 BYTE 8 Target range for data record read and length of data record
BUSY :=M10.0 Reading in process
Fig.A/2: Example program for reading out the diagnostic memory status
Function module SFC 58 in STL for writing a data record:
STL Explanation
CALL SFC 58”WR_REC”
REQ :=TRUE Request to write
IOID :=B#16#54 Identifier of the address range (here always 54)
LADDR :=W#16#6 Logical address of the field bus node
(see mask Properties DP slave" in HW Config)
RECNUM :=B#16#14 Data record number 20 (see Tab.A/8)
RECORD :=P#M130.0 BYTE 8 Pointer at start of data range for diagnosis
and length of diagnostic data
RET_VAL :=MW102 If faults occur, output fault code
BUSY :=M10.1 Writing in process
Fig.A/3: Example program for transmitting the diagnostic memory status

Table of Contents

Other manuals for Festo CPX-FB13

Related product manuals