Beruflich Dokumente
Kultur Dokumente
Contents Page
Objectives .......................................................................................................................................... 2
Communication: PROFIBUS DP …................................................................................................... 3
Main Tasks of the Master – Slave Communication ........................................................................ 4
Integrating a Drive in the HW Config ............................................................................................... 5
Drive ES (= Engineering System) ..................................................................................................... 6
Overview of the Starter Commissioning Tool .................................................................................. 7
Configuration of a Drive with the Wizard ........................................................................................ 8
Online Operation .............................................................................................................................. 9
Diagnostics Function ........................................................................................................................ 10
Control Panel Function ..................................................................................................................... 11
Exercise 1: Reset to Factory Default ............................................................................................ 12
Exercise 2: Integrating a Drive in the HW Config ............................................................................. 13
Exercise 3: Online Configuration of the Drive using the Wizard ........................................................ 14
Exercise 4: Changing Parameter Ramp-up and Ramp-down Times Online .................................... 15
Exercise 5: Using the Control Panel ................................................................................................. 16
Exercise 6: Controlling the Drive via the Touchpanel (FC 42)............................................................... 17
If You Want to Know More ............................................................................................................. 18
Communication with PPO Type 1 ................................................................................................... 19
Configuration of the MM420, Example PPO Type 1 ....................................................................... 20
Writing Consistent Data to DP Normslaves with SFC 15 ............................................................... 21
Reading Consistent Data from DP Normslaves with SFC 14 ........................................................ 22
PROFIBUS Module
Field Bus A field bus connects distributed sensors and actuators (such as, valves, light
barriers, measuring devices, drives, operator control panels) with the central
PLC. PROFIBUS DP is a manufacturer-independent, open field bus. PROFIBUS
has been standardized and continuously further developed by the PNO
(Profibus User Organization) since 1990.
Master-Slave The master (usually a PLC with a PROFIBUS interface module, such as,
S7-315-2 DP) controls the data communication on the bus. Slaves only send
data when they are prompted by the master. That way, no collision results
between two senders.
Cyclical Range The slaves are cyclically (= one after the other) supplied with process data by
the master and their process data is scanned. In Drives, process data are, for
example,
• speed setpoint, switch-on signals from the master or
• actual speeds, error signals from the drive.
The data telegrams consist of 2 to 16 words (á 16 bit).
Cycle times lie between about 2 to 20 ms.
Event-driven Range As well, there is often the need to read or change the parameters of a drive. This
occurs (in today‘s applications) only when prompted. The cyclic operation is
then briefly interrupted and a longer data telegram with up to 117 words is sent.
Master Class 2 The "normal" master is called Master Class 1. For commissioning, you can also
connect a PC or PG (= SIMATIC programming device) as a Master Class 2.
Independent of the actual data communication, the Master Class 2 can access
the drives.
PROFIBUS Address The minimum requirement for commissioning the PROFIBUS option module is
the setting of the PROFIBUS address.
Master-Slave Communication
Reading and writing of parameters Controlling the drive process
Reading out of fault and diagnostic values Permanent setting of control bits and setpoints
Reading and modifying function values Constant reading of status bits and actual values
Cyclic
Acyclic
Process Control Fast data transmission of short data telegrams to all participating stations with
the maximum speed available on the bus. In drive systems these are typically
setpoints, control commands, status replies and actual values (measured
values).
Operating Control In addition to this permanently available data, there is data that is only needed in
particular cases. It would therefore be senseless to permanently put load on the
bus if this data is only needed once per hour or per day, for example, when
starting up the machine (Class 1 Master). Another reason for an expanded
communication need could be the commissioning, optimization or diagnosis of
machine components from a central location. In this case, (such as a fault) a
detailed access of an Engineering Tool to the system components or the drive is
enabled. Since, as a rule, only one affected device/component is directly
addressed, this window is only made available once per bus cycle for one bus
station and not simultaneously for every station.
General The cyclic data exchange between CPU and MM4420 via PROFIBUS must be
configured in HW Config.
Properties
Dialogs The following properties are defined in the dialogs:
PROFIBUS interface: PROFIBUS address and subnet
SINAMICS: Firmware version of the Micromaster (to be found on the nameplate
of the MM420 such as, "Issue: A06/1.17")
DP Slave: In addition to the I/O addresses for data exchange between CPU and
Micromaster, the type of communication must be defined here:
Drive ES Basic Enables you to integrate the drives as objects in the SIMATIC Manager. They
then appear in the project tree, like for example, SIMATIC CPUs.
In this manner, the commissioning software of the drives is then also started.
Drive ES SIMATIC This package contains STEP 7 Block Libraries (= Data and function blocks) for
user-friendly configuration of communication using PROFIBUS DP.
These three software packages are explained on the following pages.
Drive ES PCS7 This package contains faceplates for user-friendly configuration of the process
control system PCS7.
Starter The "STARTER" commissioning software for drives supports the user in:
• parameter assignment
• commissioning
• diagnosis
• the service of MICROMASTER 4.
The STARTER software is a component of the Drive ES Basic Software. It can
also be downloaded from the Internet free-of-charge and be operated as a stand
alone.
Wizard For standard applications of the drive, the parameter assignment with the help of
the Wizard is sufficient. Comparable to the quick commissioning via Parameter
P3900, only the most important parameters are queried here in the dialogs.
Online Configuration Usually, the reconfiguration of the drive is done online with the Starter Wizard
since a reset to factory default is carried out at the conclusion of a
reconfiguration, similar to a quick commissioning via Parameter P3900 and
further parameters are overwritten with newly calculated values. After a
successful online configuration, the values of all parameters can then also be
stored offline.
Online/Offline With the "Starter" software, you can work in the OFFLINE and ONLINE mode.
Depending on the mode, you can use various functions. You can see whether
the system is in the ONLINE or the OFFLINE mode at the bottom of the work
window.
Online Mode In the ONLINE mode, you have a communication connection from the "Starter"
to the drive. You can configure the drive, carry out the drive diagnosis, control
the drive through the PC/PG and load the new parameter data into the drive.
During the switch into the ONLINE mode, the project is checked for consistency.
A check is made as to whether the drives configured in the project exist and are
connected. If the consistency check is successful, the icons of the drives have a
green background in the project navigator. If there is an error, the icons have a
red background.
You establish an ONLINE connection to the drive either with the icon or
with Project Æ Connect to target system.
Note For the ONLINE mode, the drive must be connected to the PC/PG through a
PROFIBUS cable and the interface has to be configured on the PC/PG.
Changing Parameters A parameter that is changed, first appears in the "Starter" as yellow. After
pressing the "Enter" key, the modified parameter becomes effective. Since the
parameters are first stored in the RAM memory of the Micromaster, they are lost
when you have Power OFF. To permanently store the parameters either use the
menu option Target System Æ Copy RAM to ROM or load the configuration with
Target System Æ Download Æ to target device and confirm the prompt "Do you
really want to copy RAM to ROM? ".
Activate In the ONLINE mode, you start the function with a double-click in the left window
on "Diagnostics".
Control/Status Word In this tab you can follow how the control word is output from the CPU, for
example. The bits displayed in green have signal state "1".
Status Parameter In this tab, the most important parameters, such as, frequency setpoint or output
current are displayed.
Usage For diagnostics and maintenance, you can issue control commands to the
Micromaster from the PC/PG. As well, the most important parameters can be
monitored online.
What to Do 1. Double-click on the object "Control Panel" in the left window (Project
navigator).
2. You may have to enlarge the lower window containing the control panel.
3. Click the "Assume control priority" button.
4. Read the message "Transfer control priority to the PC? " and continue with
"Yes".
5. Take note of the messages in the follow-up screen and accept with "OK" .
6. Activate the option "Enables (bit 1 to bit 6)".
7. In the field "Setpoint", enter the setpoint frequency, for example, 10 Hz.
8. With the "I" button switch on the drive and with the "0" or the space bar
switch off the drive. The "I/0" button is for jog operation.
9. Give back the Control priority by clicking on the " Return... " button and
acknowledge the message that follows.
S1 = Drive On/Off
P0010 = Commissioning filter S2 = Reverse direction of rotation
P0970 = Reset to factory defaults S3 = Acknowledge fault
P3900 = End of quick commissioning H1 = Fault (is lit when there is no fault)
P1 = Potentiometer for the frequency/speed
Task First of all, carry out a Reset to Factory Default to establish a defined initial
state.
Factory Default In the factory default, the inverter is already functional. It is parameterized for a
4-pole Siemens motor with the same power rating as the MM420 and can be
controlled via the binary inputs (see slide).
Quick If Parameter P0010 is set to the value 1, the quick commissioning mode of the
Commissioning inverter is activated. Only the most important or the most frequently required
parameters are displayed.
The quick commissioning mode is always required when motor (characteristic)
data are to be changed. With the end of the quick commissioning via Parameter
P3900, additional parameter data are recalculated out of the changed motor
data:
• P3900 = 1 Æ Reset to factory default and motor data calculation
• P3900 = 2 Æ Only motor data calculation
• P3900 = 3 Æ Reset the parameter assignments of inputs and outputs
This procedure is also described in the "Getting Started" Guide that is included
with every unit. We will not practice the quick commissioning in this exercise.
General The cyclic data exchange between CPU and MM420 via PROFIBUS must be
configured in HW Config. Proceed as follows:
Result When the MM420 has been successfully parameterized and integrated in the
hardware configuration of the S7 Station, the LED of the MM420 PROFIBUS
interface shows a green flashing or constant light.
online
Store
configuration offline
Task The MM420 of your training station is to be reconfigured according to the motor
data using the "Starter" tool.
What to Do 1. Open the "Micromaster_420" of the S7 station with the "Starter" tool by
clicking right mouse on "Micromaster_420" in the right window ans select
menu function “open object”.
2. In Starter, open the entire project structure of the "S7_300_Station" by
clicking on the small x‘s.
3. Establish an online connection to the MM420
Project Æ Connect to target system
4. Double-click on "Configuration" and then on "Reconfigure drive ..."
5. In the follow-up screens, enter the motor rating plate data and confirm the
standard settings in the following.
In the "Command Source/Setpoint Source" tab, enter the following
parameters:
• Source of control signals? CB at COM Link (6)
(CB at COM Link (6) means P0700 = 6 means PROFIBUS)
• Source of speed setpoints?: CB at COM Link (6)
(CB at COM Link (6) means P1000 = 6 means PROFIBUS)
In the "Main Parameters" tab, enter the following parameters:
• Ramp-up time: 4.0s (means P1120 = 4.0s)
• Ramp-down time: 3.0s (means P1121 = 3.0s)
In the "Completion" tab, enter the following parameters:
Activate "Copy RAM to ROM" so that the parameters can be adopted from
the RAM into the drive’s ROM even in case of a power failure
6. Save the project
Project Æ Save
7. On the BOP, check whether the values specified by you were assigned to
the parameters.
Task In order to become familiar with the possibility of also changing individual
parameters later on, you are to re-parameterize the ramp-up and ramp-down
times of the ramp-function generator.
Notes A parameter that is changed, first appears in the "Starter" as yellow. After
pressing the "Enter" key, the modified parameter becomes effective. Since the
parameters are first stored in the RAM memory of the Micromaster, they are lost
when you have Power OFF. To permanently store the parameters, either use
the menu option Target System Æ Copy RAM to ROM, or, load the configuration
using Target System Æ Download Æ to target device and confirm the prompt
"Do you really want to copy RAM to ROM?".
Task Control the drive using the "Control Panel" of the "Starter" software.
AI2
AI1 AO1 -15V...+15V
AO2
0
10
V
AI1 AI2
Task The drive is now to be controlled via the program or via the touchpanel screen
"MM 420". The motor can be jogged via the buttons "Jog Left" and "Jog Right"
and can be switched on and off with the speed to be set on the simulator
potentiometer AI2 using the buttons "On" and "Off".
Task #2 In addition to the control of the MM420 via touchpanel operation, the MM420 is
now also to be controlled parallel to the conveyor model motor:
- if the conveyor model motor is jogged to the left or right via the screen
"Conv", the MM 420 is also to be controlled accordingly in parallel
- with the transport functions while in AUTO mode, the MM 420 is also to be
switched on and off automatically
What to Do 1. Program the new "FC_MM420" (FC 42) block with the required functions
(please note the solution hints mentioned below).
2. Check whether the MM420 can be controlled via the touchpanel.
Solution Hints:
• In your program, use the data block variables, shown in the slide, with which
the screen‘s buttons are "connected".
• To scale the analog value that is read in, use the block "SCALE" (FC 105)
from the Standard Library -> TI-S7 Converting Blocks
Scaling: LO_LIM: 0.0
HI_LIM: 16384.0 (corresponds to a speed of 1350 rpm)
• Use the following MM420 control words:
Motor OFF: W#16#047E
Motor ON: W#16#047F
Jog left: W#16#067E
Jog right: W#16#057E
Note The following pages contain either further information or are for reference to
complete a topic.
PROFIBUS
Control word
T QD 42 QD 42
Main setpoint
PROFIBUS
PKW Telegram With the PKW telegram section (Parameter Index Value), any parameter in the
inverter can be monitored and/or changed.
Since the telegram consists of 4 words, the data transmission must take place
with the system functions SFC 14/15, because of data consistency.
The telegram comprises the:
• Parameter identification (PKE), that contains a job number for changing
the parameter value, for example, and the parameter number
• Parameter index (IND) for indexed parameters for selecting which drive
data record, for example
• Parameter value (dimension 16 or 32 bit, such as, ramp-up time)
PCD Telegram With the process data, control words and setpoints or status words and actual
values can be transferred.
General Unlike the PPO Type 3, any parameter values can now also be read or
modified.
I/O Address The process data (control word and setpoint) are passed to the drive through the
output address QW 56 and the actual values, for example, are returned through
the inputs. This corresponds to the principle of the PPO Type 3.
The PKW telegram is output through the output word QW60 - QW66 (4 words).
The SFC 15 system function is necessary for the transmission.
PROFIBUS Master …is the CPU with the Address 2, in the example shown
"DPWR_DAT"
EN ENO
W#16#3C LADDR RET_VAL #Errorr_SFC15
"DB_MM420".PKW RECORD
_Telegram
System Functions For consistent user data exchange (PPOs) during cyclic operation, SIMATIC S7
provides the following system functions (SFC):
• SFC 14 DPRD_DAT Read data
• SFC 15 DPWR_DAT Write data.
SFC 15 With the SFC 15 "DPWR_DAT" (write consistent data to a DP normslave) you
transfer the data in RECORD consistently to the addressed DP normslave.
The length is 4 words for the PKW telegram.
Data transmission is synchronous. That is, after the SFC is completed, writing is
completed.
The source area must have the same length as was specified in the
configuration.
"DPRD_DAT"
EN ENO
RECORD ???
Function With SFC 14 "DPRD_DAT" (read consistent data of a DP normslave) you read
out consistent data of a DP normslave.
Its length must be three or more than four bytes whereby the maximum length is
defined according to the specific CPU used. You will find this in the technical
data of your CPU. If no error occurs during data transmission, the read data are
entered into the target area opened up by RECORD.
The target area must have the same length as was configured for the selected
module with STEP 7.
For a DP normslave with modular design or with several DP IDs, you can only
access the respective data of a module/DP ID under the configured initial
address with an SFC 14 call.