Speed Control with SIMATIC S7-1200 and SINAMICS V90PN via PROFINET

This document details the application of speed control using Siemens SIMATIC S7-1200 PLC and SINAMICS V90PN drive over PROFINET communication.

For more information, visit: Siemens Industry Online Support

1 Task

Introduction

Speed control is one of the three basic functions for SINAMICS V90 and Profinet communication is a new and advanced feature. This manual describes the basic application of speed control with Profinet communication for SINAMICS V90 in detail.

Overview of the automation task

The automation task involves the following components:

  • SIMATIC PLC (Programmable Logic Controller)
  • PC/PG (Personal Computer/Programming Device)
  • SINAMICS V90 PN Drive
  • SIMOTICS Servo Motor
  • Connections: Profinet cable, Encoder cable, Power cable

The SIMATIC PLC communicates with the PC/PG via a Profinet cable. The Servo Drive is connected to the PLC. The Servo Motor is connected to the Servo Drive via power and encoder cables.

2 Solution

Solution overview

The solution comprises the following key components:

  • IO Supervisor (typically a PC/PG)
  • IO controller (SIMATIC PLC)
  • IO device (SINAMICS V90 PN)

Delimitation

This application example does not cover:

  • Profinet communication details
  • SINAMICS V90 PN version specifics
  • BOP (Basic Operator Panel) operation of SINAMICS V90

Basic knowledge of these topics is assumed. Basic knowledge on TIA Portal is also assumed.

Hardware and Software Components

Validity

This application example is valid for:

  • TIA Portal V16
  • S7-1200 CPU with PN interface
  • SINAMICS V90 PN FW V10401
  • SIMOTICS S-1FL6 Li motor

Used Components

Hardware components
Component No. Article number Note
SIMATIC S7-1200 1214C DC/DC/DC 1 6ES7214-1AG40-0XB0 V4.4
SINAMICS V90 PN 200V 1 6SL3210-5FB10-2UF0 200W
SIMOTICS S-1FL6 Li motor 1 1FL6032-2AF21-1AA1 200W
Standard software components
Component No. Article number Note
TIA Portal 1 V16
SINAMICS V-ASSISTANT 1 V1.06.02
Sample files and projects

The following list includes all files and projects used in this example:

Component Note
109739222_S7-1200_V90PN_Speed_Dezentral_DOC_v13.en.pdf Documentation
109739222_SpeedControl_V90_S7-1200_MOVE_PROJ_V16.zip Project file for Scenario A
109739222_SpeedControl_V90_S7-1200_SINA_SPEED_PROJ_V16.zip Project file for Scenario B

3 Basics

Basics regarding SINAMICS V90 PN version

SINAMICS V90 PN supports the following telegrams:

  • Standard telegram 1
  • Standard telegram 2
  • Standard telegram 3
  • Standard telegram 5
  • Siemens telegram 102
  • Siemens telegram 105

Siemens telegram 105 is the default for SINAMICS V90 PN. However, since it is for IRT application (which S7-1200 1214C does not support), Standard telegram 1 must be used in this basic application.

Basic parameter configuration regarding SINAMICS V90 PN

Configure PROFINET settings via SINAMICS V-ASSISTANT

The following parameters can be configured using the SINAMICS V-ASSISTANT from the PROFINET settings menu:

In this menu, you can configure:

  • Communication telegram: This tab allows checking the PZD (Process Data) structure and values.
  • Network: Configuration of network parameters like station name, IP address, subnet mask, and default gateway.

Note: Configurations must be saved and activated, followed by a drive restart.

