Sie sind auf Seite 1von 22

Commissioning the MM420 with the "Starter" Software

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.1

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

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 1 Commiss. the MM420 with the "Starter" SW
Objectives

Upon completion of this chapter the participant will ...

... be able to use the "Starter" software for commissioning,


... be able to carry out a simple configuration of a drive,
... be familiar with the software components of Drive ES.

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.2

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 2 Commiss. the MM420 with the "Starter" SW
Communication: PROFIBUS DP

PROFIBUS Module

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.3

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 3 Commiss. the MM420 with the "Starter" SW
Main Tasks of the Master – Slave Communication

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

Parameter index value (PKW) Process data (PCD)

Size of the main setpoint


to the inverter
Source of the main setpoint Level of the control bit
Source of the control bit
Size of the main actual value
from inverter
Level of the status bit

How does data transmission take place?


• Only triggered if required • Fast and permanently triggered
• Freely accessible to all parameters • With fixed “wiring“ to the process

Cyclic
Acyclic

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.4

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.

Cyclic Data Exchange


Cyclic data exchange is used for fulfilling the requirements for a fast, permanent
data exchange.

Acyclical Data Traffic


Acyclic data traffic is managed exclusively by the PROFIBUS-DP Master.
However, it is not triggered from there. Triggering, that is, the trigger of a data
transmission always occurs from the user program during the acyclic
communication between a Class 1 master and a slave. This means that the user
program decides whether a data exchange with a slave is necessary or not
based on further conditions. Only if required, is a data transmission request then
signaled to the DP master which then executes this request.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 4 Commiss. the MM420 with the "Starter" SW
Integrating a Drive in the HW-Config

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.5

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:

PPO Types: (Parameter Process data Object)


The structure of the user data for the cyclic data exchange is identified as the
PPO Type in the PROFIBUS profile for Variable-speed drives.
The PPO types 1 to 5 have a defined number of PKW (Parameter Index Value)
and PCD (Process Data):
PPO Type 3 permits a simple data transmission with which the controlling of the
Micromaster is possible as well as the specification of the speed setpoint and
the reading out of the speed actual value.
With PPO Type 1, you can also change all drive parameters per CPU program.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 5 Commiss. the MM420 with the "Starter" SW
Drive ES (= Engineering System)

Drive ES Basic Drive ES SIMATIC

Drive ES Graphic Drive ES PCS7

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.6

Software Drive ES is an (chargeable) option software as an add-on to the SIMATIC


Manager.

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 Graphic Exclusively for MASTERDRIVES and SIMOREG DC-MASTER.


Is used for user-friendly, graphic assignment of internal signal sequences and
available function blocks.

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 6 Commiss. the MM420 with the "Starter" SW
Overview of the Starter Commissioning Tool

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.7

Overview STARTER is a graphic commissioning software for commissioning the Siemens


Frequency Inverter Family MICROMASTER 4.
You can make the configuration of the drive with the help of the Wizard for drive
configuration. After you have gone through the steps with the Wizard, the drive
is functional. You make special parameter assignments in the windows of the
respective drives.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 7 Commiss. the MM420 with the "Starter" SW
Configuration of a Drive with the Wizard

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.8

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 8 Commiss. the MM420 with the "Starter" SW
Online Operation

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.9

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? ".

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 9 Commiss. the MM420 with the "Starter" SW
Diagnostics Function

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.10

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 10 Commiss. the MM420 with the "Starter" SW
Control Panel Function

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.11

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 11 Commiss. the MM420 with the "Starter" SW
Exercise 1: Reset to Factory Default

Parameter Value Comment


P0010 30 Reset to
Factory Default
P0970 1 End

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

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.12

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).

What to Do 1. Change the parameter P0010 to the value 30


