Sie sind auf Seite 1von 48

http://support.automation.siemens.

com/WW/view/en/29157692
Application description 01/2014
Acyclic reading and writing
parameters of the frequency
inverters via PROFINET and
PROFIBUS
SFB 52, SFB 53 for SINAMICS G120/G120D, SIMATIC ET200S FC,
ET200pro, MICROMASTER 420 and 440
Warranty and liability

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 2

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Warranty and liability

Note
The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These application examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
application examples and other Siemens publications e.g. Catalogs the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us based on whatever legal reason resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(wesentliche Vertragspflichten). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.

Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens Industry Sector.

Security
informa-
tion
Siemens provides products and solutions with industrial security functions that
support the secure operation of plants, solutions, machines, equipment and/or
networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.


Table of contents

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 3

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Table of contents
Warranty and liability ............................................................................................... 2
Validity ...................................................................................................................... 5
1 Application description .................................................................................. 6
2 Components required .................................................................................... 8
2.1 Hardware components ....................................................................... 8
2.2 Software component .......................................................................... 8
3 Structure of the PROFINET and editing Ethernet nodes .............................. 9
3.1 Connecting Ethernet nodes................................................................ 9
3.2 Setting the PG/PC Interface ............................................................... 9
3.3 Editing Ethernet Node ...................................................................... 10
4 Configuring HW Config ................................................................................ 17
4.1 Configuring the SIMATIC station ...................................................... 17
4.2 Creating the Ethernet subnet ........................................................... 17
4.3 Configuring the frequency inverter ................................................... 18
5 Preparing the project.................................................................................... 22
5.1 Creating the request and response data set ..................................... 22
5.2 Copying SFB52 & SFB53 system function blocks............................. 23
5.3 Generating instance data blocks ...................................................... 24
6 Reading parameters ..................................................................................... 26
6.1 Example 1: Reading-out error message (r0947) and the error
value (r0949) ................................................................................... 26
6.2 Example 1: Generating the request data set (DB1) to read the
parameters ...................................................................................... 26
6.2.1 Example 1: Generating the response data set (DB2) for a
response ......................................................................................... 27
6.2.2 Example 1: Controlling the drive (network 1 of OB1) ........................ 27
6.2.3 Example 1: Sending a read request to the drive (DB1) ..................... 28
6.2.4 Example 1: Receiving a response from the drive (writing into
DB2) ................................................................................................ 29
6.2.5 Example 1: Controlling the read process .......................................... 29
6.3 Example 2: Reading-out the individual parameters of the
CU240S PN ..................................................................................... 31
6.3.1 Example 2: Generating the request data set (DB1) to read
parameters ...................................................................................... 32
6.3.2 Example 2: Generating the response data set (DB2) for
response ......................................................................................... 34
6.3.3 Example 2: Controlling the drive (network 1 of OB1) ........................ 35
6.3.4 Example 2: Sending a read request (DB1) to the drive ..................... 35
6.3.5 Example 2: Receiving a response from the drive (writing into
DB2) ................................................................................................ 36
6.3.6 Example 2: Monitoring the read process .......................................... 37
7 Writing to parameters................................................................................... 38
7.1 Example 3: Writing to parameter P1082 (maximum frequency) ........ 38
7.1.1 Example 3: Generating the request data set (DB1) to write to
parameter P1082 ............................................................................. 38
7.1.2 Example 3: Controlling the drive (network 1 of OB1) ........................ 39
7.1.3 Example 3: Sending a write request (DB1) to the drive ..................... 39
7.1.4 Example 3: Controlling the write process ......................................... 40
Table of contents

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 4

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


8 Reading and wri ting parameters from/to the frequency inverters via
PROFIBUS using SFB52 & SFB53 ............................................................... 41
8.1 Reading and writing parameters of the ET200S FC and
ET200pro ........................................................................................ 42
8.2 Example for writing several parameters for CU240S ........................ 44
8.3 Example for reading several parameters for CU230P-2 .................... 45
8.4 Example for writing several parameters for CU230P-2 ..................... 46
9 Related literature .......................................................................................... 47
10 Contact.......................................................................................................... 47
11 History .......................................................................................................... 48


Validity


Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 5

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Validity
The example applies to an implementation with STEP 7 V5.x for...
SINAMICS G120, G120C, G120D und G120P
SIMATIC ET200pro FC und ET200S FC
MICROMASTER 420 and 440.
If you work with a SIMATIC S7-1200 or S7-1500 in the TIA Portal, you better use
FB SINA_PARA (FB286) from "DriveLib_S71200/1500...". Function block,
description and instructions how to configure and to include you will find in the
archived file DriveLib_S71500_V12.zip under the Entry ID
http://support.automation.siemens.com/WW/view/en/68034568.


1 Application description


Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 6

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

