Beruflich Dokumente
Kultur Dokumente
S7/xxx-2DP
with S7 or DP messaging
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
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 :
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
This is a sample about the different types of connection between the master and slave devices :
PS : If you need some other information, see the help file in the topic « Protocol help » \ « PROFIBUS » \
« generalities » .
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 :
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.
PS : If you need some other information, see the help file in the topic « applicom help » \ « PROFIBUS
protocol » \ « generalities » .
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
The right configuration if you want to use the S7 messaging is to define the « UNIVERSAL / DP / FMS » profile :
If you want to use the DP messaging ,you have to define several parameters into the PLC :
2 : OPERATING MODE
3 : SLAVE CONFIGURATION
4 : PROGRAM
You have to make a short program to copy the INPUT and OUTPUT buffers
3 Applicom configuration.
3.1 STEP 6 : Applicom configuration.
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
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 )
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).