PROFINET relevant parameters
Par. No. Description Set value
P922 Telegram selection 1
P8921 PN IP address. There are four indexes. Each index maps to a segment of the IP address. (Note: after successful configuration, values change to 0 automatically.) Example IP address: 192.168.0.2
P8921[0]=192
P8921[1]=168
P8921[2]=0
P8921[3]=2
P8923 PN Subnet Mask of Station. There are four indexes. Each index maps to a segment of the subnet mask. (Note: after successful configuration, values change to 0 automatically.) Example Subnet mask: 255.255.255.0
P8923[0]=255
P8923[1]=255
P8923[2]=255
P8923[3]=0
P8925 PN interface configuration (Note: after successful configuration, values change to 0 automatically.) 2
Note: after setting P8921 and P8923, P8925 should be set to 2 for activating PN communication.
r8931 PN IP address of station active
r8932 PN default gateway of station active
r8933 PN MAC address of station

Configure ramp-function generator via SINAMICS V-ASSISTANT

The ramp-function generator configuration is done via the SINAMICS V-ASSISTANT's Parameterize menu. You can activate or deactivate it via the "Set parameter setpoint" tab.

Note: A drive restart is required after activating or deactivating the ramp-function generator.

The application uses the basic ramp-function generator. The generator controls speed over time, featuring acceleration (ramp-up time p1120) and deceleration (ramp-down time p1121). The extended version also includes initial and final rounding-off times to smooth the transitions.

Ramp-function generator relevant parameters
Par. No. Description Set value
P1115 Ramp-function generator selection 0
P1120 Ramp-up time 10 s
P1121 Ramp-down time 10 s
P1130 Initial rounding-off time 0 s
P1131 Final rounding-off time 0 s

Configure PROFINET settings via the TIA Portal

Configure SINAMICS V90 PN

PROFINET settings for SINAMICS V90 PN in TIA Portal:

  1. Create a new project and switch to project view.
  2. Input the V90 PN GSD file. (Note: GSD file installation is necessary for TIA Portal versions prior to V13.)
  3. Find and select the GSD file, then press "Install".
  4. In the device tree, click the "Devices & networks" node.
  5. From the catalog tree on the right, select V90 PN from "Other field devices".
  6. Double-click the V90 PN node or drag it to the network view.
  7. Configure the Communication Telegram (e.g., standard telegram 1) in the device view.
  8. In the Properties tab, configure the Ethernet address and device name. The PROFINET device name should match the accessible device name.
  9. Configure the I/O address of the communication telegram from the Properties Tab.
Configure S7-1200 CPU

PROFINET settings for SIMATIC S7-1200 CPU in TIA Portal:

  1. Double-click the "Add new device" node from the Device tree.
  2. If the S7-1200 module details are known, find and add the specific type.
  3. Alternatively, add an unspecified CPU 1200.
  4. If an unspecified CPU 1200 is added, detect the connected CPU by clicking "Detect" and searching via online access.
  5. Start the search using the "Start search" button. The S7-1200 CPU will be found if PROFINET communication is working correctly.
  6. Press the "Detect" button to detect the connected CPU.
  7. Double-click the PLC CPU to access its properties in the device view.
  8. Configure information like device name and Ethernet address. Use the "Online access" node to find accessible devices and ensure consistency.
Connect SINAMICS V90 PN with S7-1200 CPU

After configuring both the SINAMICS V90 PN and S7-1200 CPU, connect them:

  1. Right-click "Not assign" and select "Assign to new IO controller".
  2. The connected network view will show the established connection between the PLC and the SINAMICS V90 PN.

4 Installation and Startup

Installation of the hardware

The hardware configuration involves connecting the SINAMICS V90 PN and the SIMATIC S7-1200 CPU. Power is supplied to both devices (L1, N, PE). The SINAMICS V90 PN connects to the motor via U, V, W and to the PLC via PROFINET (PN). The SIMATIC S7-1200 CPU also connects via PROFINET (PN) and has its own power inputs (L1, N, PE). A PC is shown connected via PROFINET.

Startup (JOG from drive side)

Nr. Action Remarks
1. Set drive parameter p29108 to 1. JOG function is enabled when p29108=1
2. Save the parameters and restart the drive.
3. Switch to JOG menu with drive BOP operation.
4. Press ▲ or ▼ button to run the motor.
5. After finishing the JOG function, set P29108 to 0.
6. Save the parameters and restart the drive again.

