Documente Academic
Documente Profesional
Documente Cultură
4.6)
http://support.automation.siemens.com/WW/view/en/58820849
Table of Contents
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.
Copyright
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
information
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 productspecific newsletter. For more information, visit
http://support.automation.siemens.com.
Table of Contents
Table of Contents
Warranty and liability................................................................................................... 2
Table of Contents ......................................................................................................... 3
1
Task ..................................................................................................................... 5
Solution............................................................................................................... 6
2.1
2.2
2.2.1
2.2.2
2.3
4.3.3
Requirements ..................................................................................... 27
Operation of the application ............................................................... 27
Monitoring and parameter access via operator panel ........................ 29
Screens and screen navigation .......................................................... 29
Process data exchange ...................................................................... 30
Control and status word ..................................................................... 30
Setpoints and actual values ............................................................... 31
Parameter access .............................................................................. 33
Read/write parameters ....................................................................... 33
Fault buffer ......................................................................................... 35
Wiring ................................................................................................. 13
IP addresses and PN names ............................................................. 14
Settings on the PG/PC ....................................................................... 14
Settings on the SINAMICS G ............................................................. 14
Downloading the SIMATIC program .................................................. 15
Downloading the SINAMICS configuration ........................................ 18
Preparations for using the LAN port of the PG/PC ............................ 18
Preparations for using the USB port of the PG/PC ............................ 22
Downloading the configuration to the SINAMICS G .......................... 25
Copyright
Table of Contents
6.2
References ....................................................................................................... 70
History............................................................................................................... 71
Copyright
1 Task
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
MPI, PROFIBUS
or Ethernet
Copyright
PROFIBUS
Explanation
Access to parameters
The SINAMICS G inverters offer the option to perform a failsafe shutdown (e.g., emergency stop.).
2 Solution
2.1 Overview of the overall solution
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.
2.1
Diagrammatic representation
The diagrammatic representation below shows the most important components of
the solution:
Figure 2-1
S7-300/400
SINAMICS G120
KTP 600
PC/PG
Ethernet
Copyright
PROFIBUS
USB
Motor
CAUTION
This example is only for SINAMICS G110M with FW4.7 and SINAMICS
G110M, G120, G120C, G120D und G120P with FW4.6 or higher.
2 Solution
2.2 Description of the core functionality
2.2
2.2.1
SINAMICS G
The SINAMICS G is configured using the STARTER commissioning tool.
For the SINAMICS G, the PROFIBUS address can be predefined either using DIP
switches or if all DIP switches are set to ON or OFF, via parameter 918.
The remaining PROFIBUS parameters (e.g., baud rate) are detected automatically
or transferred when the PROFIBUS master starts so that it is not necessary to
configure them.
For the SINAMICS G, one of several telegram types can be selected for data
exchange (parameter 922). This defines which data is sent or received in which
order. It is important that the same telegram type be selected when configuring the
SIMATIC S7-300/400.
Copyright
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.
2.2.2
Data exchange
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.
2 Solution
2.2 Description of the core functionality
Cyclic process data exchange
Process data is transferred cyclically, i.e. in each bus cycle, in order for it to be
transferred as quickly as possible.
The SIMATIC S7-300/400 as the PROFIBUS master sends the control word and
the setpoint to the SINAMICS and receives the status word and the actual value
from it.
Depending on the telegram type, other setpoint or actual values or extended
control or status words can additionally be transferred. The available message
frame types are listed in chapter 7.4.1 of the SINAMICS G120C operating
instructions (/7/), for example.
On the SIMATIC S7-300/400 side, the process data is provided as I/O input or
output words.
In the SINAMICS G, the configuration defines which bits of the control word are
used and which data is sent to the SIMATIC S7-300/400.
Acyclic data exchange (parameter access)
Copyright
Note
2 Solution
2.3 Hardware and software components used
2.3
Copyright
Component
Qty.
Order no.
6ES7315-2EH14-0AB0
MMC 128KB
6ES7953-8LG30-0AA0
Or larger MMC
SM 323
6ES7323-1BH01-0AA0
6AV6647-0AD11-3AX0
SINAMICS IOP or
SINAMICS BOP-2
6SL3255-0AA00-4JA1
6SL3255-0AA00-4CA1
SINAMICS G120
PC inverter
connection kit -3m
PROFINET connector
Optional
6SL3255-0AA00-2CA0
6GK1901-1BB10-2AA0
6XV1840-2AH10
PROFIBUS cable
6XV1830-0EH10
1
Includes STARTER on
DVD and a USB cable
Alternatively, the software
can be downloaded and a
standard micro USB cable
can be used as well
PROFINET cable
Motor
Note
1LA7083-4AA60
Anz.
Hinweis
6SL3517-1BE12-3AM0
(PM240M)
6SL3544-0TB02-1PA0
(CU240M DP)
6GK1905-0EA00
3RK1902-2DA00
or
3RK1 902-1BA00
3RK1 902-1DA00
SINAMICS G110M
PROFIBUS
connector plug M12
Bestellnummer
siehe /10/
2 Solution
2.3 Hardware and software components used
Hardware components when using a SINAMICS G120
Table 2-3 Hardware components
Component
Qty.
Order no.
Note
6SL3224-0BE22-2UA0
(PM240)
6SL3244-0BB12-1PA1
(CU 240E-2 DP)
or CU240B-2 DP
(6SL3244-0BB00-1PA1)
or CU250S-2 DP
(6SL3246-0BA22-1PA0)
PROFIBUS connector
6ES7972-0BA52-0XA0
Copyright
Component
Qty.
Order no.
Note
SINAMICS G120C
6SL3210-1KE14-3UP1
Or other
SINAMICS G120C
PROFIBUS connector
6ES7972-0BA52-0XA0
Qty.
1
SINAMICS G120D
Order no.
6SL3544-0FB20-1PA0
(CU 240D-2 DP) and
6SL3525-0PE21-5AA1
(PM250D)
PROFIBUS M12
connecting plug
6GK1905-0EB00
PROFIBUS connector
6ES7972-0BA52-0XA0
Note
Or other PM250D
power module
5 connecting plugs
Or 6ES7972-0BA520XA0 (with PG socket)
Qty.
1
SINAMICS G120P
PROFIBUS connector
1
2
Order no.
6SL3243-0BB30-1PA2
(CU 230P-2 DP) and
6SL3223-0DE21-1BA0
(PM230)
6ES7972-0BA52-0XA0
Note
Or other PM230
power module
Or 6ES7972-0BA520XA0 (with PG socket)
10
2 Solution
2.3 Hardware and software components used
Software components
Table 2-7 Software components
Component
Qty.
Order no.
SIMATIC STEP 7
V5.5 SP4
Floating license
6ES7810-4CC10-0YA5
STARTER
V4.4
6SL3072-0AA00-0AG0
WinCC flexibel
Version: 2008 SP3
Note
6AV6613-0AA51-3CA5
Copyright
Component
Note
STEP 7 project mit
SINAMICS G110
58820849_SINAMICS_G110M_at_S7-300400-DP_CODE_v23.zip
58820849_SINAMICS_G120_B_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120_E_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120_EF_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120_S_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120C_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120D_CU240D_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120D_CU240DF_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120P_at_S7-300400-DP_CODE_vnn.zip
58820849_SINAMICS_G120_at_S7-300400_SHORT-DOKU_v23_en.pdf
58820849_SINAMICS_G120_at_S7-300400-DP_DOKU_v23_en.pdf
This document
11
2 Solution
2.3 Hardware and software components used
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.
Copyright
CAUTION
12
3.1
Wiring
The figure below shows the hardware configuration of the application.
Figure 3-1
L1
L2
L3
N
PE
24V
0V
L1
L2
L3
PE
n+ n-
+24 V OUT
DI 4
F-D
DI 5
1)
L+ M
DI COM 1
DI COM 2
PB
2)
GND
PN
PN
SM323
USB
USB cable
is optional.
PB
Copyright
SINAMICS
G120
U2 V2 W2 PE
M
Y
L+ M
PN
SIMATIC Panel
KTP600
PN
USB
PG/PC
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.
13
3.2
3.3
Component
Device name
192.168.0.1
S7 CPU
S7-CPU
192.168.0.3
KTP600
KTP600
192.168.0.200
PG/PC
Remark
Copyright
3.4
14
3.5
Table 3-3
Copyright
No.
Action
1.
2.
Start STEP 7.
3.
Remark
You can connect the two devices directly or via a switch.
15
4.
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.
Remark
Copyright
No.
16
Copyright
6.
Action
Remark
7.
8.
17
Action
Open the project, select the
Blocks folder and click on
Download.
Download the system data
as well.
10.
11.
3.6
Copyright
9.
Remark
Notes
3.6.1
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/
18
Copyright
No.
Action
1.
2.
3.
Remark
19
Remark
5.
6.
7.
8.
Copyright
4.
Action
20
Remark
Copyright
10.
Action
21
Copyright
No.
Action
11.
Select
S7ONLINE(TCP/IP->network
card and click on OK.
12.
3.6.2
Remark
Table 3-5
No.
1.
Action
Remark
22
Copyright
2.
Action
Remark
3.
4.
23
5.
6.
7.
Remark
Copyright
No.
24
3.6.3
Tabelle 3-6
Copyright
No.
Aktion
1.
Go online.
2.
3.
Anmerkung
25
Aktion
Anmerkung
5.
Open Functions>Safety
Integrated in the tree and click on
Change settings first, then on
Copy Parameters and then on
Activate settings.
6.
7.
8.
Go offline.
9.
Copyright
26
4.1
Requirements
To be able to switch on the SINAMICS G via the digital inputs, the following
requirements must be met:
If you have activated the safety functions of the SINAMICS G120, 24 V must
be applied to terminals 16 and 17 (DI 4 and 5) of the SINAMICS G120.
Otherwise, the STO safety function is active, the yellow SAFE LED on the
SINAMICS G120 flashes and the SINAMICS G120 cannot be switched on.
For the SINAMICS G120D, these are terminals X9.2 and X9.4.
24 V must not be applied to terminal 8 (DI 3) of the SINAMICS G120.
Otherwise, (for default configuration) the command data record is switched
over.
For the SINAMICS G120D, this is terminal X8.2.
When using an IOP, check if the network icon ( ) is displayed on the top right.
If the hand icon ( ) is displayed there, select the Hand/Auto button ( ).
Copyright
4.2
) is displayed. If it is displayed,
Name
E 0.0
ON
E 0.1
OFF2
E 0.2
OFF3
E 0.3
Ack
E 0.4
Rev
E 0.5
E 0.6
n+
E 0.7
n-
Function
27
Action
Note / result
2.
3.
4.
Apply 24 V to ON(E0.0).
5.
6.
Copyright
1.
28
4.3
4.3.1
Start screen
Figure 4-1
Support
Overview screen
Application example
Read/write parameters
Fault buffer
Parameter access
Copyright
From all
subordinate screens
From all
subordinate screens
Quit runtime
Change language (English/German)
29
4.3.2
Copyright
Figure 4-2
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.
DANGER
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.
30
Copyright
Figure 4-3
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.
DANGER
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.
Actual values:
The current actual values for speed, current and torque are displayed below the
speed setpoint input.
Control and status word:
To keep an eye on the control and status word without having to switch to the
respective screen, they are also shown as thumbnails.
31
Tap or click on the message number to show the associated message text.
Copyright
Figure 4-5
The message text is displayed as long as you keep the message number pressed.
32
4.3.3
Parameter access
The two screens for process data exchange access the idb_Parameter_Access
(DB20) data block.
Read/write parameters
Copyright
Figure 4-6
33
Action
1.
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.
Remark
A bright green button indicates the
selected access type.
8,0
3.
Copyright
Note
If, after a write job, you want to check the parameters, you have to trigger an
additional read job.
34
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 S7300/400 is displayed that can therefore be obsolete.
Copyright
Figure 4-7
Tap or click on the message number to show the associated message text.
35
Copyright
The message text is displayed as long as you keep the message number pressed.
36
Program overview
Figure 5-1
OB 1
CYCL_EXC
FC 5 setpoint_
simulation
FB 10 process data
DB 10
idb process data
FB 20 parameter
access
DB 102 answer
from drive_write
SFB 52 RDREC
DB 103 answer
from drive_read
Copyright
Process data
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.
37
5.1
OB 1
CYCL_EXC
FB 10 process data
DB 10
idb process data
FB 20 parameter
access
DB 102 answer
from drive_write
SFB 52 RDREC
Copyright
DB 103 answer
from drive_read
Process data contains values that are exchanged between the SIMATIC S7300/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.
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
(from the SIMATICs perspective)
Receive direction
(from the SIMATICs perspective)
Control word
Status word
Speed setpoint
(Not used)
(Not used)
Current torque
(Not used)
Current alarm
(Not used)
Current fault
38
5.1.1
5.1.2
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
39
5.1.3
Copyright
Figure 5-3: Control word of the Siemens telegram 352, PZD 6/6 telegram type
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.
40
Copyright
Figure 5-4 Status word of the Siemens telegram 352, PZD 6/6 telegram type
41
5.1.4
FB10 PZD_G120_Tel_352
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.
Copyright
Data
type
Initial
value
Description
Input parameter
Address
INT
ON_OFF1
BOOL
FALSE
42
Initial
value
Description
OFF2
BOOL
TRUE
OFF3
BOOL
TRUE
Acknowledge
BOOL
FALSE
Direction_reversal
BOOL
FALSE
Activate_manual_mode
BOOL
FALSE
Speed_setpoint
REAL
0.0
Reference_speed_P2000
REAL
1500.0
Reference speed
The same value as in the P2000
parameter of the SINAMICS G must be
specified here.
Reference_current_P2002
REAL
0.0
Reference current
The same value as in the P2002
parameter of the SINAMICS G must be
specified here.
Reference_torque_P2003
REAL
0.0
Reference torque
The same value as in the P2003
parameter of the SINAMICS G must be
specified here.
Copyright
Parameter
Output parameter
Operation_enabled
BOOL
Closing_lockout_active
BOOL
Alarm_active
Rotating_forward
BOOL
BOOL
BOOL
Actual_speed
REAL
Actual_current
Actual_torque
REAL
REAL
Actual_alarm
REAL
Fault_active
43
NOTICE
Data
type
REAL
Initial
value
Description
Code of the currently pending fault
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.
Copyright
This allows the implementation of a switchover between the values provided by the
SIMATIC S7 (automatic) and the selection by means of HMI (manual).
Regardless of this setting, the bits of the status word and the actual values are
always output.
DANGER
44
5.2
Copyright
Figure 5-7
45
5.3
FC 5 setpoint_
simulation
FB 10 process data
DB 10
idb process data
FB 20 parameter
access
DB 102 answer
from drive_write
SFB 52 RDREC
DB 103 answer
from drive_read
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.
Copyright
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.
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.
46
5.3.1
FB 20 Parameter_Access
Parameter access takes place with FB 20 Parameter_Access. It is called
cyclically by OB 1. The block was created so that you can easily use it in your own
applications.
Figure 5-9
Copyright
Parameter
Data
type
Initial
value
Description
Input parameter
Address
INT
DB_No_send
INT
DB_No_rev
INT
START
BOOL
FALSE
Output parameter
Busy
Done
Drive_Error
Error
ErrorID
BOOL
BOOL
BOOL
Transfer active
BOOL
WORD
47
Copyright
Error number
Description
Note
No error
8000
8001
DB_No_rev or DB_No_send is
0.
8002
8003
8004
8005
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
48
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.
Copyright
49
Copyright
State
Function
Start WR_REC
Check result of
WR_REC
Start RD_REC
Check result of
RD_REC
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.
50
5.3.2
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.
Copyright
51
Copyright
Figure 5-11 DB 100 for writing the ramp-up and ramp-down time (in the figure: 10s and 15 s)
52
Copyright
Figure 5-13 DB 101 for reading the ramp-up and ramp-down time and 16 values of the fault memory
53
Copyright
Note
5.4
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.
Function
OB86
FC5
VAT_Process_Data
VAT_Parameter_Access
54
If you only want to download and start up the sample program, follow the
instructions in chapter 3 Setup and Commissioning of the Application.
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.
6.1
Table 6-1
No.
Action
1.
2.
Remark
Copyright
Note
55
Action
Select the CPU 315-2DP/PN or
another CPU that supports data
record routing, see /9/.
4.
5.
Copyright
3.
Remark
56
Action
Remark
8.
Copyright
7.
57
Action
Remark
9.
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
Copyright
Note:
The CU230P-2 DP is in the G120 folder.
58
Action
11.
Remark
1)
12.
Copyright
13.
59
Action
In slot 4 of the central rack,
insert a DI or DI/DO module
(e.g., 6E7S323-1BH01-0AA0).
For the example, make sure that
the I address is 0.
15.
Copyright
14.
Remark
60
6.2
Table 6-2
Action
1.
2.
Remark
SINAMICS G120
S7-300/400
PROFIBUS
3.
4.
Ethernet
Copyright
No.
61
5.
6.
Click on New.
In the dialog that opens,
select only OK.
Remark
Copyright
No.
62
Action
Remark
Copyright
8.
Open NetPro
9.
10.
Figure 6-1
63
Copyright
11.
Action
Remark
12.
13.
64
15.
Action
16.
Remark
In HW Config:
Also click on Save and
Compile.
Then download the
configuration to the
SIMATIC S7 CPU.
Close HW Config.
65
Copyright
No.
Action
17.
18.
19.
Go online.
20.
21.
Remark
66
Action
Expand the tree and double-click
on Configuration.
Then call the wizard.
23.
24.
Copyright
22.
Remark
Note:
Telegram type and address are
matched to the example.
The decisive factor is that the
same telegram and the same
address as in the STEP 7
hardware configuration are
selected.
67
Action
If you do not want to use safety
functions or if you are using a
CU230P-2DP or CU240B-2DP,
continue with step 31.
26.
27.
28.
Copyright
25.
Remark
29.
68
30.
31.
32.
Go offline.
33.
Remark
Copyright
No.
69
7 References
References
This list is by no means complete and only provides a selection of useful
information.
Table 7-1
Topic
/1/
/2/
Title / link
STEP7
SIMATIC S7300/400
/3/
/4/
Reference to the
document
http://support.automation.siemens.com/WW/view/en/58820849
/5/
Siemens Industry
Online Support
http://support.automation.siemens.com
/6/
STARTER
STARTER Software
http://support.automation.siemens.com/WW/view/en/26233208
/7/
SINAMICS
G110M
manuals
Copyright
http://support.automation.siemens.com/WW/view/en/44240604
http://support.automation.siemens.com/WW/view/en/94003326
SINAMICS
G120
manuals
SINAMICS
G120C
manuals
70
8 History
Topic
SINAMICS
G120D
manuals
Title / link
Operating instructions CU240D-2 (V4.7):
http://support.automation.siemens.com/WW/view/en/99711357
SINAMICS
G120P
manuals
/8/
Application
example with
PROFIsafe
/9/
http://support.automation.siemens.com/WW/view/en/7000978
http://support.automation.siemens.com/WW/view/en/50037141
/10/
FAQ for
supplementary
products
Copyright
http://support.automation.siemens.com/WW/view/en/60441457
http://support.automation.siemens.com/WW/view/en/65355810
History
Table 8-1
Version
Date
Modification
V1.0
07/2012
First edition
V2.0
08/2012
V2.1
04/2013
Extended by CU250S-2 DP
V2.1a
04/2013
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
71