1 Application description
The application below shows how to read and write parameters in the SIMATIC
Manager by means of the S7 standard function blocks SFB52 and SFB53. The
application includes the following sample projects:
Example 01:
Read error buffer of SINAMICS G120 CU240S PN via PROFINET
Example 02:
Read parameters from SINAMICS G120 CU240S PN via PROFINET
Example 03:
Write parameters into SINAMICS G120 CU240S PN via PROFINET
Example 04:
Read parameters from SINAMICS G120 CU230P-2 PN via PROFIBUS
Example 05:
Write parameters into SINAMICS G120 CU230P-2 PN via PROFIBUS
Example 06:
Write parameters into SINAMICS G120 CU240S via PROFIBUS
Example 07:
Read parameters from the IM of the ET200pro FC via PROFIBUS
Example 08:
Read parameters from the IM of the ET200S FC via PROFIBUS
Example 09:
Read parameters from the MICROMASTER 420 via PROFIBUS
Example 10:
Read parameters from the MICROMASTER 440 via PROFIBUS
By means of the PROFINET sample projects 01, 02 and 03 reading and writing
parameters is explained in detail step by step.
The error buffer of the Control Unit CU240S PN is read-out in example 01:
Parameter r0947 last error message and parameter r0949 error value.
In example 02, individual parameters of the Control Unit CU240S PN are read-out -
such as firmware version (r0018), frequency setpoint (r0020), frequency actual
value (r0021), output voltage (r0025), output current (r0027) and others (a total of
23 parameters).
Parameter P1082 (maximum frequency) is written to in example 03. The parameter
value is changed from the default value of 50.00 Hz to 100 Hz.
The possibility of controlling the frequency inverter is realized in all three examples.
In Chapter 2 of the application you will obtain an overview of the components being
used (hardware and software components).
In Chapter 3 information is provided as to how you can connect all of the Ethernet
nodes (devices connected to Ethernet) in PROFINET. Here you will be shown how
you assign IP addresses and PROFINET names to PROFINET nodes (devices
connected to PROFINET).
In Chapter 4 a description is provided on how you can create the hardware
configuration of the network in the SIMATIC Manager (HW Config).
In Chapters 5, 6 and 7 a description is given on which blocks you require to read
and write parameters - and how you create these. A description is also provided on
how you can control the read / write process.
Information and instructions are given in Chapter 8 on reading and writing
parameters of PROFIBUS-capable CUs of the SINAMICS G120 and SINAMICS
1 Application description


Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 7

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

G120D frequency inverters and the IM of ET200S FC and ET200pro FC using
SFB52 & SFB53 via PROFIBUS.



2 Components required
2.1 Hardware components

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 8

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

2 Components required
2.1 Hardware components
Table 2-1 Hardware components
Component Type
Order No.
[MLFB]/orderi ng dat a
No. Manufact urer
S7 contr ol
Power supply PS307 5A 6ES7307-1EA00-0AA0
1
1 SIEMENS
S7-F CPU CPU 317F-2 PN/DP 6ES7317-2FK13-0AB0
2
1
Memory Card MMC 8 MB 6ES7953-8LP11-0AA0
3
1
Ethernet Switch Scalance X206-1 6GK5206-1BB10-2AA3 1
Drive
SINAMICS G120 Control Unit CU240S PN 6SL3244-0BA20-1FA0
4
1 SIEMENS
SINAMICS G120 Power Module PM240 6SL3224-0BE13-7UA0 1
Ethernet Cable 6m PROFINET 6XV1870-2B 1
Plug connector, RJ 45 PLUG 180 RJ 45 6GK1901-1BB10-2AA0 5
Plug connector, RJ 45 PLUG 145 RJ 45 6GK1901-1BB30-0AA0 1
Motor 3-phase induction motor 1LA7060-4AB10 1
Motor cable, 1.5m Motor cable 6ES7194-1LA01-0AA0
4
1
Line supply feeder cable Line supply feeder cable - 1 -
TCP/IP network
Network adapter USB/PCMCIA LAN Adapter - 1 -

NOTE The functionality was tested using the specified hardware components. Similar
products can be used that however deviate from the list above. In such a case
please be aware that possible changes may be required to the code used for this
example (e.g. other addresses may have to be set).


2.2 Software component
Table 2-2 Software components
Component Type
Order No. [MLFB] /
orderi ng dat a
No. Manufact urer
SIMATIC STEP 7 V5.5 +SP3
6ES7810-4CC10-0YA5
Downloads by
Entry ID 68015276
1
SIEMENS
GSDML files for PROFINET PROFINET files for SINAMICS
G120 FW 3.0
Downloads by
Entry ID 26641490
1


1
no longer available, substitute: 6ES7307-1EA01-0AA0;
2
only as spare part available, substitute: 6ES7317-2FK14-0AB0
3
no longer available, substitute: 6ES7953-8LP31-0AA0;
4
only as spare part available;
3 Structure of the PROFINET and editing Ethernet nodes
3.1 Connecting Ethernet nodes

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 9

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

3 Structure of the PROFINET and editing
Ethernet nodes
3.1 Connecting Ethernet nodes
The PROFINET must first be configured.
Connect your PG/PC to the Ethernet via a network adapter / a network card
(USB/PCMCIA LAN adapter/card).
Connect all Ethernet nodes as shown in Fig. 3-1.


Figure 3-1 Structure of the PROFINET
3.2 Setti ng the PG/PC Interface
Open the SIMATIC Manager and create a new project.
Set the PG/PC interface by pressing on the button " Options -> Set PG/PC
Interface" in the menu.
Select your network adapter for the TCP/IP network from the list.

NOTE It is very important that in this case you select TCP/IP (Auto)!


3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 10

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 3-2 Setting the PG/PC interface

Acknowledge the alarm " The following access path(s) was (were) changed:
S7ONLINE (STEP 7) => TCP/IP(Auto) -> D-Link DUB-E100 USB2" with " OK".


Figure 3-3

