Professional Documents
Culture Documents
Siemens Equipment Usage Guide Imdl: 1/28/2004 Last Updated: 9/13/04
Siemens Equipment Usage Guide Imdl: 1/28/2004 Last Updated: 9/13/04
IMDL
1/28/2004
last updated:
9/13/04
An Introduction to Profibus:
Most of the Siemens devices talk to each other over a network called “Profibus
DP” (DP = Distributed Peripheral) specially designed for automation systems. One
purple wire with ends that look like RS232 connectors connects all devices by making a
“daisy chain” between them. Unlike TCP/IP communication, where computers only send
/ receive data when needed, components on a Profibus network are in constant cyclical
communication—i.e., they send and receive data every 2 msec, or whatever time period
is set. Even if a component has nothing to say, it will still send a 0. The network can run
at 12Mbit/s with cycle times less than 10msec, although this is highly dependent on the
components.
The two main players in a Profibus network are Masters and Slaves. Masters are
the only ones allowed to “talk,” or initiate a transfer of data with another component. If
there is more than one Master, the Masters pass around an imaginary token to decide
which one gets to “talk” at that moment. Slaves only communicate when a Master sends
or requests data from them. There is also something called a “Master Class 2,” which is a
master whose purpose is to monitor the network and can talk acyclically (whenever it
wants) with any device. Normally, a PC is Master Class 2.
Profibus networks are highly NON-plug and play. Before communication can
begin, each master must know exactly what and where everything else is on the network.
This is called “configuring.” Using Siemens software, a “picture” of the network is
constructed and then downloaded to the Master. The “picture” includes network
specifications (e.g. speed) and GSD files from each slave. A GSD file contains
instructions on how to communicate to a particular slave (# send / receive bytes, timing
information, etc.). Once the masters have all been configured and everything is turned
on, each master checks all the slaves against its picture of the network to make sure its
database exactly matches the real-life network.
Reference documentation:
-For more information on Profibus and the full range of network possibilities, see
“Profibus manual.pdf”
2. Overview of Hardware
Reference documentation:
-For Installation Instructions, see S7-300 Hardware and Installation.pdf
-For Specs, (what the LEDs mean, timing) see PLC CPU specifications.pdf
-For I/O port addresses, see chapter 7 of PLC CPU specifications.pdf
-An excellent place to start learning about configuration and programming, see Working
with STEP 7 V5.1 Getting Started.pdf
-For Configuring the PLC in a network, see Configuring Hardware and
Communication Connections STEP 7 V5.1
-For learning more about programming the PLC, see Programming with STEP 7
V5.2.pdf
-A complete list of documentation associated with the PLC and software can be found in
StartProgramsSimaticDocumentationEnglish
-All documentation can be found at www.ad.siemens.com
Simovert MotorDrives and Rectifier:
Inverters /
MotorDrivers
Profibus
Power connection Encoder add-on Card (green wire Communication
to Motors (orange) to motor encoder) Board (pink wire)
To use these you must “parameterize” them either using their front panel or a program
called “Drive Monitor” via Profibus or RS232. “Parameterizing” involves changing the
values of parameters (of which there are thousands). This allows you to do everything
from setting it up for Profibus communication or directing a signal through a series of
control blocks. The front panel allows you to select a parameter and change its value.
Reference documentation:
-All necessary documentation can be found on the “General Motion Control” CD.
-We have a Compact size C converter / regenerative rectifier and 2 Compact size B
inverters. You will need this information to locate the appropriate manuals.
-Two expansion boards are installed on each inverter: a “Communication Board
Profibus 2” and a “Sensor Board Encoder / Multiturn”. There are small (5”x8”)
booklets that cover the installation and parameterization of these.
-Hardware manuals exist for each of the above components on the CD.
-The “Quick Start-up Guides” are HIGHLY recommended for hardware installation,
configuring a Profibus network (one guide walks thru almost exactly what we have), and
use of the “DriveMonitor” software.
-Almost all questions can be answered by searching in the “SIMOVERT
MASTERDRIVES COMPENDIUM.pdf”(1442 pages)
CP5613 PCI to Profibus Card:
Note: in order to use this card in an operating system besides Windows, the drivers need
to be adapted using the Driver Development Kit listed below.
Reference documentation:
-For installation, specs, FAQs, see “CP5613 Installation Guide.pdf”
-For learning how to write your own user application, see “5613 Programming
Interface.pdf”
-For learning how to adapt the 5613 drivers to different operating systems, see the
“Development Kit DK-5613 CD” and the file “5613 Driver Devolopment Kit.pdf”
3. Overview of Software
Simatic Manager:
PATH: Start->Programs->Simatic->Simatic Manager
The Simatic Manager is where you start to create or edit any Projects involving Profibus
or the PLC. A Project contains information about the Profibus network, hardware
configurations, and programs you write to run on the PLC (ladder logic). This is also a
launching point for other associated Siemens software such as DriveMonitor, Hardware
Configurator, and Network Configuration.
Reference documentation:
-Clicking on help while in the program, known as “online help,” is very useful
-ESSENTIAL READING:
Working with STEP 7 V5.1: Getting Started, found in hard copy and also in
Start->Programs->Simatic->Documentation->English->”STEP 7 – Working with
STEP 7”
-For Configuring the PLC in a network, see Configuring Hardware and
Communication Connections STEP 7 V5.1
-For learning more about programming the PLC, see Programming with STEP 7
V5.2.pdf
-A complete list of documentation associated with the PLC and software can be found in
StartProgramsSimaticDocumentationEnglish
-All documentation can be found at www.ad.siemens.com
Setting the PG/PC Interface: (PG = Programming Device)
PATH: Start->Programs->Simatic->STEP 7->Setting the PG/PC Interface
ALSO: Start->Settings->Control Panel->Setting the PG/PC Interface (more options
available thru this path)
ALSO: Start->Programs->Siemens->
DriveMonitor
This program is more convenient to use over the panel on the drive because it allows you
to see multiple parameters at once, and more importantly, their descriptions.
Reference Documentation:
-The use of this program is described in the guides listed on the MotorDrives page.
4.1 How to… Configure Profibus Network with
PLC Master and MotorDriver(s)
Overall Steps:
4.1.1 Connect Hardware
4.1.2 Setup PC to allow Simatic Software to talk on Profibus
4.1.3 Configure Network: Create a “picture” of the network using
Siemens Simatic Manager
4.1.4 Create a program to run on the PLC
4.1.5 Download everything to the PLC
4.1.6 Setup Parameters on the MotorDriver(s) using DriveMonitor
Overview:
In order to create a Profibus network with the PLC acting as a Master, the PLC must be
given a “picture” of the network that includes all of the components, their individual
settings, and also properties of the network itself, such as speed. The PLC also needs to
be given a program to run. Both the “picture” of the network and the program are created
and downloaded to the PLC using Simatic Manager (also referred to as STEP 7).
It should be noted that the PC is not going act as a normal member of the Profibus
network. It will be a “Master Class 2” object which means it does not participate in the
“cyclical” data exchange, meaning it does not constantly get a and receive data. You can
think of it as an observer that can talk to anything else on the network whenever it wants.
This type of master doesn’t need to be configured and can be used to inspect a network
just by plugging it in. The PG/PC Interface described below provides a useful method for
checking hardware connections.
Useful Documentation:
The best place to start is by reading the getting started guides, specifically Profibus
Quick Startup Guide V1.0.pdf. This guide goes step by step through almost the exact
same setup. For a good introduction about programming and configuring (making a
picture of the network) the PLC, look through Working with STEP 7 V5.1.pdf. For
more information, see the documentation listed in the Software and Hardware sections
above.
“Online Help,” or clicking the “help” buttons within Siemens programs is very useful,
also.
4.1.1 Connect Hardware
The first step is to connect all the components on the network by “daisy chaining” them
together. Be sure to turn the terminal resistors “on” at the ends of the chain and off in the
middle.
PC
Terminating CP5613
Resistor Profibus Line
PCI Card Terminating
Resistor
In general, the LEDs mean different things for different devices. However, here are the
meanings for the LEDs on the MotorDriver Communication Card:
RED: (flashing) Card operating with voltage supply on. (Off/On) No voltage or broken.
YELLOW: (flashing) MotorDriver can talk to card. (Off/On) Broken Card
GREEN: (flashing) “Useful” data exchange via Profibus. (Off/On) Cabling problem.
4.1.2 Setup PC to allow Simatic Software to talk on Profibus
In order to let the PC talk on the Profibus network, you need to setup some software that
manages communication between Profibus and different programs on the PC. The
program for this is called PG/PC Interface, located at
Programs
Start SIMATIC
STEP 7
Setting the PG/PC Interface.
You will use Simatic Manager to create a project that contains all the information the
PLC needs to run a Profibus network as a Master.
Programs
1. Open Simatic Manager: Start Simatic Simatic Manager
Here you could choose to upload everything stored on the PLC (programs, configuration)
to the PC by choosing PLCUpload Station. Only do this if you know what’s there,
otherwise start from scratch.
Station
3. Create a station (PLC): Insert Menu SIMATIC 300 Station
Subnet
4. Create the network: Insert Menu Profibus
5. Open Hardware Config: Double click SIMATIC 300, then Double click hardware
This will open the HW Config, a program that lets you specify and configure the PLC.
This is where you will do most of the configuration.
At this point you could upload the configuration currently stored in the PLC by going to
the PLC Menu Upload. Do this if you know exactly what’s on the PLC, otherwise it’s
better to start from scratch.
6. Go to ViewCatalog and make sure this is checked. You’re now ready to start
dragging in components from the Catalog on the right into your configuration.
Your
configuration
Catalog
Object. Now click SIMATIC
7. Go to Insert
300Rack 300 Rail.
13. Set the address to something greater or equal to 3. Note, the address entered here
MUST be the same as the address the drive is set at internally. The drive’s internal
address can be set via a parameter and this will be explained later. You should use the
address that showed up in the Set PG/PC Interface. If this address is wrong, the PLC
won’t be able to communicate because it doesn’t know where the Motordriver is! Click
OK after setting the address.
14. Click OK on the next screen
that comes up without changing
anything.
15. In the next window, leave everything alone and go to the Configuration Tab. The
Response Monitoring checkbox tells the PLC to send 0’s to the MotorDriver in case the
slave (Motordriver) reports an error or there is a communication problem. This is good
because it provides a safety stop if anything goes wrong.
16. In the Configuration tab, select PPO-Typ 5, PKW+PZD-10/10 from the Default
Menu.
17. Repeat the above steps to add a second MotorDriver (Motion Control in the menu).
Change the address to something that has been used, or preferable, the address shown in
the Set PG/PC Interfaces Diagnosis area. Again, the network will not work unless these
addresses are set both in this configuration and later internally in the Motordrivers.
18. You can change network settings (like speed) later by double clicking the Profibus
Line, double clicking any device on the network and then going to its Profibus Properties,
or by clicking the network configuration button. Save this configuration.
Network
Config
Download
19. Now it’s time to download your configuration to the PLC. Click the download
button shown, or go to the PLC Menu Download… Click OK. Click OK again on
the next window. Click OK
for any other windows the
pop up.
20. Close the HW Config.
Download the project, including the network and hardware configuration, in addition to
the PLC programs. PLC Compile and Download Objects.
Check the boxes and then click Start. You can also download the hardware
configuration from the HW Config and the PLC programs from the Program editor.
Note that the Blocks level / folder now contains several other objects.
“OB1” is the main function that gets called repeatedly. “FC1” contains the program that
transfers data between the analog ports on the PLC to the Profibus network. “SFC14”
and “SFC15” are built-in functions used by “FC1” to talk on Profibus. Doubling-clicking
on FC1 will open the program editor. This is where you create programs in either Ladder
Logic, STL, or Function Block diagrams. All are equivalent, although Ladder Logic is
the easiest to visually trace the logic with. You can download just one program here by
clicking the download button.
One other tool you should be aware of is the Symbol Editor. This is where all the
variables you use are declared. Go to it by double clicking Symbols in the Simatic
Manager. Note that S7 Program(2) is selected.
You can watch and edit variables real-time by opening the VAT (Variable Access
Table?).
One final note: If you stored the data 0x1234 at MW20 (2 bytes of hex), and then
watched MB20 (a byte at address 20), it would contain 0x12, NOT 0x34 even though the
lower part of 0x1234 is 0x34 since the number is stored as a 2-byte word.
4.1.6 Parameters on the MotorDriver(s) using DriveMonitor
The final step is to setup the Motordrivers themselves. This is done using the
DriveMonitor software which enables you to change parameters using a PC instead of the
buttons on the actual devices. Note that the addresses in the Simatic project MUST
match the Profibus addresses set on the MotorDrivers to be able to communicate to them
via Profibus. The addresses in the project can be changed by going into the Hardware
Config as described in the above steps (see 4.1.2). To change the addresses set on the
actual MotorDrivers, you need to adjust parameter P918.01 and P918.02. A brief set of
button strokes to do this will follow, but if you are setting up the MotorDrivers for the
first time, you should read chapters 5 and 6 of the SIMOVERT MASTERDRIVES
COMPENDIUM.pdf, starting at p. 77 or 5-1.
The following pictures are taken from the compendium, chapter 5 and cover the basics of
changing parameters on the devices panels.
Parameters are organized into different sets, and some may only be changed on the
device itself if the right “set”, or “menu” is selected. P60 is the parameter that selects
which “set” or “menu” you can currently edit. P60 needs to be set to 4 before you can
adjust the Profibus address.
First, make sure the display shows a parameter number by pressing P until there is a letter
followed by 3 digits. Then use the arrow keys to scroll to parameter P60. Press P to
change to the parameter value, and then use the arrow keys to change it to 4. Now press
P again to go back to the parameter number, and navigate to P918. Press P twice to go to
the index and the value, and change it to the address you have configured in your Simatic
project. If you are using the example project, this should be 3 or 4. You should now
change P60 back to what it originally was.
Now you should be able to use the DriveMonitor software to change parameters instead
of the cumbersome panel.
-Select ON/OFF Command P554 = B3100 (turns motor off/on via Profibus bit)
Set Main Speed Setpoint P443 = K3002 (sets speed based off a word in Profibus)
Set Transmit Word P734.02 = K0091 (transmit actual speed via Profibus)
P734.03 = K0091
If you are using the example configuration, you should be able to send analog values to
the PLC, and have it send those values via Profibus to the MotorDrivers.
You can use the DriveMonitor software to send simple speed setpoints with the following
steps:
Set ProcessData
Select Operate Menu
Type in a value in the Setpoint box and then click the Green bottom in the lower left to
activate the motor.