24.10.2013 Views

Configuring Hardware and Communication Connections STEP 7.pdf

Configuring Hardware and Communication Connections STEP 7.pdf

Configuring Hardware and Communication Connections STEP 7.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Configuring</strong> the Distributed I/O (DP)<br />

New SFBs <strong>and</strong> SFCs for Accessing DPV1 Slaves<br />

In order to make the topic more comprehensive, the table below shows - wherever<br />

possible - the new interfaces <strong>and</strong> their functions compared with previous interfaces.<br />

You can find detailed information in the descriptions of the SFBs/SFCs <strong>and</strong> new<br />

OBs. A conversion of existing configurations to the new SFBs/SFCs is not<br />

necessarily required. However, you should use the new SFCs/SFBs when you<br />

create new projects with a DPV1 configuration to be able to use all DPV1 functions.<br />

Function Previous Interface New Interface (DPV1) Comments<br />

Read Data Record SFC 59 RD_REC SFB 52 RDREC -<br />

Write Data Record SFC 58 WR_REC SFB 53 WRREC -<br />

Receive interrupt from - SFB 54 RALRM The SFB must be called in the OB<br />

a DP Slave<br />

that is triggered by the interrupt.<br />

Hinweis<br />

Wenn ein DPV1-Slave über GSD-Datei projektiert ist (GSD ab Rev. 3) und die<br />

DP-Schnittstelle des DP-Masters ist auf "S7-kompatibel" eingestellt, dürfen im<br />

Anwenderprogramm keine Datensätze mit SFC 58/59 bzw. SFB 53/52 von den<br />

E/A-Baugruppen gelesen bzw. beschrieben werden. Der DP-Master adressiert in<br />

diesem Fall den falschen Steckplatz (projektierter Steckplatz+3).<br />

Abhilfe: Schnittstelle des DP-Masters auf "DPV1" umstellen.<br />

Checklist for Testing Existing User Programs<br />

The following sections of your existing user program must be checked if you have<br />

edited the configuration with <strong>STEP</strong> 7 V5.1, Service Pack 2 <strong>and</strong> if you have<br />

switched to "DPV1":<br />

Function What is to be checked?<br />

Address<br />

conversion<br />

Reading<br />

Diagnostics with<br />

SFC 13<br />

Reading/Writing<br />

Data Records<br />

For DP Slaves configured via GSD files you must check the assignments Slot <br />

Logic Start Address, if you have used address conversion in the user program<br />

(SFC 5, SFC 49, SFC 50). Slot 0 has an additional address.<br />

• DP Slave implemented via GSD File:<br />

Previously the first I/O module of the DP Slave was assigned to slot 4. However,<br />

the first I/O module is now assigned to slot (as you can see in the hardware<br />

configuration).<br />

• DP Slave integrated in <strong>STEP</strong> 7 (for example, ET 200M):<br />

the interface module (slot 2) has its own address.<br />

The originally assigned diagnostic address still functions. <strong>STEP</strong> 7 assigns this<br />

address internally to slot 0.<br />

However, the diagnostic data record of DPV1 Slaves has a different structure (refer to<br />

the description of DP Slaves. With ET 200M, for example, also refer to the keyword<br />

"Extended Diagnostics").<br />

If you transfer data records to a DPV1 slave with SFC58 "WR_REC" or if you fetch<br />

data records from a DPV1 slave with SFC59 "RD_REC" <strong>and</strong> if this DPV1 slave<br />

operates in DPV1 mode, the DP Master evaluates the error information it received<br />

from the Slave as follows: If the error information lies within the range from<br />

W#16#8000 to W#16#80FF or W#16#F000 to W#16#FFFF the DP master passes<br />

the error information to the SFC. If it lies out of this range, the CPU passes the value<br />

W#16#80A2 to the SFC <strong>and</strong> suspends the slave. For a description of the error<br />

information received from DPV1-Slaves, see Receiving an Interrupt from a DP-Slave<br />

with SFB 54 "RALRM" STATUS[3].<br />

See also: Jumps to Language Descriptions <strong>and</strong> Help on Blocks, System Attributes<br />

<strong>Configuring</strong> <strong>Hardware</strong> <strong>and</strong> <strong>Communication</strong> <strong>Connections</strong> with <strong>STEP</strong> 7<br />

3-62 A5E00706939-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!