SIMATIC S7 300 PLC CPU 317T-2 DP: Controlling a SINAMICS S120
SIMATIC
S7 300 PLC
CPU 317T-2 DP: Controlling a
SINAMICS S120
Getting Started
Introduction
_____________
Preparation
_____________
Learning units
_____________
Further information
_____________
1
2
3
4
12/2005
A5E00480391-01
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
will result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended
by Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and
assembly as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Siemens AG
Automation and Drives
Postfach 48 48
90437 NÜRNBERG
GERMANY
3 Learning units ......................................................................................................................................... 3-1
3.2 2. Step: Configuring CPU 317T-2 DP with HW Config .............................................................. 3-2
3.3 3. Step: Changing the transmission rate at the MPI/DP interface ............................................. 3-4
3.4 4. Step: Vital settings in your DP (DRIVE) configuration ........................................................... 3-5
3.5 5. Step: Generating technology system data............................................................................. 3-6
3.6 6. Step: Configuring the drive in HW Config .............................................................................. 3-7
3.7 7. Step: Configuration of the PG/PC interface......................................................................... 3-10
3.8 8. Step: Downloading the hardware configuration to the target hardware .............................. 3-18
3.9 9. Step: Configuration of the SINAMICS drive with S7T Config .............................................. 3-21
3.10 10. Step: Configuring the axes with S7T Config ...................................................................... 3-59
3.11 11. Step: Creating the technology DBs.................................................................................... 3-70
3.12 12. Step: Controlling the axis with the STEP 7 user program ................................................. 3-71
3.13 13. Step: Trial run .................................................................................................................... 3-72
4 Further information ................................................................................................................................. 4-1
4.1 Further information..................................................................................................................... 4-1
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
iii
Table of contents
CPU 317T-2 DP: Controlling a SINAMICS S120
ivGetting Started, 12/2005, A5E00480391-01
Introduction
1.1 1.1 Introduction
Introduction
This Getting Started contains a practical example guiding you through thirteen steps in
commissioning a fully functional application, and showing you how to carry out motion
commands. It is thus a valuable help in getting started with the basic functions of a CPU
317T-2 DP.
Depending on your degree of experience, working through the sample will take between two
and three hours.
Note
This Getting Started presumes that you have connected a SINAMICS
the DP (DRIVE) interface of the CPU 317T-2 DP In case you do not have a drive, we
recommend you refer to the Getting started documentation "CPU 317T-2 DP: Controlling a
virtual axis".
SINAMICS
1
S120 drive to
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
1-1
Introduction
1.1 Introduction
CPU 317T-2 DP: Controlling a SINAMICS S120
1-2Getting Started, 12/2005, A5E00480391-01
Preparation
2.1 2.1 Requirements
Requirements
The following requirements must be fulfilled:
• An S7-300 station, consisting of:
– Power supply module (PS), for example, 6ES7 307-1EA00-0AA0
– CPU 317T-2 DP with inserted MMC (4 MB or more).
– Optional digital input module (DI) with bus connector, for example,
6ES7 321-1BH02-0AA0
– Optional digital output module (DO) with bus connector, for example,
6ES7 322-1BH01-0AA0
– Two optional front connectors for the digital modules
• A PG with MPI interface and properly installed software packages and commissioning
tools as listed below:
– STEP 7 V5.3 SP3 and higher
2
– S7-Technology V3.0
• The PG is connected to the CPU via the MPI/DP interface (transmission rate up to 12
Mbps; default 187.5 kbps).
• A SINAMICS
• The SINAMICS
– CU320 control unit with TB30 terminal board (6SL3040-0MA00-0AA1)
– Smart line module, 5 kW (6SL3130-6AE15-0AA0-Z)
– Single/double motor module, 3 A (6SL3120-2TE13-0AA0-Z)
– 1 synchronous motor 1FK7022-5AK71-1AG3 with incremental encoder sin/cos 1 Vpp
via SMC20 sensor module cabinet (6SL3055-0AA00-5BA1)
– 1 synchronous motor 1FK7022-5AK71-1LG3 with DRIVE-CLiQ interface: Absolute
encoder EnDat 512 pulses/revolution
– Reference loops for position monitoring
– Control box for setpoint/actual-value linkage via terminals
• You know the firmware version of your SINAMICS S120.
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
®
S120 is connected to the CPU 317T-2 DP via the DP (DRIVE) interface.
®
S120 comprises the following modules:
2-1
Preparation
2.1 Requirements
If you do not know the firmware version, then you can find the version on the supplied
certificate. Alternatively, you can open the "content.txt" file on the CF card. The firmware
version is in the "Internal Version" entry. You can find more detailed information on
reading the firmware version in the SINAMICS S120 product information.
Note
For the example of a drive in Getting Started, we use a SINAMICS® S120 training case.
The training case is available under the following order number:
• Axis version with 1FK7 motor
6ZB2480-0AA00
• Axis version with 1FK7 motors
6ZB2480-0BA00
• The system is completely installed and wired. For information, refer to
CPU 31x: Commissioning
• You provided hardware limit switches and EMERGENCY-OFF switches for safe and
reliable operation of the system.
.
Getting Started
Warning
Operation of an S7-300 as part of plants or systems is subject to special rules and
regulations, based on its field of application. Please note the current safety regulations for
the prevention of accidents, e.g. IEC 204 (EMERGENCY-OFF equipment). You risk
severe injury, or damage to machines and equipment if you ignore these directives.
Configuration of an axis using HW Config and S7T Config. You then operate this axis with
the help of a STEP 7 user program.
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
2-3
Preparation
2.1 Requirements
CPU 317T-2 DP: Controlling a SINAMICS S120
2-4Getting Started, 12/2005, A5E00480391-01
Learning units
3.1 3.1 1. Step: Wiring
Warning
You may come into contact with live wires. Always switch off power before you start wiring
the S7-300.
Procedure
A description of the installation and wiring of your 317T-2DP CPU is found in the
Started Collection S7-300 PLC: CPU 31x: Commissioning
Set the PROFIBUS address of the SINAMICS
PROFIBUS address on the CU230 directly via the hardware DIP switch, is performed in the
following way:
&RQWURO8QLW
3
Getting
.
®
to PROFIBUS address 4. The setting of the
Figure 3-1 Schematic representation of the CU320 control unit
① PROFIBUS interface
② PROFIBUS diagnostics LED "DP1"
③ PROFIBUS address switch
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
3-1
Learning units
3.2 2. Step: Configuring CPU 317T-2 DP with HW Config
352),%86
LQWHUIDFH
$GGUHVV
3.2 3.2 2. Step: Configuring CPU 317T-2 DP with HW Config
Procedure
Sequence Activity Result
1 Create a new project in the SIMATIC Manager (for example,
"GS_317T2-DP_with_S120") and add a SIMATIC 300 station.
2 Open HW Config by selecting the "SIMATIC 300" station and double-
clicking "Hardware".
The SIMATIC 300 station appears
in the SIMATIC Manager.
HW Config opens.
CPU 317T-2 DP: Controlling a SINAMICS S120
3-2Getting Started, 12/2005, A5E00480391-01
Learning units
3.2 2. Step: Configuring CPU 317T-2 DP with HW Config
Sequence Activity Result
3 Open the "Hardware Catalog" and select the "SIMATIC Technology CPU" hardware profile in the "Profile"
drop-down list.
Result: The "SIMATIC Technology" directory is displayed.
4 Insert a mounting rail using drag-and-drop in the station window of
HW Config.
5 Drag-and-drop the "PS 307 5A" power supply module onto the
mounting rail.
6 Add the Technology CPU to the mounting rail by means of drag-and-
drop.
7 You change the transmission rate in the next step.
Confirm the message box with "OK.“
8 Confirm the default settings of the PROFIBUS configuration with
"OK".
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
This creates a mounting rail.
The power supply module appears
on the mounting rail.
A message box appears.
In the next dialog box, you can set
the PROFIBUS properties of the DP
(DRIVE).
3-3
Learning units
3.3 3. Step: Changing the transmission rate at the MPI/DP interface
Sequence Activity Result
9 Add a digital input module and a digital output module.
You now have this layout:
3.3 3.3 3. Step: Changing the transmission rate at the MPI/DP interface
Procedure
Sequence Activity Result
1 Open the MPI/DP interface (X1) in HW Config with double-
click.
2 Click "Properties". The "Properties – MPI interface MPI/DP"
3 Click MPI(1), then click "Properties". The "Properties - MPI" dialog box opens.
CPU 317T-2 DP: Controlling a SINAMICS S120
3-4Getting Started, 12/2005, A5E00480391-01
The "Properties - MPI/DP" dialog box opens.
dialog box opens.
Learning units
3.4 4. Step: Vital settings in your DP (DRIVE) configuration
Sequence Activity Result
4 Select the "Network settings" tab and select a transmission
speed of "1.5 Mbps".
5 Confirm all open dialog boxes with "OK". You have now increased the configured
6 When the CPU is in STOP, select PLC > Download to
download the configuration. Select the CPU and confirm
with "OK".
7 Confirm with "OK". The data are now downloaded from the
transmission speed of the MPI interface at
the CPU in order to accelerate data transfer.
The "Select node address" dialog box
opens.
The default transmission rate of the MPI
interface is 187 kbps, i.e. the PG/PC
interfaces must be set up as described
earlier in the requirements section.
PG/PC to the CPU.
3.4 3.4 4. Step: Vital settings in your DP (DRIVE) configuration
Procedure
Sequence Activity Result
1 In HW Config, double-click X3 DP (DRIVE). The "Properties – DP (DRIVE)" dialog box
opens.
2 Click the "Properties" button. The "Properties – PROFIBUS interface DP
(DRIVE)" dialog box opens.
3 Enter PROFIBUS address "2".
4 Click "New" to create a new PROFIBUS subnet. The "Properties – New subnet PROFIBUS"
dialog box opens.
5 In the "Network settings" tab of the next dialog box, set the
transmission rate of the PROFIBUS network. Enter a rate of
12 Mbps.
Maintain the "DP" profile setting of the subnet.
6 Click "OK" to confirm all open dialog boxes of HW Config.
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
3-5
Learning units
3.5 5. Step: Generating technology system data
3.5 3.5 5. Step: Generating technology system data
Procedure
Sequence Activity Result
1 Double-click "Technology" on the mounting rail. The "Properties - Technology" dialog box
opens.
2 Select the "Technology system data" tab, then set the "Generate technology system data" check box.
Confirm with "OK".
Result: When you download these data to the PLC later on in this Getting Started, the system also
generates the technology system data and includes these in the download to your CPU 317T-2 DP.
Note: If you do not activate the check box, then the technology system data is also not generated.
CPU 317T-2 DP: Controlling a SINAMICS S120
3-6Getting Started, 12/2005, A5E00480391-01
Learning units
3.6 6. Step: Configuring the drive in HW Config
3.6 3.6 6. Step: Configuring the drive in HW Config
Procedure
Sequence Activity Result
1 In the HW catalog, open the tree structure