Festo CTEU-PB Electronics Description page 119

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

Advertisement

A. Technical appendix
STL
CALL SFC 58"WR_REC"
REQ
:=TRUE
IOID
:=B#16#54
LADDR
:=W#16#6
RECNUM :=B#16#14
RECORD :=P#M130.0 BYTE 8
RET_VAL :=MW102
BUSY
:=M10.1
Fig. A/2: Example program for transmitting the diagnostic memory status
STL
CALL "RDREC" , DB100
REQ
:=TRUE
ID
:=B#16#256
INDEX
:=19
MLEN
:=4
VALID
:=M200.0
BUSY
:=M200.1
ERROR
:=M200.2
STATUS :=MD202
LEN
:=MW220
RECORD :=P#M230.0 BYTE 4
Fig. A/3: Example program for reading out the Device ID from device 1
Festo P.BE-CTEU-PB-OP+MAINT-EN en 1208NH English
Function block SFC 58 in STL for writing a data record:
Explanation
Request to write
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)
Pointer at start of data range for diagnostics
and length of the diagnostic data
If errors occur, output of error code
Reading in process
Siemens S7 - SFB 52 and 53
New function block SFB 52 in STL for writing a data record:
Explanation
Request to read
Logical address of the bus node
(see mask "DP-slave properties" in HW Config)
Data record number
max. Length of the data record information to be read
in byte
1 = New data record received and valid
1 = Reading in process
1 = Error in reading
Access identifier or error code
Length of the read data record information
Target range for the read data record and max. Data
record length
A-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents