http://support.automation.siemens.com/WW/view/en/58820849
Table of Contents
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
Siemens AG 2014 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion 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
Warranty and liability................................................................................................... 2
Table of Contents ......................................................................................................... 3
1 Task ..................................................................................................................... 5
2 Solution............................................................................................................... 6
2.1 Overview of the overall solution ........................................................... 6
2.2 Description of the core functionality ..................................................... 7
2.2.1 Configuring the communication ............................................................ 7
SIMATIC S7-300/400 ........................................................................... 7
SINAMICS G ........................................................................................ 7
2.2.2 Data exchange ..................................................................................... 7
Cyclic process data exchange ............................................................. 8
Acyclic data exchange (parameter access) ......................................... 8
2.3 Hardware and software components used........................................... 9
Sample files and projects ................................................................... 11
3 Setup and Commissioning of the Application .............................................. 13
3.1 Wiring ................................................................................................. 13
3.2 IP addresses and PN names ............................................................. 14
3.3 Settings on the PG/PC ....................................................................... 14
3.4 Settings on the SINAMICS G ............................................................. 14
Siemens AG 2014 All rights reserved
1 Task
The SIMATIC S7-300/400 can be operated as a PROFIBUS master. A SINAMICS
G110M, G120, G120C, G120D or G120P drive can be used as a PROFIBUS slave
and controlled by the SIMATIC S7-300/400.
This application example shows how to configure and commission the SINAMICS
G110M/G120/G120C/G120D/G120P and the SIMATIC S7-300/400 and how to
access process data and parameters.
Figure 1-1
Siemens AG 2014 All rights reserved
MPI, PROFIBUS
or Ethernet
PROFIBUS
Copyright
2 Solution
This application example shows an example of how to connect a SINAMICS
G110M, G120, G120C, G120D or G120P to an SIMATIC S7-300. It uses blocks
you can use directly in your own applications.
Figure 2-1
PC/PG
Ethernet
PROFIBUS
Copyright
USB
(as an alternative to the configuration
Motor via the field bus)
CAUTION This example is only for SINAMICS G110M with FW4.7 and SINAMICS
G110M, G120, G120C, G120D und G120P with FW4.6 or higher.
SIMATIC S7-300/400
In this example, the SIMATIC S7-300/400 is programmed with STEP 7 V5.
In HW Config, the SIMATIC S7 and the slave stations connected via PROFIBUS,
for example the SINAMICS G, are configured and the communication is defined.
One of several telegram types can be selected for data exchange. It is important
that the same telegram type be selected as for the configuration of the SINAMICS
G.
When inserting the SINAMICS G into the SIMATIC project, the I/O addresses to be
used by the SIMATIC S7-300/400 for access to the SINAMICS G are also defined.
SINAMICS G
Siemens AG 2014 All rights reserved
order. It is important that the same telegram type be selected when configuring the
SIMATIC S7-300/400.
Data exchange between the SINAMICS G and the SIMATIC S7-300/400 takes
place in two areas:
Process data,
i.e. control word(s) and setpoint(s) or status word(s) and actual value(s)
Parameter area,
i.e. reading/writing parameter values
Note The two areas, process data area and parameter area, are independent of each
other and can also be used individually.
PC inverter 1 6SL3255-0AA00-2CA0
connection kit -3m can be downloaded and a
standard micro USB cable
can be used as well
Two for the connection
between PG/PC and S7
PROFINET connector 4 6GK1901-1BB10-2AA0 CPU and two for the
optional connection
between S7 CPU and HMI.
PROFINET cable 6XV1840-2AH10
Copyright
Software components
Table 2-7 Software components
Component Qty. Order no. Note
SIMATIC STEP 7 Floating license
1
V5.5 SP4 6ES7810-4CC10-0YA5
STARTER Free download: See /6/
1 6SL3072-0AA00-0AG0
V4.4
WinCC flexibel 6AV6613-0AA51-3CA5
1
Version: 2008 SP3
CAUTION The STARTER sample project is designed for use with the sample
components listed in Table 2-1. If a SINAMICS G with a different rating or
motor is connected without adjusting the respective parameters, the
inverter and/or motor may be damaged or destroyed.
Siemens AG 2014 All rights reserved
Copyright
3.1 Wiring
The figure below shows the hardware configuration of the application.
Figure 3-1
L1
L2
L3
N
PE
24V
0V
+24 V OUT
Siemens AG 2014 All rights reserved
DI 4 1)
F-D
DI 5 L+ M E 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 M
SM323
DI COM 1
PB PN PN CPU 315-2 PN/DP
2)
DI COM 2
GND USB
PB USB cable
is optional.
SINAMICS
Copyright
G120
U2 V2 W2 PE
L+ M PN PN USB
M
Y
SIMATIC Panel PG/PC
KTP600
Notes Always follow the installation guidelines in the SINAMICS G manual (see /7/) and the
SIMATIC manual.
Make sure to enable the bus terminating resistors for the last nodes at the bus end or
to activate the bus terminator for the SINAMICS G120D.
Table 3-1
IP Component Device name
192.168.0.1 S7 CPU S7-CPU
192.168.0.3 KTP600 KTP600
192.168.0.200 PG/PC
Table 3-3
No. Action Remark
1. Connect the SIMATIC S7- You can connect the two devices directly or via a switch.
300/400 to the PG/PC using a
network cable.
2. Start STEP 7.
Siemens AG 2014 All rights reserved
5. Click on “Browse...”.
– Select the CPU and click
on OK.
Enter IP address
192.168.0.1 and network
mask 255.255.255.0 and
click on “Assign IP
configuration”.
In Device name, enter
“s7-cpu” and click on
“Assign Name”.
Exit the dialog with “Close”.
Siemens AG 2014 All rights reserved
Copyright
Notes If you are using a different SINAMICS G or motor, you have to perform the
configuration yourself. In this case, follow the instructions in chapter 6 “Configuration
and Project Engineering”, especially steps 22 and 23.
A SINAMICS GC is used in the following screen shots. Where appropriate, different
names of the other SINAMICS G inverter types are given in the instruction texts.
The SIMATIC S7-300/400 CPU must support data record routing. (CPU 31x with
FW3.x or CPU 41x with FW5.1 or newer), see /9/
Table 3-4
No. Action Remark
1. Open the project.
Double-click on “PG/PC(1)”.
Siemens AG 2014 All rights reserved
Table 3-5
No. Action Remark
1. Use the USB cable to connect the
SINAMICS G to the PG/PC.
Wait until Windows detects the
SINAMICS G (USB mass storage
device).
Copyright
Tabelle 3-6
No. Aktion Anmerkung
1. Go online.
8. Go offline.
9. Make a power reset. Switch off all power supplies of the SINAMICS G and wait
until all LEDs are gone off. Switch on again.
Table 4-1
Terminal Name Function
E 0.0 ON Switches the SINAMICS G on/off,
(for operation, the following must apply: OFF2 and OFF3 =1)
E 0.1 OFF2 0= immediately switches off the motor, drive coasts down
E 0.2 OFF3 0= quick stop, decelerates the motor to a standstill with the OFF3
ramp-down time (P1135)
E 0.3 Ack Rising edge acknowledges pending errors in the SINAMICS G
E 0.4 Rev Direction reversal, the polarity of the setpoint is negated
E 0.5 0 The setpoint is set to 0
E 0.6 n+ The setpoint is increased
E 0.7 n- The setpoint is decreased
Table 4-2
Step Action Note / result
1. Apply 24 V to OFF2(E0.1) and The other required control bits for
OFF3(E0.2). operation are permanently set to 1 by
the program.
2. Apply a pulse (switch on and off) to This acknowledges a possibly pending
Ack (E0.3). error message.
3. Apply a pulse (switch on and off) to The setpoint is set to 0.
0 (E0.5).
4. Apply 24 V to ON(E0.0). The SINAMICS G switches on.
5. Change the setpoint with inputs n+ The motor speed changes.
(E 0.6), n- (E0.7) and 0 (E0.5)
6. Remove the 24 V from ON(E0.0). The SINAMICS G switches off.
Siemens AG 2014 All rights reserved
Copyright
Figure 4-1
Start screen
From all
subordinate screens
From all
subordinate screens Application example Support
Read/write parameters
Copyright
Fault buffer
Quit runtime
The two screens for process data exchange access the idb_Process_Data (DB10)
data block.
Figure 4-2
Siemens AG 2014 All rights reserved
Copyright
The bit commands you can partially specify via the digital input module are
displayed in the 16-bit wide control word.
The current state of the SINAMICS G is shown via the status word that is also 16
bits wide.
Manual mode
The “manual mode” button enables you to activate manual mode of the block.
Instead of the control signals applied to the block, in the example the digital inputs,
switchover to an internal control word that can be specified, for example, via HMI is
performed in this mode. Likewise, an internal setpoint is used instead of the
present setpoint.
This allows easy manual/automatic switchover.
When de(activating) manual mode, control word and setpoint will not be
adjusted. It is therefore possible that the SINAMICS G starts up
automatically or changes the speed when a switchover is performed.
DANGER
In the example, it is thus possible to switch from the digital inputs to operation via
HMI. The set control word bits are then displayed in yellow.
Figure 4-3
Siemens AG 2014 All rights reserved
Copyright
Speed setpoint:
The speed setpoint, in this example set via digital inputs E0.4 to E0.7 (see
Table 4-1), is shown here.
In manual mode, the speed setpoint can be specified directly using the HMI; the
input field is then silhouetted in yellow.
When de(activating) manual mode, control word and setpoint will not be
adjusted. It is therefore possible that the SINAMICS G starts up
automatically or changes the speed when a switchover is performed.
DANGER
Actual values:
The current actual values for speed, current and torque are displayed below the
speed setpoint input.
Current messages:
Current faults and alarms are displayed with the respective number. “0” means that
no fault or alarm exists. If a message is pending, it will be displayed as shown in
Figure 4-4.
Figure 4-4
Tap or click on the message number to show the associated message text.
Figure 4-5
Siemens AG 2014 All rights reserved
Copyright
The message text is displayed as long as you keep the message number pressed.
The two screens for process data exchange access the idb_Parameter_Access
(DB20) data block.
Read/write parameters
Figure 4-6
Siemens AG 2014 All rights reserved
Copyright
Table 4-3
No. Action Remark
1. Use the “Read parameters” and “Write A bright green button indicates the
parameters” buttons to select the selected access type.
access type.
2. Read parameters:
Continue with point 3 of the table.
Write parameters:
When you tap or click on the yellow
input field for the ramp-up/ramp-down
time, a keyboard form opens, where you
can enter the values. Finish the entry
with the return key.
8,0
Siemens AG 2014 All rights reserved
3. Use the “Start” button to start the write The job status specifies how the job
or read job. was completed:
done = done without error
errori = job aborted with error
Note If, after a write job, you want to check the parameters, you have to trigger an
additional read job.
Fault buffer
The screen displays the fault codes of eight current and eight acknowledged faults
that are saved in the SINAMICS G.
Note The values are read from the SINAMICS G using the “Read parameters” function
in Figure 4-6 and saved in the SIMAITC S7-300/400.
When the “Fault buffer” screen is displayed, the data saved in the SIMATIC S7-
300/400 is displayed that can therefore be obsolete.
Figure 4-7
Siemens AG 2014 All rights reserved
Copyright
Tap or click on the message number to show the associated message text.
Figure 4-8
The message text is displayed as long as you keep the message number pressed.
Siemens AG 2014 All rights reserved
Copyright
OB 1 FC 5 “setpoint_
simulation”
“CYCL_EXC”
FB 10 “process data”
DB 10
“idb process data”
DB 100 “write drive
parameter”
DB 103 “answer
DB 20 “idb parameter access” from drive_read”
Siemens AG 2014 All rights reserved
In this area, the process data is sent to the SINAMICS G (e.g., On command
and setpoint) or received (status and actual values)
Parameter access
In this area, the parameters of the SINAMICS G are accessed.
Note The two communication areas, process data and parameter access, are
independent of each other and can also be used individually.
OB 1 FC 5 “setpoint_
simulation”
“CYCL_EXC”
FB 10 “process data”
DB 10
“idb process data”
DB 100 “write drive
parameter”
DB 103 “answer
DB 20 “idb parameter access” from drive_read”
Siemens AG 2014 All rights reserved
Process data contains values that are exchanged between the SIMATIC S7-
300/400 and the SINAMICS G at regular intervals. These values are at least the
control and status word and the setpoint and actual value. Selecting the telegram
type defines the exact length and structure.
Copyright
The “Siemens telegram 352, PZD 6/6” telegram type used in the example
exchanges 6 words in both directions. These words are listed in the following table:
Table 5-1 Siemens “Telegram 352, PZD 6/6” – structure
Transmit direction Receive direction
(from the SIMATIC’s perspective) (from the SIMATIC’s perspective)
Control word Status word
Speed setpoint Current speed (actual speed value)
(Not used) Current electric current
(Not used) Current torque
(Not used) Current alarm
(Not used) Current fault
5.1.1 Accessing process data in the user program of the SIMATIC S7-
300/400
At the start of the cycle, the operating system of the SIMATIC S7-300/400 stores
the (user) data received from the SINAMICS G in the input I/O area of the SIMATIC
S7-CPU and, at the end of the cycle, sends the data stored in the output I/O area
to the SINAMICS G. In the user program, the data can be accessed by reading
from/writing to the I/O area. The address areas used are defined when setting the
hardware configuration. See step 13 in Table 6-1.
I/O access with the SFC 14/15 system functions ensures consistency over the
entire data; therefore, these functions are used in the sample program.
The setpoints and actual values are transferred as normalized values. The
reference values are stored in parameters P2000 to P2006 of the SINAMICS G.
FB20 “Parameter_Access” completely converts the setpoints and actual values.
For this purpose, the reference values for speed, current and torque stored in
parameters P2000, P2003 and P2004 of the SINAMICS must also be entered at
the block input.
Siemens AG 2014 All rights reserved
The following applies: 16384dec = 4000hex = 100%, with 100% referring to the
reference value for the transferred value.
Example:
If P2000 (reference speed or reference frequency) is 1500 1/min and if a speed
of 500 1/min is to be used, then 33% or 5461dec must be transferred.
Copyright
The control and status word has already been defined. The following figures show
the control and status word when selecting the “Siemens telegram 352, PZD 6/6”
telegram type.
Figure 5-3: Control word of the “Siemens telegram 352, PZD 6/6” telegram type
Siemens AG 2014 All rights reserved
Copyright
Note A control word for which all bits are 0 is rejected as invalid by the SINAMICS G.
Therefore, at least bit 10 must always be set.
Figure 5-4 Status word of the “Siemens telegram 352, PZD 6/6” telegram type
Siemens AG 2014 All rights reserved
Copyright
This FB transfers the process data from and to the SINAMICS G. It copies the
essential control and status bits and converts the setpoints and actual values. You
can therefore use it as an interface to the SINAMICS G in your own applications.
Data Initial
Parameter Description
type value
OFF2 BOOL TRUE Immediate STOP (motor coasts down)
OFF3 BOOL TRUE Quick stop (with ramp-down time in
P1153)
Acknowledge BOOL FALSE Pending errors are acknowledged with
a rising edge.
Direction_reversal BOOL FALSE The setpoint polarity can be changed
with this input.
Activate_manual_mode BOOL FALSE Switches the block to manual and
automatic mode.
When FALSE, control word and
setpoint are created from the signals
applied to the block; when TRUE,
control word and setpoint are used
from variables in the instance DB and
can thus, for example, be specified via
HMI.
Speed_setpoint REAL 0.0 Speed setpoint in rev/min
Negative values change the direction of
rotation
Reference_speed_P2000 REAL 1500.0 Reference speed
Siemens AG 2014 All rights reserved
Data Initial
Parameter Description
type value
Actual_fault REAL Code of the currently pending fault
NOTICE To switch on the SINAMICS G, OFF2 and OFF3 must first be set to TRUE;
then the SINAMICS G can be switched on with a positive edge (i.e. the
signal changes from FALSE to TRUE) at ON/OFF1.
FB10 „PZD_G120_Tel_352“ was created in SCL. When compiling, the SCL editor
generates a function block created in STL in the block folder. This block can even
be copied and inserted into your own projects if SCL is not installed.
The SCL source is located in the “Sources” subfolder of the S7 program.
You can export the SCL source using the context menu and then view it with any
text editor.
Figure 5-6
Figure 5-7
Siemens AG 2014 All rights reserved
Copyright
OB 1 FC 5 “setpoint_
simulation”
“CYCL_EXC”
FB 10 “process data”
DB 10
“idb process data”
DB 100 “write drive
parameter”
DB 103 “answer
DB 20 “idb parameter access” from drive_read”
Siemens AG 2014 All rights reserved
Acyclic parameter access takes place parallel to the cyclic process data exchange.
This saves resources as this connection is made only when required, i.e. when a
parameter is to be accessed.
In the SIMATIC S7-300/400, the “Write data record” and “Read data record”
functions must be used for this purpose. Data record 47 must always be used.
Writing data record 47 sends a job to the SINAMICS G. It executes the job and
provides a response. By reading data record 47, the response of the SINAMICS G
is made available in the SIMATIC S7-300/400 and can be evaluated.
Copyright
In the SIMATIC S7-300/400, the SFB 53 “WRREC” and SFB 52 “RDREC” system
function blocks are used to read or write data records.
For the Data record 47 please refer to chap. 3.1.2 in the function manual Fieldbus
systems (/7/).
Note As SFB 53 “WRREC” and SFB 52 “RDREC” cannot be used with the CP342-5,
parameter access is not possible when using this CP.
5.3.1 FB 20 “Parameter_Access”
Figure 5-9
Error list
FB 20 “Parameter_Access” can output the following error codes:
Table 5-4
Error number Description Note
0 No error
8000 DB_No_send and DB_No_rev
are identical. Check the parameterization of FB 20
8001 DB_No_rev or DB_No_send is “Parameter_Access”.
0.
8002 SFC53 “WEREC” returns an In the instance DB, the error code of
error. the SFC is stored in
#WD_REC_STATUS.
8003 SFC52 “RDREC” returns an In the instance DB, the error code of
error. the SFC is stored in
#RD_REC_STATUS.
8004 Send DB is empty (length: 0), In the instance DB, the error code of
does not exist or is faulty. SFC24 “TEST_DB” is stored in
#TEST_DB_1_STATUS. If the code
Siemens AG 2014 All rights reserved
is 0, the DB is empty or
write-protected.
8005 Receive DB is empty (length: In the instance DB, the error code of
0), does not exist or is faulty. SFC24 “TEST_DB” is stored in
#TEST_DB_2_STATUS. If the code
is 0, the DB is empty or
write-protected.
Copyright
Drive error
If an error occurred when processing a job in the SINAMICS G and the error ID
was set in the response, you have to analyze the response DB to determine the
cause of the error.
Function
FB 20 “Parameter_Access” transfers only the selected DBs to or from the
SINAMICS G and checks if the transfer was successful. It also checks if the error
ID has been set in the response of the SINAMICS G.
For the structure of the jobs and responses, please refer to chapter 6.1.5.1 “
Configuring the field bus, PROFIdrive profil for PROFIBUS and PROFINET, acylic
communication“ in the operating instructions (/7/).
Structure
“Parameter_Access” consists of three areas:
Check of the DB_No_xx input parameters.
Network 1
Sequencer that controls the parameter access sequence.
Networks 2 to 10
Call of the Write data record or Read data record system functions.
Network 11
Note Network 1 with the check of the DB_No_xx input parameters can be deleted to
save computing time and memory without impairing the other functions of the
block.
Sequencer
The figure below shows the sequencer of FB 20 “Parameter_Access”. It also
shows the possible transitions between the individual steps.
In the individual states of the sequencer, the following functions are executed:
Table 5-5: Function of the states of FB 20 “Parameter_Access”
State Function
0 Wait for start trigger Waits for a rising edge of the “START” signal.
If it is detected, all output signals are deleted, “BUSY” is set
and step 1 is activated.
1 Start WR_REC The “REQ” signal of SFB 53 “WRREC” is set and step 2 is
activated.
2 Wait for end of Waits until the “busy” signal of SFB 53 “WRREC” returns to
WR_REC 0. Then step 3 is activated.
3 Check result of Checks if the data record was written successfully.
WR_REC If yes, the “REQ” signal of SFB 53 “WRREC” is deleted and
step 4 is activated.
If SFB 53 “WRREC” reports error 16#DF80_B500 (peer not
ready), step 3 is reactivated so that SFB 53 “WRREC”
repeats the job.
If a different error has occurred, the “REQ” signal of SFB 53
“WRREC” is deleted, an internal error bit is set and step 7 is
activated.
4 Start RD_REC The “REQ” signal of FB “RDREC” is set and step 5 is
activated.
Siemens AG 2014 All rights reserved
5 Wait for end of Waits until the “busy” signal of FB “RDREC” returns to 0.
RD_REC Then step 6 is activated.
6 Check result of Checks if the data record was read successfully. If yes, the
RD_REC “REQ” signal of SFB 52 “RDREC” is deleted and step 7 is
activated.
If SFB 52 “RDREC” reports error 16#DE80_B500 (peer not
ready), step 5 is reactivated so that FB “RDREC” repeats the
job.
If a different error has occurred, the “REQ” signal of SFB 52
“RDREC” is deleted, an internal error bit is set and step 7 is
Copyright
activated.
7 Check for errors, Checks if one of the internal error bits is set.
copy outputs If an error bit is set,
– the “ERROR” signal is set,
– the “BUSY” signal is deleted,
– step 0 is activated.
If no error bit is set, the read times are output, the “BUSY”
signal is deleted, the “DONE” signal is set and step 0 is
activated.
Call of the Write data record or Read data record system functions
Once the currently required control bits have been set in the sequencer of FB 20
“Parameter_Access”, the Write data record and Read data record system functions
(SFB 53 “WRREC” and SFB 52 “RDREC”) are called in network 10.
For this purpose, it is initially checked if the DB to be used exists in the SIMATIC
S7 CPU and how long it is. This is used to create an ANY pointer that references to
the data to be sent/received and the SFC is called.
In order to access parameters, a specified job structure must be complied with. The
response of the SINAMICS G also contains a specified response structure.
Note As the structure of the data record to be sent or received depends on the number
of jobs and their numerical format, a generally applicable structure cannot be
used.
Therefore, FB 20 “Parameter_Access” is limited to sending and receiving the
data record. The DBs for the data record to be sent and received must be
created by the user.
The job to access a parameter consists of at least 10 words. Therefore, the job
Siemens AG 2014 All rights reserved
should be put together in a DB. The response of the SINAMICS G also consists of
several words.
A job can contain access to several parameters. As the length of the data to be
transferred per job depends on the number and data types of the SINAMICS G
parameters, no generally applicable structure can be created.
In the example, the ramp-up and ramp-down time (P1120 and P1121) and a part of
the fault memory (P945.x) are accessed. The job to write the parameters is stored
in DB 100 “write_drive_parameters” and the job to read them is stored in
Copyright
DB 101 “read_drive_parameters”.
The respons of the SINAMICS G is copied to DB 102 “answer_from_drive_write” or
DB 103 “answer_from_drive_read”. The structure created in it corresponds to the
structure for read/write parameters successful.
Figure 5-11 DB 100 for writing the ramp-up and ramp-down time (in the figure: 10s and 15 s)
Siemens AG 2014 All rights reserved
Figure 5-13 DB 101 for reading the ramp-up and ramp-down time and 16 values of the fault memory
Siemens AG 2014 All rights reserved
Copyright
Note As the structure of the data record to be sent or received depends on the number
Copyright
The tables below describe what you have to do if you do not want to or cannot use
the sample code and if you want to or have to configure the SINAMICS G and the
SIMATIC S7 CPU yourself.
Table 6-1
Siemens AG 2014 All rights reserved
10. In the catalog, search for your SINAMICS G120. The path in the catalog is as follows:
> PROFIBUS-DP > SINAMICS > SINAMICS G110M
G120
G120C
G120D
Note:
The CU230P-2 DP is in the G120 folder.
Siemens AG 2014 All rights reserved
Copyright
1)
The address must match the
one set on the SINAMICS G.
PROFIBUS Ethernet
6. Click on “New”.
In the dialog that opens,
select only “OK”.
Copyright
– If necessary, confirm
message 2775:809 that
the parameters could not
be adjusted.
Close the dialog with “OK”.
in yellow).
Click on “Save and
Compile”.
If it has been compiled
without errors, open NetPro.
Copyright
16. In HW Config:
Also click on “Save and
Compile”.
Then download the
configuration to the
SIMATIC S7 CPU.
Close HW Config.
19. Go online.
Copyright
of the setpoints/command
sources” step.
In the “Motor” step, enter the
data of the connected motor.
Copyright
32. Go offline.
Siemens AG 2014 All rights reserved
7 References
This list is by no means complete and only provides a selection of useful
information.
Table 7-1
Topic Title / link
/1/ Automating with STEP7 in STL and SCL
Author: Hans Berger
Publisher: Publicis Publishing
ISBN: 978-3-89578-412-5
/2/ Automating with STEP 7 in LAD and FBD
STEP7
Author: Hans Berger
SIMATIC S7-
300/400 Publisher: Publicis Publishing
ISBN: 978-3-89578-410-1
/3/ Reference manual
System Software for S7-300/400 System and Standard
Functions Volume 1 and Volume 2
http://support.automation.siemens.com/WW/view/en/44240604
/4/ Reference to the http://support.automation.siemens.com/WW/view/en/58820849
document
http://support.automation.siemens.com
Siemens AG 2014 All rights reserved
http://support.automation.siemens.com/WW/view/en/94003326
Function manual Fieldbus systems (V4.7):
http://support.automation.siemens.com/WW/view/en/99685159
8 History
Copyright
Table 8-1
Version Date Modification
V1.0 07/2012 First edition
V2.0 08/2012 Complete revision focusing on easier usability of the blocks
in customer projects
SINAMICS G120C, G120D and G120P added
V2.1 04/2013 Extended by CU250S-2 DP
V2.1a 04/2013 Corrected used STARTER version in chap. 2.3
V2.2 04/2014 Update FB10
(initialize the input buffer with 0, when SFC14 shows error)
Use of STARTER V4.3.3
V2.3 11/2014 Extended by SINAMICS G120 with FW 4.7 and
STARTER V4.4.