Professional Documents
Culture Documents
TechNote MPI S7 Comm With Siemens S7-300 and S7-400 PLC V11 PDF
TechNote MPI S7 Comm With Siemens S7-300 and S7-400 PLC V11 PDF
Description
Summary:
This Quickstart provides you the minimal step to start up a Profibus MPI and/or a S7 Protocol
communication with an S7-300 or S7-400 PLC.
This Communication Quickstart completes the Product Quickstart that explains how to install
and use the product you have. Please read first the Product Quickstart.
Note : According to the product (NIC, gateway, software driver) you use, the console
configuration software may differ on few topics, but communication configurations parameters
will be identical.
1 How configure S7 PLC in the applicom interface card
To start the configuration Console click on the button in the applicom directory:
define
Channels Protocol parameters
available to Equipment list and
define the parameters
protocols used
Library of
equipments to add
in the active
configuration
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 2 of 12
1.3 Configure the protocol
Configure the card channel properties, by a double click on Profibus, .., in the right side of
the Console. A new window appears, in which you can modify the Profibus parameters,
depending on your network (baud rate, timing parameters, ).
Note : All devices connected to the Profibus Fieldbus has to be set to the same
communication timings! For details about the timing value used by the Profile check the
parameters defined under the Advanced Configuration tab.
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 3 of 12
1.4 Add the equipments
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 4 of 12
2 How configure S7 PLC Profibus interface
Open the CPU Properties (for the MPI communication) or the CP Properties (for the S7
protocol communication) and click on the communication interface property button. Set the
Profibus address and the parameters of the connected network (timings, etc.).
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 5 of 12
Download all modifications in the S7 PLC, clicking on the button; now the PLC is ready
to communicate.
Important note: for an S7 Protocol communication with the PLC prefer always the Universal
(DP/FMS) communication timing profil.
The default timing values of the Profibus channel for the applicom PCNIC are defined
according to the Universal (DP/FMS) profile.
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 6 of 12
3 Check the communication with your equipments
Now the card and the PLC are ready to communicate together.
Initialize the communication solution with the following button in order to update the
configuration in your card.
Use the online action tool (on the lower left part of the console), in order to check if the
PLC(s) are seen on the network (in applicom solution use the explorer to start
MONPFB.EXE).
In case of communication problem:
- if this tool does not show you
some Profibus address of your
remote devices, that means that the
low level of the communication is not
running (wiring, end resistance,
Baudrate, communication timings).
- if this tool shows you the Profibus
address corresponding to your
remote devices, that means that the
issue is then located at a higher level,
certainly link to parameter from the
remote device configuration. (Rack,
Slot, Link Type )
You can also check the communication with configured equipments. For this use the
ReadWait communication test tool that you can start from the configuration console.
If the used Mode is
Most important parameters : Card, Channel and
Equipment
Type of the equipment.
descriptor then click
needed data (bit,
on it to enter the
Byte, Word,
syntax.
Double Word)
Once the syntax is
chosen, it will
2 mode types : appear above the
-Standard uses the button
data address
- Equipment descriptor Number of variables
uses the data syntax to read
(Please refer to the
Help file) Address of the
needed data in the
If all works fine, you PLC.
must see some return
data in this array. Click on Stop on
Also, when you active error and Polling
the read function, you buttons to read and
can see a return status capture a non-
about the exchange (0 deterministic return
= ok, other = not ok). status. (bus fault)
Click on read button
to read just one time and
get the return status.
(bus fault)
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 7 of 12
4 Communication over Data Servers Ex with OPC client
You can also test the OPC Server communication over the OPC test Client provided as
additional test tool. Start it from the configuration console and the connection to the OPC
server is opened automatically. You just have to add in the group the items you want to test.
To add items to read on the MPI/S7 network you can reference to the following Siemens S7
syntax table:
Note: if any problem appears during the connection to the OPC server refers to the OPC
documentation and technotes.
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 8 of 12
5 Communication Troubleshooting / FAQ
If the return status about the exchange is different than zero, it means that the
communication to the S7 PLC is not established. Here some common status:
Communication Time-out
means that the S7 PLC does not respond to the request we sent.
Can be related to a cable that is disconnected, or broken.
33 Can be a wrong Profibus address or a PLC that is not ready to run or badly
configured.
55
Please check your network wiring, connectors, Profibus address and
configuration of the remote PLC, configuration set in the communication
solution Test in direct connection over Ethernet Cross Cable
Use the Profibus monitor to verify the quality of the wiring (Chapter 3).
Refused connection
usually means a bad wire or a bad configuration of the remote stations, but also means
that the S7 CPU does not accept the S7 connection.
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 9 of 12
To know the meaning of status not indicated above, refer to
the documentation of the Profibus protocol chapter
Functions return Status
The Direct-Link PCNI PN# DRL-MPI-PCU and the applicom PCNIC PN# APP-PS7-PCU;
PN# APP-PFB-PCU; PN# APP-PFB-CPI does not provide any specific driver for the Simatic
Step 7 Software. So it is not possible configure the PLCs via these cards.
Yes, the different BradCommunication solutions allows you to use simultaneously all
messagings. Depending on your configuration the solution will use the appropriate
messaging (based on the Profibus stack) to send request to the PLC.
The supported messagings are :
- MPI, on programming port
- S7 Protocol, on DP port
- Profibus DP, for remote Periperals
- FDL, for unsolicited sendings
- S5, for Siemens S5 PLCs
Note that this list change in respect to the used card. For the messaging supported by your
card, please refer to the help files.
Both, Profibus MPI and Profibus S7 allows you to communicate directly with an S7-300 or
S7-400 CPU.
The Profibus MPI communication is performed over the CPU programming interface with a
communication speed of 187,5 kBaud by default. Only few CPU can change this speed for a
higher baurate.
The Profibus S7 communication is performed over the 2DP port or over any Profibus
interface of a Profibus coupler. Here the baudrate is not limited and the communication is
possible from 9,6 kBaud to 12 MBaud.
Be carefull on the Profibus S7 specific ports, additional communication like Profibus DP
communication, can also be performed at the same time. Having an additional S7
communication is possible but can add some delay in the DP data refresh cycle.
5.5 What is the difference between Profibus S7/MPI and Profibus DP?
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 10 of 12
- Profibus S7/MPI is a communication made on request by a Profibus Master to
another Profibus Master. The communication is directly made with the S7 CPU,
accessing to the internal memory (ex: DBxDBWy or MWz). At each request
different memory address can be read allowing an exchange of very large
amount of data.
Yes, there are some equipments that needs adjustments for a correct communication.
For the VIPA 315 SB, It is recommended to increase the TRDY and MiN_TSDR
parameters in the configuration console. As an example, at 187,5 Kbds, to
communicate with this device, the configuration should be :
With the MPI messaging, some of Siemens CPU S7 312 firmware version does
not allow the DRL solution to connect through. So, if you encounter any
communication trouble, you will have to change the way to communicate to. Use
the S7 messaging. Do not forget to change the connexion type from Standard to
PG or OP.
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 11 of 12
More information about the Profibus communication in the help
file Profibus.pdf
More information about the Product general configuration in the
help file Implementation.pdf
The first contact for Techsupport help is your local BradCommunication supplier !
If you bougth your communication solution directly by Woodhead, please refer to the
contact.pdf document in the list of help files in order to find the Woodhead office close to
your location.
Please ensure also that you have the following information readily available before calling for
Technical Support:
- Card type and serial number
- Computer's make, model and hardware configuration (other cards installed)
- Operating system type and version
- Details of the problem you are experiencing: firmware module type and version,
target network and circumstances that may have caused the problem
QuickStart_PFB MPI/S7 comm with Siemens S7-300 and S7-400 PLC V1.0 Page 12 of 12