Startup (Profinet communication)

Nr. Action Remarks
1. Set drive parameter p922 to 1. Select standard telegram 1
2. Make device & network configurations in the TIA Portal: Device name, IP address, Telegram. As shown in section 3.2.3
3. Go online to test the Profinet communication.
4. Download configurations into controller and device if the communication works.

5 Operation of the application

Scenario A

In Scenario A, a Move instruction is used for programming, and the motor is run using a watch table.

Nr. Action Remarks
1. Program as follows: Network 1: MOVE instruction with inputs/outputs. Network 2: MOVE instruction with inputs/outputs.
2. Compile the PLC program and download it and its configurations into the S7-1200 CPU.
3. Switch to online mode and enable the monitor function.
4. Modify M10.0 to 1.
5. Open the watch table 1.
6. Write value 16#47E into QW64. Q address: 64 ... 67
7. Write value 16#47F into QW64; the drive turns to servo on.
8. Write value 16#2000 into QW66; the motor starts running at 1500 rpm. QW66: speed setpoint. Scaling factor: 4000 hex = value of drive parameter p2000.

Scenario B

The function block "SinaSpeed" is used in TIA Portal for speed control with standard telegram 1. The library is integrated in Startdrive.

Note: Download the latest library from SIEMENS product and information pages: http://support.automation.siemens.com/WW/view/en/109771710

Input interface of "SinaSpeed"

Input signal Type Default Meaning
EnableAxis BOOL 0 "Off1" = 1 → switch on the drive
AckError BOOL 0 Acknowledgement of axis faults "AckFIt" = 1
SpeedSp REAL 0.0 [rpm] Speed setpoint
RefSpeed REAL 0.0 [rpm] Rated speed of the drive → p2000
ConfigAxis Word 16#003F Configure of the drive control
HWIDSTW HW_IO/INT 0 Symbolic name or HW ID/IO address on the SIMATIC S7-1200 of the setpoint slot (SetPoint)
HWIDZSW HW_IO/INT 0 Symbolic name or HW ID/IO address on the SIMATIC S7-1200 of the actual value slot (Actual Value)

Output interface of "SinaSpeed"

Input signal Type Default Meaning
AxisEnabled BOOL 0 Operating mode is executed or enabled
Lockout BOOL 0 1= switch-on inhibit active
ActVelocity real 0.0[rpm] Actual speed
Error BOOL 0 1=group fault present
Status INT 0 Status of the function block
DiagID WORD 0 Expanded communication error

In Scenario B, "SinaSpeed" from the library is used for programming and running the motor.

Nr. Action Remarks
1. When the startdrive is installed, find "SinaSpeed" in the optional packages.
2. Insert or drag "SinaSpeed" into the PLC main block and program as follows: (Diagram shows SinaSpeed block with inputs like EnableAxis, SpeedSp, ConfigAxis, HWIDSTW, HWIDZSW and outputs like AxisEnabled, ActVelocity, Error, Status, DiagID).
3. Switch to online mode and activate the monitoring function.
4. Modify M10.0 to 1, and the motor starts running at the speed of 500 rpm.

6 Appendix

Service and support

Industry Online Support

Siemens Industry Online Support provides 24/7 access to service and support information, including product information, manuals, downloads, FAQs, and application examples. Access is available via support.industry.siemens.com.

Technical Support

For technical queries, Siemens Industry provides support via a web form: www.siemens.com/industry/supportrequest.

SITRAIN – Digital Industry Academy

Siemens offers globally available training courses for industry. More information on courses, locations, and dates is available at www.siemens.com/sitrain.

Service offer

Siemens offers a range of services including:

  • Plant data services
  • Spare parts services
  • Repair services
  • On-site and maintenance services
  • Retrofitting and modernization services
  • Service programs and contracts