2. Change the parameter P0970 to the value 1
3. Wait until the P---- indicator "disappears" on the display
4. Test the inverter using the switches and potentiometer on the demo case
(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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 12 Commiss. the MM420 with the "Starter" SW
Exercise 2: Integrating a Drive in HW Config

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.13

General The cyclic data exchange between CPU and MM420 via PROFIBUS must be
configured in HW Config. Proceed as follows:

What to Do 1. Activate the HW Config tool.


2. Open the HW Catalog and set the Profile "DriveES".
3. From the SIMOVERT Æ MICROMASTER4 directory, select the
Micromaster 420 and drag this onto the PROFIBUS DP mastersystem using
drag and drop.
4. In the "Properties – PROFIBUS interface MICROMASTER_4_PROFIBUS"
screen, enter the PROFIBUS address 9, select the subnet and confirm with
"OK".
5. In the "Properties – SINAMICS" screen, choose the device version "1.0x" or
"1.1x" that fits for your training unit. You will find this version on the
MM420‘s nameplate (such as, "Issue: A06/1.17")
6. In the "DP Slave Properties" screen, in the "Configuration" tab, select PPO
Type 3 and assign the I/O address 42 for data exchange with the CPU (see
slide).
7. Save, compile and download the configuration into the CPU.

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 13 Commiss. the MM420 with the "Starter" SW
Exercise 3: Online Configuration of the Drive using the Wizard

online

Store
configuration offline

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.14

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 14 Commiss. the MM420 with the "Starter" SW
Exercise 4: Changing Parameter Ramp-up and
Ramp-down Times Online

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.15

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.

What to Do 1. Establish an online connection to the MM420


Project Æ Connect to target system
2. Open the project structure, double-click on "Limits" and switch to the
"Ramp-function generator options" tab.
3. Change the values for the ramp-up and ramp-down time, for example, to 2
seconds (with RETURN, the values are immediately adopted in the MM420).
4. On the BOP, check whether the values specified by you were assigned to
the parameters.
5. Switch off the voltage on the MM420 demo case and then switch it back on.
6. On the BOP, check whether the values specified by you changed the ramp-
up and ramp-down time parameters?
7. Change the parameters once more and make sure that the changes are
retained even after a power failure.

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?".

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 15 Commiss. the MM420 with the "Starter" SW
Exercise 5: Using the Control Panel

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.16

Task Control the drive using the "Control Panel" of the "Starter" software.

What to Do 1. Establish an online connection to the MM420


Project Æ Connect to target system
2. In the project structure, double-click on "Control panel" and switch to the
"Ramp-function generator options" tab.
3. Activate the control panel by clicking on "Assume control priority", read the
safety warning provided and press "Yes" to close the dialog to continue.
4. Activate "Enables"
(causes bits 1 to 6 of the control word to be set)
5. In the "Setpoint" field, enter a value and switch the drive on and off using the
"I" and "O" keys.
6. Give back the control priority by clicking on the "Return…" button and read
the message that follows and acknowledge it.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 16 Commiss. the MM420 with the "Starter" SW
Exercise 6: Controlling the Drive via the Touchpanel (FC 42)

AI2
AI1 AO1 -15V...+15V
AO2
0
10

V
AI1 AI2

"PIW AI2" (PIW 306)


Speed 0 to 1350 rpm

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.17

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

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 17 Commiss. the MM420 with the "Starter" SW
If You Want to Know More

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.18

Note The following pages contain either further information or are for reference to
complete a topic.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 18 Commiss. the MM420 with the "Starter" SW
Communication with PPO Type 1

CPU PKW Telegram MM 420


(PKW = Parameter Index Value)
Parameter ID
Index
SFC 15
Parameter value
Parameter value

PROFIBUS

CPU PCD Telegram MM 420


(PCD = Process data)

Control word
T QD 42 QD 42
Main setpoint

PROFIBUS

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.19

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.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 19 Commiss. the MM420 with the "Starter" SW
Configuration of the MM420, Example PPO Type 1

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.20

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

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 20 Commiss. the MM420 with the "Starter" SW
Writing Consistent Data to DP Normslaves with SFC 15

z To be able to transfer more than four bytes consecutively


(consistent), you require the SFC 15 "DPWR_DAT" system function

"DPWR_DAT"
EN ENO
W#16#3C LADDR RET_VAL #Errorr_SFC15
"DB_MM420".PKW RECORD
_Telegram

Parameter Declaration Data Type Memory Area Description


LADDR INPUT WORD I, Q, M, D, L, const. Configured initial address from the output area
of the module which is to be written to.
RECORD INPUT ANY I, Q, M, D, L Source area for the user data to be written. It must
be just as long as you configured for the selected
module with STEP7. Only the BYTE data type
is permitted.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is being
executed, the return value contains an error
code.

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.21

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.

Parameter • LADDR W#16#3C corresponds to decimal 60 (parameterized


Assignment address for the PKW telegram)
• RECORD "DB_MM420".PKW_Telegram
is a memory area in the data block with a
length of 4 words, which contains the user
data for the PKW telegram
• RET_VAL Error_SFC15 is a temporary variable, which contains the
message signal (error number) of the system
function

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 21 Commiss. the MM420 with the "Starter" SW
Reading Consistent Data from DP Normslaves with SFC 14

z To be able to read out more than four bytes consecutively


(consistent), you require the SFC 14 "DPRD_DAT" system function

"DPRD_DAT"
EN ENO

??? LADDR RET_VAL ???

RECORD ???

Parameter Declaration Data Type Memory Area Description


LADDR INPUT WORD I, Q, M, D, L, const. Configured initial address from the input area
of the module from which is to be read.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is being
executed, the return value contains an error
code.
RECORD OUTPUT ANY I, Q, M, D, L Target area for the read user data. It must be
just as long as you configured for the selected
module with STEP7. Only the BYTE data
type is permitted.

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_09E.22

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.

Example Reading consistent data from Slave 9 (Address 2Ahex = 42dec)

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 22 Commiss. the MM420 with the "Starter" SW

Das könnte Ihnen auch gefallen