Professional Documents
Culture Documents
SINAMICS S120 Connectivity To EtherNet/IP
SINAMICS S120 Connectivity To EtherNet/IP
15
http://support.automation.siemens.com/WW/view/en/92045369
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
Siemens AG Copyright year 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.
ID 92045369
V2.0, 2014.05.08 2
Table of contents
Table of contents
Warranty and liability................................................................................................... 2
1 Task ..................................................................................................................... 5
1.1 Overview............................................................................................... 5
1.1.1 Industrial Ethernet ................................................................................ 5
1.1.2 SINAMICS S120 Connectivity to EtherNet/IP ...................................... 5
2 Solution............................................................................................................... 6
2.1 Solution overview ................................................................................. 6
2.1.1 Hardware Structure .............................................................................. 6
2.1.2 Additional Network Connections .......................................................... 6
2.2 Used Components ................................................................................ 7
3 Programming Overview .................................................................................... 8
3.1 AOI’s for SINAMICS S120 drives ......................................................... 8
3.2 AOI Types ............................................................................................ 8
4 Function mechanisms ....................................................................................... 9
4.1 Function Description............................................................................. 9
4.2 Telegram Description ........................................................................... 9
4.2.1 Telegram Type 1 for Basic speed ........................................................ 9
4.2.2 Telegram Type 111 for EPOS mode .................................................... 9
Siemens AG Copyright year All rights reserved
ID 92045369
V2.0, 2014.05.08 3
Table of contents
10 History............................................................................................................... 40
11 Contact.............................................................................................................. 40
ID 92045369
V2.0, 2014.05.08 4
1 Task
1 Task
1.1 Overview
1.1.1 Industrial Ethernet
Through the use of the CBE20 (Communication Board Ethernet) the SINAMICS
S120 drives have direct connectivity to EtherNet/IP networks. The CBE20 resides
in the option slot of the SINAMICS multi-axis Control Unit and offers a four port
switch to conveniently plug in network connections. The SINAMICS drive system
Siemens AG Copyright year All rights reserved
offers both PROFINET and EtherNet/IP software stacks for the CBE20 which is
easily selected by a parameter setting in the standard SINAMICS firmware.
The network IP address of the CBE20 is set through the STARTER software. With
STARTER software installed on your computer you can connect to the SINAMICS
drive through the CBE20 interface, the built in CU320-2 interface (DP or PN) or the
Ethernet LAN connection on the front of the CU320-2 Control Unit.
The SINAMICS S120 multi-axis drive system can contain up to six vector or servo
axis controlled by a single CU320-2 control unit. This allows one IP address for the
CBE20 card to control multiple drive objects thus cutting down on the number of IP
addresses and Ethernet connections required for drive systems. The SINAMICS
drives operate on unicast telegrams thus further reducing network traffic.
SINAMICS S120 drives have been certified by ODVA for EtherNet/IP conformance
testing and participated in the EtherNet/IP PlugFest. Siemens is a member of
ODVA with Vendor ID # 1251.
ID 92045369
V2.0, 2014.05.08 5
2 Solution
2 Solution
2.1 Solution overview
2.1.1 Hardware Structure
HMI
PC/Network
Reference Actual
values values
Control Status
word Word SINAMICS S120 SINAMICS S120
w/ CBE20 w/ CBE20
ID 92045369
V2.0, 2014.05.08 6
2 Solution
Hardware components
Table 1
Component No.
CU320-2 DP or CU320-2 PN with Firmware version 1
4.5 or later
ID 92045369
V2.0, 2014.05.08 7
3 Programming Overview
3 Programming Overview
3.1 AOI’s for SINAMICS S120 drives
The EtherNet/IP telegrams to the SINAMICS S120 drives can be freely configured
using the free telegram structure for the message frame type. Alternatively in an
effort to seamlessly integrate the communication between an S120 drive object and
an AB Logix family controller Add On Instructions have been designed for the
RSLogix programming that mimic standard telegrams used in S120 configurations.
For most standard applications the use of the AOI’s can greatly reduce the
Engineering time to configure a system. These manual documents the use of the
AOI’s developed to simplify the integration of SINAMICS drives connected to RS
Logix automation systems over EtherNet/IP.
ID 92045369
V2.0, 2014.05.08 8
4 Function mechanisms
4 Function mechanisms
4.1 Function Description
The Drive control function blocks (AOIs) described in this section are intended to
provide SINAMICS S120 users help in engineering and integrating the S120 drives
into an automation system where a Logix family controller is the primary control.
The canned AOI’s in this application guide have been designed to seamlessly
integrate in to the PROFIdrive telegram 1 and Siemens telegrams 102, 111, 370,
and 390 commonly used for controlling the S120 drive system.
NOTE Telegram Type 1 can also be applied to SINAMICS G130 and G150 drives
utilizing the EtherNet/IP connectivity.
ID 92045369
V2.0, 2014.05.08 9
4 Function mechanisms
Telegram 102 is a Siemens telegram for Speed mode control of drives. For
detailed information on this telegram refer to the SINAMICS S120 List Manual
Section 2.8 and Function Manual Section 10.1.
Siemens AG Copyright year All rights reserved
The S120 Speed Block provides an interface for basic speed control of a Servo or
Vector drive object in SINAMICS via EtherNet/IP. The Drive object is configured for
control using Standard telegram type 1.
ID 92045369
V2.0, 2014.05.08 10
4 Function mechanisms
ID 92045369
V2.0, 2014.05.08 11
4 Function mechanisms
The EPOS block interfaces to the SINAMICS Basic Positioner via EtherNet/IP. The
EPOS Positioner is used for the absolute and relative positioning of linear and
rotary axes.
The AOI provides a direct interface to EPOS control. The SINAMICS S120 List
manual provides detailed explanation of all functionality available. Note that drive
must be referenced before absolute positioning is allowed. State control and
Siemens AG Copyright year All rights reserved
ID 92045369
V2.0, 2014.05.08 12
4 Function mechanisms
ID 92045369
V2.0, 2014.05.08 13
4 Function mechanisms
ID 92045369
V2.0, 2014.05.08 14
4 Function mechanisms
The MDI Mode AOI interfaces to the SINAMICS EPOS positioner via EtherNet/IP.
The EPOS positioner is used for the absolute and relative positioning of linear and
rotary axes.
The AOI implements a state machine that allows the selection of three major
motion modes. The three modes are Velocity mode, Relative positioning, and
Absolute positioning mode.
Velocity mode enables motion at a constant velocity set by the Speed reference
input. The velocity setpoint can be changed while the axis is in motion The drive
uses the Accel and Decel setpoints to reach the velocity setpoint. The mode is
started by setting the VEL_MOVE input of the instruction.
Jog forward and reverse is also available by setting the appropriate inputs to the
instructions. Jog velocity is set in the drive at parameters P2585 and P2586.
Relative positioning mode allows the axis to travel for a specified distance set at
the position setpoint input of the instruction and selecting the REL_MOVE input.
Absolute positioning mode moves the axis to a specified position by setting the
position value at the position setpoint input of the instruction and the setting the
ABS_MOVE input.
NOTICE
Note that the axis is not allowed to position until it has been referenced.
ID 92045369
V2.0, 2014.05.08 15
4 Function mechanisms
ID 92045369
V2.0, 2014.05.08 16
4 Function mechanisms
Type
DRV_CONTROL ARRAY Array of 12 Integers referenced to the 12
Output words for the drive object.
DRV_STATUS ARRAY Array of 12 Integers referenced to the 12 Input
words for the drive Object.
ID 92045369
V2.0, 2014.05.08 17
4 Function mechanisms
The Advance Speed Block provides an interface to the S120 Drive in speed mode
for Servo mode of operation. It implements Standard Telegram 102. The AOI
provides additional functionality beyond the Basic Speed AOI. A 32 bit (DINT)
speed setpoint value is used for improved resolution and speed control for high
performance applications. An encoder interface is also included providing a shaft
position value. Torque can also be controlled using the torque reduction value.
ID 92045369
V2.0, 2014.05.08 18
4 Function mechanisms
The line module control AOI allow for simple control and monitoring of a line
module for the S120 drives. The line module can be enabled via AOI inputs and an
output signals the current state. Faults are monitored and can be acknowledged
via input.
ID 92045369
V2.0, 2014.05.08 19
4 Function mechanisms
ID 92045369
V2.0, 2014.05.08 20
4 Function mechanisms
The main function of Control Unit (CUIO) AOI is easy access to the digital IO on
the CU320-2 controller. The instruction’s parameters provide individual access to
each digital IO point. In the case of a programmable IO point both Inputs and
Outputs are provided. The interface is accomplished using Siemens Standard
Telegram 390 as documented in Section 2.8 of the SINAMICS S120 List Manual.
ID 92045369
V2.0, 2014.05.08 21
4 Function mechanisms
4.9 UDTs
UDTs are provided as representing the typical control and status words used for
Telegrams implemented by the AOIs provided. The UDTs can also be used
independently to map IO data sent and received by the drive. The user application
is able to directly control the telegram words and bits to accomplish control
concepts not included in the AOIs provided by Siemens. This is the case when
using user defined telegrams (free telegram configuration with BICO) to exchange
data with the drives.
ID 92045369
V2.0, 2014.05.08 22
5 Drives Configuration
5 Drives Configuration
Commissioning of the S120 drives is not in the scope of this document. Refer to
the SINAMICS S120 quick start guide to assist in the commissioning of the
drive(s).
This sample application referenced in this document utilizes the 2 axis SINAMICS
S120 training unit. The Red Wheel drive on the training unit is configured as a
speed controlled drive and the Blue wheel drive is configured for positioning using
the EPOS technology module.
Telegram type 1 is selected for Speed control in coordination with the Basic Speed
AOI. The telegram is selected in the Communication configuration of the CU in
STARTER.
Table 23
Siemens AG Copyright year All rights reserved
2. Select the
Standard Telegram 111
for the Red Wheel
ID 92045369
V2.0, 2014.05.08 23
5 Drives Configuration
Telegram Type 111 is used both for EPOS and Basic MDI Add On Instructions.
The telegram is selected in the Communication configuration of the CU in
STARTER.
Table 24
No. Instruction Remarks
1. Double click
“Message frame Configuration”
in the project tree
Siemens AG Copyright year All rights reserved
EPOS mode can be achieved in Servo or Vector modes. Closed loop speed control
with encoder is required for Standard Telegram Type 111.
ID 92045369
V2.0, 2014.05.08 24
5 Drives Configuration
NOTE In order for the CU to correctly calculate parameter r2067, The last PZD of the
telegram must be interconnected.
Siemens AG Copyright year All rights reserved
The IP address for the CBE20 module can be set via Parameter P8941. The four
indices accommodate the octets of the device IP Address. The Subnet mask for
the CBE20 is set in Parameter P8943.
Parameters P8951 and P8953 display the active values for IP Address and Subnet
mask. Once the values are saved to ROM and control unit is restarted the new
values should be displayed
ID 92045369
V2.0, 2014.05.08 25
5 Drives Configuration
Table 25
No. Instruction Remarks
1. Set parameter P8835 to a value will select the EtherNet/IP communication stack for the
of 4 CBE20
2. Save this value to ROM and CBE20 will then operate as an EtherNet/IP adapter
cycle power
ID 92045369
V2.0, 2014.05.08 26
6 Configuring a Generic Ethernet Module
ID 92045369
V2.0, 2014.05.08 27
6 Configuring a Generic Ethernet Module
The IO data is available as an array of integers in the controller tags section of the
project tree.
ID 92045369
V2.0, 2014.05.08 28
6 Configuring a Generic Ethernet Module
ID 92045369
V2.0, 2014.05.08 29
7 Using AOIs in a New Application
ID 92045369
V2.0, 2014.05.08 30
7 Using AOIs in a New Application
12.
Siemens AG Copyright year All rights reserved
ID 92045369
V2.0, 2014.05.08 31
7 Using AOIs in a New Application
Figure 13
The second rung holds the AOI. The local variables “InputDataBuffer” and
“OutputDataBuffer” are used as storage for the AOI to receive and send data to the
Controller IO tags.
The first rung copies the IO data for this Red Wheel to a local variable to be used
Siemens AG Copyright year All rights reserved
ID 92045369
V2.0, 2014.05.08 32
8 Drive Parameter Access
ID 92045369
V2.0, 2014.05.08 33
8 Drive Parameter Access
ID 92045369
V2.0, 2014.05.08 34
8 Drive Parameter Access
ID 92045369
V2.0, 2014.05.08 35
8 Drive Parameter Access
22. Destination:
For reading a parameter select a
Controller scope tag where the
value will be written
If writing a value to the parameter
select a tag in the Source element
entry.
ID 92045369
V2.0, 2014.05.08 36
8 Drive Parameter Access
23. Path:
In the communication tab enter the
name of the IO node for the
CBE20. Use the Browse option to
find the node in the project tree.
Siemens AG Copyright year All rights reserved
ID 92045369
V2.0, 2014.05.08 37
9 Glossary
9 Glossary
AOI (Add On Instruction): Commonly used logic for a task that is encapsulated into a block to
be reused in RSLogix programs.
CBE20 (Communication Board Ethernet): Option board for SINAMICS drives with four
Ethernet ports. The CBE20 fits into the option slot of the CU320-2 multi-axis control unit.
CU320-2: Control unit for SINAMICS drives available with either a built in Profibus interface
(CU320-2 DP) or PROFINET interface (CU320-2 PN). Up to six Vector or Servo axis can be
controlled from a single CU320-2.
DO (Drive Object): The SINAMICS S120 multi-axis drive system typically consists of several
drive objects for each control unit. The length and order of each drive object is set in the
message frame.
DRIVE CLiQ: Flexible back plane for SINAMICS drives allowing nameplate data and actual
values of all DRIVE CLiQ components to be transmitted with the control unit.
Siemens AG Copyright year All rights reserved
EPOS (Easy Positioning): Function module in SINAMICS drives providing basic positioning
task such as traversing task, MDI, and homing.
Free Telegrams: The send and receive telegrams can be configured as required by using BICO
technology to interconnect the send and receive process data.
IF1 & IF2: The CU320-2 control unit can communicate via two different interfaces. IF1 refers to
the primary interface for drive control. IF2 is the secondary interface.
L5K file: File type used for importing an AOI into RSLogix program
MDI (Motion Direct Input): Direct setpoint input function for positioning
PROFIdrive: Device profile to provide standardization of drive telegram type thus minimizing
integration and commissioning time and effort.
Servo mode: Axis control type for high dynamic applications. Particularly suitable for
synchronous motors and high performance induction motors.
Standard PROFIdrive Telegrams: Structured in accordance with PROFIdrive profile with the
internal process data links automatically set up in accordance with the telegram number setting.
Telegram type 1: Standard PROFIdrive telegram of two words for simple speed control
ID 92045369
V2.0, 2014.05.08 38
9 Glossary
Telegram type 102: Siemens Standard telegram with 32 bit speed value and torque reduction
value for advanced speed applications
Telegram type 111: Siemens Standard telegram for positioning with 12 words in each direction.
th
In this manual we have assigned the freely connected 12 word for torque.
Telegram type 370: Siemens Standard telegram for SINAMICS Line Module control and status
word
Telegram type 390: Siemens Standard telegram for Control Unit digital inputs/outputs
Vector mode: Axis control type including closed loop, open loop, and V/Hz speed control.
Typically used with induction motors to obtain high speed and low torque ripple.
Siemens AG Copyright year All rights reserved
ID 92045369
V2.0, 2014.05.08 39
10 History
10 History
Table 34 History
Version Date Changes
V0.1 04.06.2012 PreRelease
V1.0 05.18.2012 Initial Release
V1.1 06.04.2012 Changes and corrections.
V2.0 06.14.2012 Add Explicit messaging
Added Free telegram
CU320-2PN difference
11 Contact
Siemens AG
Industry Sector
I DT MC PMA APC
Frauenauracher Strasse 80
Siemens AG Copyright year All rights reserved
91056 Erlangen
Germany
mailto: tech.team.motioncontrol@siemens.com
ID 92045369
V2.0, 2014.05.08 40