This means that the Ethernet interface of your PG/PC can be accessed from STEP
7.

3.3 Editi ng Ethernet Node
As a next step, you must enter the IP addresses as well as the PROFINET device
names of all of the nodes (devices connected to PROFINET). These settings are
made in the dialog box " Edit Ethernet Node" .
In the SIMATIC Manager menu, press on the button "PLC -> Edit Ethernet
Node"


3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 11

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 3-4

The " Edit Ethernet Node" window opens.


Figure 3-5

Here, you can assign an IP address and IP parameter to a module - either for the
first time or again.
3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 12

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

The module can then be accessed via the IP address set here - for example to load
configuring data - or also for diagnostics.
Here you can also assign PROFINET names to all PROFINET IO devices.

Prerequisites
In order that you can configure the IP addresses or assign names as described
here, the module must be able to be accessed online; this means the following:
The connection to the Ethernet LAN must have been established;
The Ethernet interface of your PG/PC must be able to be accessed from STEP
7 (set the access point for the IE module in the PG/PC to S7ONLINE);
The nodes must be in the same Ethernet subnet as the PG itself.

Setting the IP configuration
Proceed as follows to set the IP configuration:

1. To start, use the " Browse" button to determine the devices that can be
accessed via MAC addresses - or enter the MAC address that you know.
2. In the dialog box that is then displayed after the network browse (search),
select an Ethernet node from the list.


Figure 3-6 Browse network

3. Set the IP configuration in the dialog box " Edit Ethernet Node" that is
displayed:
- Select " Use IP parameters"
- Enter the IP address
- Enter the Subnet mask
- As gateway, select: " Do not use router"

3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 13

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 3-7 Setting and assigning the IP configuration

4. Press the button " Assign IP Configuration".

Assign device name

The next step is to assign a name to the Ethernet node.
Proceed as follows:
- Enter a name
- Press the " Assi gn Name" button to transfer the device names into the device
itself.

3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 14

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 3-8 Assign device name

Observe the following restrictions when assigning names:
The name is limited to a total of 240 characters (letters, numbers, hyphen
or point [period]).
A name component within the device name - i.e. a string of characters
between two points [periods] - may be a maximum of 63 characters long.
No special characters such as umlauts, brackets, underscore, backslash,
blank etc. The only special character that is permitted is a hyphen.
It is not permissible that the device name starts with the "-" character - and
it must also not end with this character.
The device name may not have the structure n.n.n.n (n =0...999).
The device name may not start with the string "port-xyz-" (x,y,z =0...9).

NOTICE A hyphen may not be used when assigning a name to Control Units CU240xx.


Example:
[name from the abbreviation].[name of the IO system]

The device name must be unique in the Ethernet subnet (PROFINET IO system).
Help
3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 15

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Help
More information on processing Ethernet nodes can be taken from the Help for
SIMATIC Manager, by pressing the " Help" button in the dialog box " Edit Ethernet
Node".

Make the settings for al l Ethernet nodes
Carry-out all of the steps to set the IP configuration and assign names to all of the
nodes (devices) connected in the network (CPU, SCALANCE X206-1, CU240S
PN).
The window used to edit the Ethernet nodes can then be closed.

Here are the settings for the following Ethernet nodes as example:
CPU:
IP address =192.168.0.1
Subnet mask =255.255.255.0
Device name =pn-io

SCALANCE X206-1:
IP address =192.168.0.3
Subnet mask =255.255.255.0
Device name =SCALANCEX206

CU240S PN:
IP address =192.168.0.35
Subnet mask =255.255.255.0
Device name =cu240spn
3 Structure of the PROFINET and editing Ethernet nodes
3.3 Editing Ethernet Node

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 16

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 3-9 Settings for the CU240S PN
4 Configuring HW Config
4.1 Configuring the SIMATIC station

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 17

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4 Configuring HW Config
4.1 Confi guri ng the SIMATIC stati on
Proceed as follows:
Open HW Config,
Insert the rack RACK-300 for SIMATIC-300, and
Set-up the SIMATIC station (power supply and CPU).

4.2 Creati ng the Ethernet subnet
When you insert the CPU the window for the settings of the Ethernet
interface opens.
Proceed as follows:
Set the IP address for the CPU that you had assigned to it (192.168.0.1).
Enter " 255.255.255.0" as subnet mask.
Select as gateway: "Do not use router".
Press the button " New".


Figure 4-1


The " Properties New subnet Industrial Ethernet" window opens. Here, you
can assign a name to the subnet or leave the default setting.
Close the window with " OK".
4 Configuring HW Config
4.3 Configuring the frequency inverter

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 18

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d



Figure 4-2

Select the subnet that you created and close the window with " OK" .


Figure 4-3



4.3 Confi guri ng the frequency i nverter

Prerequisite
The correct GSDML file must have been installed in order to ensure accessing the
Control Unit CU240S PN via PROFINET. Always use the GSDML file which
4 Configuring HW Config
4.3 Configuring the frequency inverter

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 19

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

belongs to your CU type resp. CU order number (PROFINET GSDML files for
SINAMICS G120).

Installing the GSDML file
Install the PROFINET GSDML file via the menu item "Options -> Install GSD
File" of HW-Config.

After you have installed the PROFINET GSDML file the corresponding files appear
in the HW Catalog under the "Standard Profile" in the folder "PROFINET IO >
Drives > SINAMICS > GSD" .