Detailed information is available on the service catalog web page: support.industry.siemens.com/cs/sc.

Industry Online Support app

The "Siemens Industry Online Support" app is available for iOS and Android for on-the-go support: support.industry.siemens.com/cs/ww/en/sc/2067.

Contact

Siemens Ltd., China
DF M3-BF GMC
No. 18 Siemens Road
Jiangning Development Zone
Nanjing, 211100
China
Email: mc_gmc_mp_asia.cn@siemens.com

Links and literature

No. Topic
1 Siemens Industry Online Support
https://support.industry.siemens.com
2 Link to this entry page of this application example
https://support.industry.siemens.com/cs/ww/en/view/109739222

Change documentation

Version Date Modifications
V0.1 02/2016 First version
V1.0 03/2016 Final version
V1.1 03/2018 Upgrade project to TIA V15
V1.2 05/2019 Upgrade project to TIA V15 SP1
V1.3 04/2020 Upgrade project to TIA V16

PDF preview unavailable. Download the PDF instead.

109739222 S7-1200 V90PN Speed Dezentral DOC v13.en Microsoft Word für Office 365

Related Documents

Preview SINAMICS G120C: Speed Control with S7-1200 via Modbus RTU
This document provides a comprehensive guide on configuring and programming Siemens SINAMICS G120C drives for speed control with an S7-1200 controller using the Modbus RTU communication protocol. It covers hardware and software requirements, Modbus basics, installation, PLC project configuration, G120C setup via TIA Portal and Startdrive, PLC logic programming, and application operation.
Preview Siemens SIMATIC S7-1200 CPU 1214C DC/DC/DC Datasheet (6ES7214-1AG40-0XB0)
Comprehensive datasheet for the Siemens SIMATIC S7-1200 CPU 1214C DC/DC/DC (6ES7214-1AG40-0XB0), detailing technical specifications, supply voltage, memory, I/O, communication protocols, environmental conditions, and approvals.
Preview Siemens SIMATIC/SINAMICS S7-1500, S7-1200: Trace and Logic Analyzer Function Manual
This function manual from Siemens provides detailed guidance on using the trace and logic analyzer function for SIMATIC S7-1500, S7-1200, and SINAMICS automation systems. Learn about configuration, recording, analysis, and troubleshooting for industrial automation tasks.
Preview Guida Tecnica Pacchetti Hw e Sw Siemens SCE per il mondo EDU
Guida tecnica completa ai pacchetti hardware e software Siemens SCE (Siemens Automation Cooperates with Education) per la formazione nell'automazione industriale. Dettaglia soluzioni per l'educazione all'automazione, coprendo le principali tecnologie Siemens come SIMATIC TIA Portal, SIMATIC PCS 7, LOGO!, SINAMICS, SIMIT e altro.
Preview Siemens SINAMICS S120: High-Performance Motion Control Drive System
Discover the SINAMICS S120 family of drive systems from Siemens, offering high-performance motion control for flexible drive applications. This document details the modular drive system, its components, features, and applications across various industries.
Preview SINAMICS G: Axis Positioning with SINA_POS Block - Siemens Application Example
This document provides a comprehensive application example for implementing axis positioning using the SINA_POS function block. It details the integration of Siemens SINAMICS G120 drives with SIMATIC S7-1200 controllers via PROFINET communication, covering configuration, setup, and operation for industrial automation.
Preview Siemens SIMATIC S7-1200 CPU 1212C Data Sheet
Technical data sheet for the Siemens SIMATIC S7-1200 CPU 1212C, compact CPU with DC/DC/DC power supply, onboard I/O, and PROFINET interface.
Preview SINAMICS G: Telegram Extension for Position Controlled Drive - Siemens Application Example
This document provides a detailed guide on extending SINAMICS G120 telegrams for position-controlled drives using SIMATIC S7-1500. It covers the function principle, configuration steps, S7 program extension, installation, commissioning, and operating procedures.