You are on page 1of 12

TechNote 5

S7/xxx-2DP
with S7 or DP messaging

Rev Date Object From Checked by


0 10 Jan. 2001 S7-xxx-2DP communication FLO DLE
Concern Diffusion allowed Language
; Commercial ; Technical ;Internal ; External … customers (if needed) … French (Ask for it) ; English
Recipient
For applicom int’l France applicom int’l USA applicom int’l Germ. IMA Italy EVS Belgium
Int’l Partners Int’l Distributors

What is it and what is it for ?


This is a technical information to help you step by step to configure a S7 PLC (like S7/315–2DP, with an
embeded profibus DP port on the CPU).

PROFIBUS S7/XXX APPLICOM TEST


PRESENTATION CONFIGURATION CONFIGURATION

1 Profibus presentation.
1.1 STEP 1 : Profibus presentation Page 2
1.2 STEP 2 : Messaging : Page 3

2 S7/xxx configuration.
2.1 STEP 3 : PLC configuration. Page 4
2.2 STEP 4 : Configuration for S7 exchange. Page 5
2.3 STEP 5 : Configuration for DP exchange. (slave profil) Page 6
(slave setting) page 7
(slave Program) Page 8

3 Applicom configuration.
3.1 STEP 6 : Applicom configuration. (S7 equipment) Page 9
(DP equipment) Page 10

4 Test.
4.1 STEP 7 : Test. Page 11
4.2 STEP 8 : Applicom tools. Page 12

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 1/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

1 Profibus presentation.
1.1 STEP 1 : Profibus presentation.

The PROFIBUS fieldbus usesed a bus access protocol. This protocol is implemented in layer 2 of the OSI
references model :

DEVICE 1 DEVICE 2 DEVICE 3 DEVICE 4


BUS BUS

DEVICE 5 DEVICE 6 DEVICE 7

Description of the bus access : THE TOKEN BUS (Logical ring with token). This acces is called FDL (Fielbus
Data Link)

The token allows to sequence the bus access between all master device. When the master receives the token, it
can access to the bus. With this solution (token bus) it is not possible to have a collision :

TOKEN PATH

MASTER 1 MASTER 2 MASTER 3 MASTER 4


BUS BUS

SLAVE 5 SLAVE 6 SLAVE 7

This is a sample about the different types of connection between the master and slave devices :

MASTER 1 MASTER 2 MASTER 3 MASTER 4


BUS BUS

SLAVE 5 SLAVE 6 SLAVE 7

RED : Exchange MASTER Ù SLAVE (DP master Class 1)


GREEN : Exchange MASTER Ù MASTER
BLUE : Exchange MASTER Ù SLAVE (READ only exchage, DP master Class 2)

PS : If you need some other information, see the help file in the topic « Protocol help » \ « PROFIBUS » \
« generalities » .

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 2/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

1.2 STEP 2 : Messaging.

On the profibus network, you can find six different messaging : S7, S5, MPI, FMS, DP, PPI. With an S7 PLC
(S7/4xx-2DP, S7/3xx-2DP) on the DP port (profibus port embeded on the CPU), you can use the S7 or DP
messaging :

Messaging Internal data Data block I/O Possible


S7 9 9 9 9
With Program
DP 9* 9* 9* 9*

REMARK :
When you use the S7 messaging, you can access directly at all kind of data into the PLC (without
lenght restriction).
With the DP messaging , you can access whatever PLC memory you want, but, the maximum amount
of data is limited by the PROFIBUS lenght frame (244 bytes reading and 244 bytes writing)

See in the following array, the messaging in relation with your card.

CARD S7 S5 MPI FMS DP PPI


PC1500PFB 9 9 9 9 9 9 Possible
PCI1500PFB 9 9 9 9 9 9 9
PC1500S7 9 U 9 U U 9 Not supported
PCI1500S7 9 U 9 U U 9 U
From V3.4
PCI2000PFB 9* U 9* U 9 U
9*

PS : If you need some other information, see the help file in the topic « applicom help » \ « PROFIBUS
protocol » \ « generalities » .

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 3/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

2 S7/xxx configuration.
2.1 STEP 3 : PLC configuration.

Before configuring the messaging that you want to use, you have to define the hardware part into the Siemens
configuration software (HW config).

DOUBLE CLICK

Drag and
drop

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 4/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

2.2 STEP 4 : Configuration for S7 exchange.

The right configuration if you want to use the S7 messaging is to define the « UNIVERSAL / DP / FMS » profile :

Here, you have to define the


physical address of the PLC

Here, you have to


define the
profile of the
profibus network
(timing)

Do not forget to save and


download this configuration.

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 5/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

2.3 STEP 5 : Configuration for DP exchange.

If you want to use the DP messaging ,you have to define several parameters into the PLC :

1 : PROFILE / BAUDE RATE / ADDRESS

Here, you have to define the


physical address of the PLC

Here, you have to


define the
profile of the
PLC

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 6/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

2 : OPERATING MODE

3 : SLAVE CONFIGURATION

Mode Periphery Length of the data


Master / Slave Address exchange and type of
(DP buffer) format

Do not forget to save and


send to the CPU the new
configuration.

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 7/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

4 : PROGRAM
You have to make a short program to copy the INPUT and OUTPUT buffers

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 8/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

3 Applicom configuration.
3.1 STEP 6 : Applicom configuration.

3.1.1 Equipment configuration (S7) :

To define the equipment, click on the « Configuration » button, and after « Equipment configuration ».
In order to check the Equipment configuration, click in the « Visualization » button :

1:
Choose the
messaging

2:
Define the
Address of the
PLC

The CPU slot number can be checked in the hardware


configuration of the PLC

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 9/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

3.1.2 Equipment configuration (DP) :


To define the equipment, click on the « Configuration » button, and after « Equipment configuration ».
In order to check the Equipment configuration, click in the « Visualization » button :

1:
Choose the
messaging

2:
Define the
Address of the
PLC

3:
Import the GSD file
about the PLC
(S7-315-2DP :
SIE_802F.GSD )

You have to select this option when you


want to use this equipment like « READ
only exchage » (see page 2 the
explaination about the « MASTER
CLASS 2 » exchanges).

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 10/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

4 Test.
4.1 STEP 7 : Test.

When you have save corectly configure PcConf and launched PcInit, you have the possibility to check the
communication with « ReadWait » in the « Tools » shotcut of the applicom folder :

1:
DEFINE :
card number
Channel number
Equipment number

2:
DEFINE :
Type of data (PLC)
Quantity
Address (PLC)

3:
READ :
Click on « Read » or
select « Polling » to
activate the read.

NOTA :
All « status » different
to « 0 » are bad

The result of the read fonction, is the value present into the
DB1.DBB0 (see page 8 about the program to copy the INPUT
and OUTPUT buffers).

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 11/12


TechNote 5
S7/xxx-2DP
with S7 or DP messaging

4.2 STEP 8 : Applicom tools.


If you have some trouble to communicate with your slave device, you have some tools to help you to solve the
problem : See the « Diagnostic DP » into the « tools » forder :

In this sample, you


can see one DP
slave (N°0).

You have a status


about the
communication
between the
applicom card and
the slave

If you have a problem


(electrical or about the setting
) the « BF » light (Bus Fault)
is blinking.

As long as the BF light


blinking, you cannot exchange
data between the PLC and the
applicom card

applicom international SA TECHNOTE 5 January 2001 – By Frédérick Locqueville Page 12/12

You might also like