Setti ng-up the frequency inverter
Proceed as follows:
Select the SINAMICS G120 CU240S PN frequency inverter and drag this
to the Ethernet bus.
Select standard telegram 1 and locate this in the first free slot in the lower
section of the window.


Figure 4-4

Double click on the frequency inverter. The " Properties SINAMICS-
G120" window opens.

+
Double click
4 Configuring HW Config
4.3 Configuring the frequency inverter

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 20

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 4-5

Assign the name to the frequency inverter that you allocated to it when
editing the Ethernet nodes (cu240spn).
Press the " Ethernet" button. The " Properties Ethernet interface
SINAMICS-G120" opens.


Figure 4-6

Set the IP address that you assigned when editing the Ethernet nodes of
the CU240S PN (192.168.0.35).
Close both of the windows with " OK".

4 Configuring HW Config
4.3 Configuring the frequency inverter

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 21

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 4-7

Double click on the value of the Parameter Access Point (PAP). A dialog
box then opens.
Enter the PAP address in the address tab card or accept the address that
the system offers. This address must correspond to the address that is
used for the DS47 parameter transfer.

NOTE In this example, the default setting for the PAP address is 8183 dec =1FF7
hex. This address is used again when generating the read and write requests
(calling SFB52 and SFB53).


Save and compile your configuration by pressing on the " Save and
Compile" button.
Close HW-Config.

5 Preparing the project
5.1 Creating the request and response data set

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 22

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5 Preparing the project
The next step is to prepare the project for reading and writing the parameters of the
CU240S PN - i.e. generating and/or copying all of the blocks required.
All of the steps described up until now - together with those in this Chapter - apply
to all of the following examples - however with some differences when reading and
writing parameters.
A description is provided in Chapters 5, 6 and 7 as to which blocks are required to
read and write parameters and how these are generated. A description is also
given as to how you control the read/write process.

NOTE All of the blocks described below (OB1, DB1, DB2, DB3, DB4, SFB52, SFB53)
and the variable table can be copied from the project example.



5.1 Creati ng the request and response data set
Reading parameters is realized using a request and a response data set.
Writing to parameters is realized by just using a request data set.
Please proceed as follows to create the request / response data set:
In the SIMATIC Manager menu press on the button " Insert -> S7 Block ->
4 Data Bl ock". The dialog box " Properti es Data Block" is displayed.

Figure 5-1 Generating data blocks



Assign a name to the block (e.g. DB1 and DB2).
Set the block type to " Global-DB" .
Assign a symbolic name to the block (e.g. Request_DB to DB1 and
Response_DB to DB2).
Close the dialog box with "OK".
5 Preparing the project
5.2 Copying SFB52 & SFB53 system function blocks

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 23

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d



Figure 5-2


Figure 5-3

NOTE
Only DB1 (Request-DB) has to be generated to write to parameters.
The contents of the blocks are different for all of the examples and are explained
in the next Chapter.


5.2 Copyi ng SFB52 & SFB53 system functi on bl ocks
Read and write requests are sent to the Control Unit CU240S PN using SFB53
"WRREC" (write record).
Responses are received from the Control Unit CU240S PN using the SFB52
"RDREC" (read record).
5 Preparing the project
5.3 Generating instance data blocks

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 24

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

This means that both SFBs are required to read parameters, but only the SFB53
when writing to parameters. The reason for this is that when reading, the read
request is first sent to the CU and then the response is received back from the CU.
When writing, only the write request is sent to the CU and a response is not
required.

Proceed as follows:
Open the standard library in SIMATIC Manager.


Figure 5-4 Copying system function blocks

Copy blocks SFB53 and SFB52 from the " Standard Library -> System
Function Bl ocks -> Bl ocks" folder if you are reading parameters or only
the SFB53 if you wish to write to a parameter.
Insert the copied blocks into the block folder in your project.

5.3 Generating instance data bl ocks
Instance data blocks must be generated for SFB52 & SFB53. These instance data
blocks are assigned a call for SFB52 or SFB53.
Proceed as follows to generate the instance data blocks:
In the SIMATIC Manager menu press on the " Insert -> S7 Block -> 4 Data
Block" button. The " Properti es Data Block" dialog box then opens.

5 Preparing the project
5.3 Generating instance data blocks

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 25

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 5-5 Instance data block for SFB52

Assign a name to the block (e.g. DB3 and DB4).
Set the block type to " Instance DB" .
For every instance block select for which SFB this block is to be generated
(DB3 for SFB52, DB4 for SFB53).
Assign a symbolic name to the block (e.g. InstanceDB_SFB52 for DB3
and InstanceDB_SFB53 for DB4).
Close the dialog box with " OK".


Figure 5-6 Instance data block for SFB53

NOTE
When writing to parameters, only the instance block for SFB53 has to be
generated.
The contents of the instance blocks are automatically generated and do not have
to be changed.

6 Reading parameters
6.1 Example 1: Reading-out error message (r0947) and the error value (r0949)

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 26

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6 Reading parameters
Two examples for reading parameters are explained in this Chapter.
In the first example, the error buffer of Control Unit CU240S PN is read-out:
Parameter r0947 last error message and parameter r0949 error value.
In the second example, individual parameters of the Control Unit CU240S PN are
read-out - such as the firmware version (r0018), frequency setpoint (r0020),
frequency actual value (r0021), output voltage (r0025), output current (r0027) and
others (a total of 23 parameters).
The possibility of controlling the frequency inverter is realized in both of these
examples.

