■
Function blocks for sending DP-V1 messages (Siemens S7)
In IEC 61131-3 compatible systems, function blocks are available for accessing data
non-cyclically. In Siemens S7, SFB 52 "RDREC" can be used for reading and SFB53
"WRREC" for writing data records as follows:
•
On INDEX: Connect the value 0xB02F, 0xB02E or 0x2F.
•
On Write record: Set the length of the DP-V1 write request to MLEN.
•
On Read record: Set the maximum length of the DP-V1 read response.
•
Connect the DP-V1 message to RECORD.
82 PROFINET IO – Communication protocol
Function blocks for sending DP-V1 messages
(Siemens S7)
In IEC 61131-3 compatible systems, function blocks are available
for accessing data non-cyclically. In Siemens S7, SFB 52
"RDREC" can be used for reading and SFB53 "WRREC" for
writing data records as follows:
•
On INDEX: Connect the value 0xB02F, 0xB02E or 0x2F.
•
On Write record: Set the length of the DP-V1 write request to
MLEN.
•
On Read record: Set the maximum length of the DP-V1 read
response.
•
Connect the DP-V1 message to RECORD.
Note
: The function block names for Siemens 12xx and 15xx series
PLCs are RD_REC and WR_REC, and this naming convention is
also applicable for other blocks.
96h
Internal buffer
Buffer overflow
A0h
Internal communication
Communication error between the
module and the drive
RDREC
BOOL
--- REQ
VALID ---
BOOL
DWORD
ID
BUSY ---
BOOL
INT
INDEX
ERROR ---
BOOL
INT
MLEN
STATUS ---
DWORD
LEN ---
INT
ANY
RECORD--
--RECORD
WRREC
BOOL
--- REQ
DONE ---
BOOL
DWORD
--- ID
BUSY ---
BOOL
INT
--- INDEX
ERROR ---
BOOL
INT
--- LEN
STATUS ---
DWORD
ANY
--- RECORD--
--RECORD
Error #
Meaning
Used at
S7_read_write.pdf
Note:
The function block names for Siemens 12xx and 15xx series PLCs are RD_REC and
WR_REC, and this naming convention is also applicable for other blocks.
For more information on the above function blocks, see document
Communication Function
Blocks for PROFIBUS DP and PROFINET IO v2.0
available at
.
■
Parameter data transfer examples
The following examples show how parameter data is transferred using the DP-V1
mechanisms READ and WRITE.
Only the data block part of the request is presented in the examples. See section
Example 1a: Reading a drive parameter (array element)
Drive parameters are addressed so that the drive parameter group corresponds to the
Parameter index (PNU), and the drive parameter number within the group corresponds to
the Subindex (IND). In the following example, a value is read from drive parameter 12.04
(0C.04h).
•
DP-V1 Write request (Read parameter value):
PROFINET IO – Communication protocol 97
Содержание FSPS-21
Страница 1: ... OPTIONS FOR ABB DRIVES FSPS 21 safety functions fieldbus module User s manual ...
Страница 2: ......
Страница 4: ......
Страница 11: ...Further information Table of contents 11 ...
Страница 12: ...12 ...
Страница 26: ...26 ...
Страница 38: ...38 ...
Страница 42: ...42 ...
Страница 46: ...46 ...
Страница 69: ...Configuring safety PLC 1 Select safety telegram to use on slot 2 Leave slot 1 empty PROFINET IO Start up 69 ...
Страница 72: ...Switch or router ABB drive ABB drive ABB drive PLC Safety PLC 72 PROFINET IO Start up ...
Страница 86: ...86 ...
Страница 136: ... Configuring FSPS 21 with TIA14 1 Open TIA and create a new project 2 Select your CPU from the list 136 PROFIsafe ...
Страница 144: ...19 In ABB_Drive FB add blocks DPRD_DAT and DPWR_DAT 20 Insert values to blocks 144 PROFIsafe ...
Страница 147: ...26 In device configuration right click FSPS icon and select Assign device name PROFIsafe 147 ...
Страница 155: ...Select Addresses tab to see the correct IO addresses PROFIsafe 155 ...
Страница 169: ...6 To check the Device number of the FSPS 21 module select the General tab PROFIsafe 169 ...
Страница 178: ... starting the system does not cause any danger 178 Start up ...
Страница 186: ...186 ...
Страница 192: ...192 ...
Страница 200: ...200 ...
Страница 208: ...208 ...
Страница 212: ......