6.1 Exampl e 1: Readi ng-out error message (r0947) and the
error val ue (r0949)
In the first example, 8 indices of parameter r0947 (last error message) are read-out
and also 8 indices of parameter r0949 (error value).

6.2 Example 1: Generating the request data set (DB1) to
read the parameters


Figure 6-1 Request data set (DB1) to read parameters

6 Reading parameters
6.2 Example 1: Generating the request data set (DB1) to read the parameters

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 27

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.2.1 Example 1: Generating the response data set (DB2) for a response

Figure 6-2 Response data set (DB2) for a response

6.2.2 Example 1: Controlling the drive (network 1 of OB1)

Control word 1 (STW1) and the main setpoint (HSW) are sent to the drive via the
PROFINET interface. Status word 1 (ZSW1) and the main actual value (HIW) are
received from the drive.
The drive is started by sending the typical control word 047E, followed by 047F
(edge of bit 0: ON). In order to stop the drive, word 047E should be sent to the
drive (edge of bit 0: OFF). The control word is sent together with process data word
1 (PZD1) that should be specified in the variable table VAT_1 (bit memory word
MW0).


Figure 6-3 Text and comments regarding the network 1

Status word 1 (ZSW1) is received from the drive (PZD1) and is transferred into the
bit memory word MW4. The MW4 can be taken from variable table VAT_1.
6 Reading parameters
6.2 Example 1: Generating the request data set (DB1) to read the parameters

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 28

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

The main setpoint is sent, together with PZD2 to the drive - and the main actual
value is received from the drive in PZD2. The main setpoint should be specified in
the variable table VAT_1 (bit memory word MW2). The response - the main actual
value - is saved in the MW6 and can be taken from the variable table.
The frequency setpoint and actual value are normalized so that 4000(hex)
corresponds to 50Hz. The highest value that should be sent is 7FFF. The
normalization frequency (reference frequency) can be modified in P2000 (default,
50Hz).


Figure 6-4 Controlling the drive

6.2.3 Example 1: Sending a read request to the drive (DB1)
Request DB1 to read is sent in network 2 of the OB1.


Figure 6-5 Text and comments on network 2

NOTE
Here, it is important to assign the variable ID to the PAP address from HW-
Config.
The length of the RECORD variable cannot be greater than the length of the
LEN variable. Please use the same length for these variables.


Enter STW1
Enter HSW
Read-out ZSW1
Read-out HIW
6 Reading parameters
6.2 Example 1: Generating the request data set (DB1) to read the parameters

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 29

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.2.4 Example 1: Receiving a response from the drive (writing into DB2)
Parameters are read-out (writing the data that have been read-out into DB2) is
realized in network 3 of the OB1.


Figure 6-6 Text and comments on network 3

NOTE
Here, it is important to assign the variable ID to the PAP address from HW-
Config.
The length of the RECORD variable may not be greater than the length of the
MLEN variable. Please use the same length for these variables.



6.2.5 Example 1: Controlling the read process
The read process is controlled using variable table VAT_1. Data about how the
process is proceeding, about errors that occur while processing the function, and
data that have been read-out can be taken from the variable table:
1. The write request ("Read parameter") is sent to the drive using bit memory
M8.0.
Enter a value of 1 (true) to start the write request. The request should then be
ended. Send the value 0 (false) to end the request.
2. Bit memory M8.1 indicates whether the write request is running: 1 active, 0
inactive.
3. Memory bit M14.2 indicates whether an error occurred while processing the
function.
4. The bit memory - double word MD10 contains an error code. Please refer
"Help on system functions / function blocks" for a description of all errors.
5. The read request is sent to the drive using bit memory M8.2. Enter a value of 1
to start the read request. Then end the request using value 0.
6. Bit memory M8.3 indicates whether the read request is running: 1 active, 0
inactive.
7. Bit memory M16.2 indicates whether an error occurred while processing the
function.
6 Reading parameters
6.2 Example 1: Generating the request data set (DB1) to read the parameters

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 30

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

8. Bit memory - double word MD18 contains an error code. Refer to the "Help on
system functions / function blocks" for a description of all errors.
9. The last 8 errors from parameter r0947 are displayed here.
10. The last 8 error values from parameter r0949 are displayed here.



Figure 6-7 Controlling the read process

1
2
3
4
5
6
7
8

9
10
6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 31

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.3 Exampl e 2: Readi ng-out the indi vidual parameters of
the CU240S PN
In this example, individual parameters of the Control Unit CU240S PN are read-out
- such as the firmware version (r0018), frequency setpoint (r0020), frequency
actual value (r0021), output voltage (r0025), output current (r0027) and others
(refer to the following table).
Table 6-1
Parameter Meaning
r0018 Firmware version
r0020 Frequency setpoint before RFG
r0021 Actual filtered frequency
r0022 Actual filtered rotor speed
r0024 Actual filtered output frequency
r0025 Actual filtered output voltage
r0027 Actual filtered output current
r0203 Actual inverter type
P0304[0] Rated motor voltage
r0030 Act. filtered current Isq
r0031 Actual filtered torque
r0032 Actual filtered power
r0035[02] Actual motor temperature (DDS0DDS2)
r0037[0] Inverter temperature [C], Measured heat sink temperature
r0037[1] Inverter temperature [C], Total Chip J unction Temperature
r1024 Actual fixed frequency
r1050 Actual Output frequency of the MOP
r1078 Total frequency setpoint
r1079 Selected frequency setpoint
r1242 Switch-on level of Vdc-max
r1246[0] Switch-on level kin buffering
r1538 Upper torque limit (total)
r1539 Lower torque limit (total)
r1801[0] Pulse frequency

6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 32

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.3.1 Example 2: Generating the request data set (DB1) to read parameters

Figure 6-8 Request data set (DB1) to read parameters

6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 33

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 6-9 Request data set (DB1) to read parameters (continued)


6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 34

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.3.2 Example 2: Generating the response data set (DB2) for response

Figure 6-10 Response data set (DB2) for response
6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 35

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 6-11 Response data set (DB2) for response (continued)

6.3.3 Example 2: Controlling the drive (network 1 of OB1)
Refer to Section 5.1.3 of example 1.

6.3.4 Example 2: Sending a read request (DB1) to the drive
Request DB1 to read is sent in network 2 of the OB1.

6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 36

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Figure 6-12 Text and comments on network 2

NOTE
Here, it is important to assign the variable ID to the PAP address from HW-
Config.
The length of the RECORD variable cannot be greater than the length of the
LEN variable. Please use the same length for these variables.


6.3.5 Example 2: Receiving a response from the drive (writing into DB2)
Parameters are read-out (writing data that have been read-out to DB2) in network 3
of OB1.


Figure 6-13 Text and comments on network 3

NOTE
Here, it is important to assign the variable ID to the PAP address from HW-
Config.
The length of the RECORD variable may not be greater than the length of the
MLEN variable. Please use the same length for these variables.

6 Reading parameters
6.3 Example 2: Reading-out the individual parameters of the CU240S PN

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 37

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


6.3.6 Example 2: Monitoring the read process
In this example, parameters are continually read-out. Further, the diagnostic and
status information is shown while reading as well as the parameters that are read
out.


Figure 6-14 Diagnostic and status information


Figure 6-15 Read-out parameters
7 Writing to parameters
7.1 Example 3: Writing to parameter P1082 (maximum frequency)

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 38

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

7 Writing to parameters
7.1 Exampl e 3: Writing to parameter P1082 (maximum
frequency)
In this example, parameter P1082 (maximum frequency) is written to. The
parameter value is changed from the default value 50.00 Hz to 100 Hz.
A possibility of controlling the frequency inverter is also realized in this example.

7.1.1 Example 3: Generating the request data set (DB1) to write to
parameter P1082

Figure 7-1 Request data set (DB1) to write parameters

NOTE For MICROMASTER 4 and SINAMICS G120 frequency converters with Control
Units CU240S up to firmware version V3.2x and ET200S FC / ET200pro with
V3.x only two codes are used for the format:
- 42: for all unsigned16 and integer16 ( =16 bit, single word) parameters,
- 43: for all unsigned32, integer32 and floating point ( =32 bit, double word)
parameter.

For SINAMICS G120 frequency converters with Control Units CU230P-2,
CU240B-2 and CU240E-2 from firmware version V4.2 and higher, codes for the
format should be used according to the subsequent table.


7 Writing to parameters
7.1 Example 3: Writing to parameter P1082 (maximum frequency)

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 39

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Datatype Value
Integer 8 02
Integer 16 03
Integer 32 04
Unsigned8 05
Unsigned16 06
Unsigned32 07
Floating point 08
Zero (without values as positive sub-answer to
a write request
40
Byte 41
Word 42
Double word 43
Error 44
Others See PROFIdrive -profile

NOTE
Information about this format is provided in the SINAMICS G120 CU240S
operating instructions in Chapter 6.3 Non-cyclic communication, on Page 142.
Link: http://support.automation.siemens.com/WW/view/en/27069930



7.1.2 Example 3: Controlling the drive (network 1 of OB1)
Refer to Section 5.1.3 of example 1.


7.1.3 Example 3: Sending a write request (DB1) to the drive
Request DB1 to write is sent in network 2 of OB1.


Figure 7-2 Text and comments on network 2

7 Writing to parameters
7.1 Example 3: Writing to parameter P1082 (maximum frequency)

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 40

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

NOTE
Here, it is important to assign the variable ID to the PAP address from HW-
Config.
The length of the RECORD variable cannot be greater than the length of the
LEN variable. Please use the same length for these variables.



7.1.4 Example 3: Controlling the write process
The write process is controlled using the variable table VAT_1. Data about how the
process is progressing, about errors that occur while the function is being
processed, can be taken from the variable table:
1. The write request ("Write parameter") is sent to the drive using bit memory
M8.0.
Enter a value of 1 (true) to start the write request. The request should then be
ended. Send a value of 0 (false) to end the request.
2. Bit memory M8.1 indicates whether the write task is running: 1 active, 0
inactive.
3. Bit memory M14.2 indicates whether an error occurred while processing the
function.
4. The bit memory - double word MD10 contains an error code. Please refer to
"Help on system functions / function blocks" for a description of all errors.


Figure 7-3 Controlling the write process

1
2
3
4
8 Reading and writing parameters from/to the frequency inverters via PROFIBUS using SFB52
& SFB53


Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 41

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

8 Reading and writing parameters from/to
the frequency inverters via PROFIBUS
using SFB52 & SFB53
The SFB52 & SFB53 standard S7 blocks can also be used to read and write
from/to parameters of the PROFIBUS capable Control Units of the SINAMICS
G120/G120D and Interface Modules of the ET200S FC and ET200pro via
PROFIBUS.

NOTE
The structure of the data and instance data blocks as well as the procedure for
their generation remains precisely the same. This means that all data and
instance data blocks from the project examples can be used to read and write
parameters of the PROFIBUS capable Control Unit of the SINAMICS
G120/G120D and Interface Modules of the ET200S FC and ET200pro via
PROFIBUS.
Changes only have to be made in the HW-Config and in the OB1 organizational
block of the project.


Changes in HW-Config:
1. The PROFIBUS system must be configured instead of the PROFINET system:
Configure the PROFIBUS interface
Set-up a frequency inverter (GSD file for DP CU/IM and telegram)

2. The I/O address from HW-Config is used to transfer the DS47 parameters.


Figure 8-1


8 Reading and writing parameters from/to the frequency inverters via PROFIBUS using SFB52
& SFB53
8.1 Reading and writing parameters of the ET200S FC and ET200pro

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 42

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Changes to OB1:
The I/O address must be converted into the hexadecimal format and the variable
ID assigned (e.g. 256 dec =100 hex).


Figure 8-2


Figure 8-3

Also read the appropriate FAQ on the subject of "Reading and writing from/to
parameters of a SINAMICS G120":
How can I use SFC58 and SFC to read parameters from my G120?


8.1 Reading and writi ng parameters of the ET200S FC and
ET200pro

Please carefully note that the parameters lists of the SINAMICS G120/G120D
frequency inverter differ from those of the ET200S FC and ET200pro.
The ET200S FC and ET200pro frequency inverters for instance, do not have
parameters r1024 (actual fixed frequency), r1050 (CO: Actual output frequency of
the MOP), r1242 (switch-in level, Vdc-max controller) and r1246 (switch-in level,
kinetic buffering) that are read-out of the CUs of the SINAMICS G120/G120D
frequency inverters in the second example.
These or other parameters that are not included in the ET200S FC and ET200pro
frequency inverters must be removed from the request and response data sets or
replaced by other parameters.
8 Reading and writing parameters from/to the frequency inverters via PROFIBUS using SFB52
& SFB53
8.1 Reading and writing parameters of the ET200S FC and ET200pro

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 43

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

NOTICE
If a parameter of a frequency inverter that does not exist i n the frequency
inverter i s requested, thi s results in problems when reading-out parameter
values.
The value of the requested parameter and all values of the parameters
following the parameter are then incorrectl y shown.
This i s the reason that the second example for ET200S FC and ET200pro
cannot be used.
Separate project examples have been generated for ET200S FC and
ET200pro frequency inverters. In thi s project example, the parameters that
are not avail able have been replaced by others. A total of 24 parameters i s
read-out. You can take these from the following table.
Parameters for MM440 and ET200S FC (table 8-4) are corresponding, i n
case of MM420, 18 parameters are sel ected (table 8-5).



Table 8-1: Parameter for MM440 and ET200S FC
Parameter Meaning
r0018 Firmware version
r0020 Frequency setpoint before RFG
r0021 Actual filtered frequency
r0022 Actual filtered rotor speed
r0024 Actual filtered output frequency
r0025 Actual filtered output voltage
r0027 Actual filtered output current
r0203 Actual inverter type
P0304[0] Rated motor voltage
r0030 Act. filtered current Isq
r0031 Actual filtered torque
r0032 Actual filtered power
r0035[02] Actual motor temperature (DDS0DDS2)
r0037[0] Inverter temperature [C], Measured heat sink temperature
r0037[1] Inverter temperature [C], Total Chip J unction Temperature
P1080[0] Min. frequency
P1082[0] Max. frequency
r1078 Total frequency setpoint
r1079 Selected frequency setpoint
P2000[0] Reference frequency
P2001[0] Reference voltage
P2002[0] Reference current
P2003[0] Reference torque
P2004[0] Reference power
r1801[0] Pulse frequency

8 Reading and writing parameters from/to the frequency inverters via PROFIBUS using SFB52
& SFB53
8.2 Example for writing several parameters for CU240S

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 44

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Table 8-2: MM420 Parameter
r0018
Firmware version
r0020
Frequency setpoint before RFG
r0021
Actual filtered frequency
r0022
Actual filtered rotor speed
r0024
Actual filtered output frequency
r0025
Actual filtered output voltage
r0027
Actual filtered output current
r0203
Actual inverter type
P0304
Rated motor voltage
r0037
Inverter temperature [C]
P1080
Min. frequency
P1082
Max. frequency
r1078
Total frequency setpoint
r1079
Selected frequency setpoint
P2000
Reference frequency
P2001
Reference voltage
P2002
Reference current
r1801
Pulse frequency


8.2 Exampl e for wri ti ng several parameters for CU240S
In this example, the parameters of the Control Unit CU240S are written:

Parameter Si gni ficance Val ue, factory setting New value
P0731 Function of digital output 0 r52.3 r52.1
P0732 Function of digital output 1 r52.7 r52.3
P0733 Function of digital output 2 0 r52.7
P0400 Selects the encoder type 0 12
P1000 Selects the frequency setpoint 6 26
P1058 J OG frequency 5.00 [Hz] 8.00 [Hz]
P1060 J OG ramp-up time 10.00 [s] 3.00 [s]
P1061 J OG ramp-down time 10.00 [s] 3.00 [s]
P1082 Maximum frequency 50.00 [Hz] 100.00 [Hz]
P1120 Ramp-up time 10.00 [s] 5.00 [s]
P1121 Ramp-down time 10.00 [s] 5.00 [s]
P1135 OFF3 ramp-down time 5.00 [s] 3.00 [s]

8 Reading and writing parameters from/to the frequency inverters via PROFIBUS using SFB52
& SFB53
8.3 Example for reading several parameters for CU230P-2

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 45

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

8.3 Exampl e for readi ng several parameters for CU230P-2
In this example, the following parameters are read out of the Control Unit
CU230P-2:

Parameter Si gni ficance
r0018 Firmware version
r0020 Speed setpoint, smoothed
r0021 Speed actual value, smoothed
r0063.0 Speed actual value, unsmoothed
r0024 Output frequency, smoothed
r0025 Output voltage actual value
r0027 Output current actual value
r0203 Power unit, actual type
P0304 Rated motor voltage
r0078 Torque-generating current
r0031 Torque actual value, smoothed
r0032 Active power actual value, smoothed
r0035 Motor temperature
r0039 Energy usage
P1080 Minimum speed
P1082 Maximum speed
r1078 Total effective setpoint
P2000 Reference speed
P2001 Reference voltage
P2002 Reference current
P2003 Reference torque
r2004 Reference power
r1801 Pulse frequency actual value

NOTE
A value of "1" must be written to variable Drive_ID/Axis ( axis) in the task data
block.


8 Reading and writing parameters from/to the frequency inverters via PROFIBUS using SFB52
& SFB53
8.4 Example for writing several parameters for CU230P-2

Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 46

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

8.4 Exampl e for wri ti ng several parameters for CU230P-2
In this example, the following parameters of Control Unit CU230P-2 are written to:
Parameter Si gni ficance Val ue, factory setting New value
P0730 Function of digital output 0 r52.3 r52.1
P0731 Function of digital output 1 r52.7 r52.3
P0732 Function of digital output at 2 r52.2 r52.7
P0771.0 Analog output 0 0 r21.0
P0771.0 Analog output 1 0 r27.0
P1058 J ogging 1 speed setpoint 150.000 [rpm] 200.000 [rpm]
P1059 J ogging 2 speed setpoint -150.000 [rpm] -250.000 [rpm]
P1080 Minimum speed 0.000 [rpm] 100.000 [rpm]
P1082 Maximum speed 1500.000 [rpm] 3000.000 [rpm]
P1120 Ramp-up time 10.00 [s] 5.00 [s]
P1121 Ramp-down time 30.000 [s] (PM230) /
10.000 [s] (PM240, PM250,
PM260)
5.00 [s]
P1135 OFF3 ramp-down time 5.00 [s] 3.00 [s]

NOTE A value of "1" must be written to the variable Drive_ID/Axis (axis) in the task
data block.




9 Related literature


Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 47

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

9 Related literature
Table 9-1
Topic Ti tl e / Li nk
\1\ Siemens Industry
Online Support
http://support.automation.siemens.com
\2\ Download page of
this entry
http://support.automation.siemens.com/WW/view/en/29157692

\3\ FAQ
How can I use SFC58 and SFC59 to read and write
parameters from my G120?
http://support.automation.siemens.com/WW/view/en/23990917
\4\ FAQ
How do I read / write parameters using PROFIBUS on
the MICROMASTER 4 and CU240S/D DP/DP-F and
PROFINET on the CU240S/D PN/PN-F?
http://support.automation.siemens.com/WW/view/en/8894584
\5\ FAQ
How do I read and write parameters to the MM420 using
USS?
http://support.automation.siemens.com/WW/view/en/5280592
\6\ Manuals
SINAMICS G120
http://support.automation.siemens.com/WW/view/en/22339653/133300
\7\ Manuals
SINAMICS G120D
http://support.automation.siemens.com/WW/view/en/25021636/133300
\8\ Manuals
SIMATIC ET200
http://support.automation.siemens.com/WW/view/en/18685865/133300
\9\ Download Startdrive and DriveLib
http://support.automation.siemens.com/WW/view/en/68034568


10 Contact
Siemens AG
Industry Sector
I DT MC PMA APC
Frauenauracher Strasse 80
91056 Erlangen
Germany
mailto: tech.team.motioncontrol@siemens.com


11 History


Acyclic reading and writing parameters of the frequency inverters via PROFINET and PROFIBUS
Item-ID: 29157692, Version V1.4, 01/2014 48

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
4

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

11 History
Table 11-1
Versi on Date Modifications
V1.0 04/2008 First edition
V1.1 10/2008 Expanded for ET200S FC and ET200pro: The text has been
revised, Chapter 8 "Reading and writing parameters of the
ET200S FC and ET200pro frequency inverters" has been
inserted, project examples have been generated for ET200S
FC and ET200pro frequency inverters
V1.2 12/2009 Insert Table 8-5 and MM4 projects
V1.3 10/2010 Chapter 8 revised
V1.4 01/2014 Link to implementation with S7-1200/1500 in TIA Portal;
editorial revision;

Das könnte Ihnen auch gefallen