Sinamics s120 at s7-300400f Short-Doku v1d1 en PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Short description 12/2014

SINAMICS S:
Speed Control of a S120
with SIMATIC S7-300/400F
(STEP7 V5) via PROFINET
/PROFIBUS with Safety
Integrated (via PROFIsafe)
and HMI
SINAMICS S120 SIMATIC S7-300/400F

http://support.automation.siemens.com/WW/view/en/68624711
Warranty and liability

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
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
Siemens AG 2014 All rights reserved

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 the Siemens AG.

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.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 2
Table of contents

Table of contents
Warranty and liability................................................................................................... 2
1 Overview ............................................................................................................. 4
1.1 Requirements ....................................................................................... 5
2 Explanation of the Blocks ................................................................................. 6
2.1 FB11 "CtrlUnit_FB" ............................................................................... 6
2.2 FB12 "LineModule_FB" ........................................................................ 8
2.3 FB13 "Drive_FB" ................................................................................ 10
2.4 FB20 "Parameter_Access” ................................................................. 13
2.4.1 Describing the block ........................................................................... 13
2.4.2 Job and response data record ........................................................... 16
2.5 FB200 "Safety” ................................................................................... 19
3 Commissioning ................................................................................................ 20
4 Related Literature ............................................................................................ 22
5 History............................................................................................................... 22
Siemens AG 2014 All rights reserved

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 3
1 Overview

1 Overview
The short docu on hand describes the blocks which can be used for connecting a
PROFINET/PROFIBUS of a SINAMICS G120 to a failsafe SIMATIC S7300/400F in
STEP 7 V5. This short docu does not give any explanations and only shows the
most important points for integrating the blocks into your own projects.
The following functions can be realized with this:
Table 1-1
Block Function Explanation
FB11 The FB performs the communication
"CtrlUnit_FB" between the PLC and the Control Unit drive
object of the S120. Its digital inputs/outputs
are read/controlled, errors and alarms are
transmitted and errors acknowledged.
The FB uses the system functions SFC14
and SFC15 and uses the SIEMENS frame
390 with frame expansion (alarm, error) for
data transmission.
FB12 The FB performs the communication
"LineModule_FB" between the PLC and the line module drive
object of the S120. The module is switched
on/off with FB12, the mode is read out,
Siemens AG 2014 All rights reserved

errors and alarms are transmitted and


errors are acknowledged. The FB uses the
system functions SFC14 and SFC15 uses
Cyclic access the SIEMENS frame 370 with frame
to process expansion (alarm, error) for data
data transmission.
FB13 The FB performs the communication
"Drive_FB" between the PLC and the "Drive” drive
object of the S120. With FB12 status and
control word are exchanged and speed
Copyright

setpoint and actual value are transmitted.


Errors and alarms are furthermore
transmitted and errors are acknowledged.
The FB used the system functions SFC14
and SFC15, and uses the default frame 1
for the data transmission with frame
expansion (alarm, error).
FB10 FB is only used as jump table for FB11,
"Process_Data_Exchange" FB12 and FB13. In addition it provides the
information for WinCC flexible whether the
created drive object (Line Module and Drive
1-6) has been configured.
FB20 Access to With this FB the PLC can have read and
"Parameter_Access" parameters write access to selected parameters in one
of the drive objects.
The two parameters of each of the
configured drive object are given read and
write access with the job DB of the
application example and the fault memory is
read out.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 4
1 Overview
1.1 Requirements

1.1 Requirements
You require a SIMATIC S7-300/400F CPU, which supports data record routing,
(see /10/).
You require a SINAMICS S120 with firmware 4.5 or higher.
SINAMICS G120 must be connected to the local PROFIBUS or PROFINET
interface of the SIMATIC S7-300/400F using a CP is not supported.
Siemens AG 2014 All rights reserved

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 5
2 Explanation of the Blocks
2.1 FB11 "CtrlUnit_FB"

2 Explanation of the Blocks


2.1 FB11 "CtrlUnit_FB"
The FB coordinates the cyclic process data transfer between the PLC and the
Control Unit (CU_S) of the SINAMICS S120 on the basis of the extended
SIEMENS frame 390. This requires the drive (STARTER) as well as the controller
(STEP 7, HW Config) to be configured with the SIEMENS frame 390 that was
extended by the alarm and error code.
With the extended SIEMENS frame 390 the following data is exchanged:
Table 2-1: Data transferred with the extended SIEMENS frame 390
PZD
S7-300/400F SINAMICS S120 SINAMICS S120 S7-300/400F
Word
1 CU_STW1 (CU_S control word) CU_ZSW1 (CU_S status word)
2 A_DIGITAL (CU_S digital outputs) E_DIGITAL (CU_S digital inputs)
3 WARN_CODE
4 FAULT_CODE

Details on the frame contents can be found in the SINAMICS S120/S150 list
manual in chap. 2.3 (/7/).
Siemens AG 2014 All rights reserved

The FB11 uses the system functions SFC14 and SFC15.


With regard to the control unit you can do the following with FB11 …
acknowledge errors
detect pending alarms and errors,
signal group alarms and group errors,
read/write access to DO/DI of the CU.

You can therefore use the FB 11 as interface to SINAMICS G120 in your own
applications. You should call it cyclically in OB1.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 6
2 Explanation of the Blocks
2.1 FB11 "CtrlUnit_FB"

Block interface
Figure 2-1: FB11 "CtrlUnit_FB"
Siemens AG 2014 All rights reserved

Interface Description
Table 2-2: Interface of FB11 "CtrlUnit_FB"
Data
Parameter Description
type
Input parameters
Acknowledge_Faults Bool Pending errors are acknowledged with rising edge.
DO_nn (n = 08…15) Bool Controls the CU digital output nn, if the respective
channel is configured as output.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 7
2 Explanation of the Blocks
2.2 FB12 "LineModule_FB"

Data
Parameter Description
type
Input_Address Word CU_S I/O input address
(from HW Config or STARTER)
Output_Address Word CU_S I/O output address
(from HW Config or STARTER)
Output parameters
Alarm_Present BOOL CU_S: alarm pending.
Fault_Present BOOL CU_S: fault pending.
Group_Alarm_Present BOOL CU_S: group alarm pending.
Group_Fault_Present BOOL CU_S: group fault pending.
DI_nn (n = 00…15) BOOL Read out of CU digital input nn.
Alarm_Code Int Alarm code of a pending CU_S alarm.
Fault_Code Int Error code of a pending CU_S fault.
Retval_RD Int Error information of SFC14
(output parameter RET_VAL of SFC14)
Retval_WR Int Error information of SFC15
(output parameter RET_VAL of SFC15)

All of the above input parameters have an initial value of 0 or FALSE.


Access to the individual CU_STW1 bits – with the exception of
Siemens AG 2014 All rights reserved

Acknowledge_Faults – is not supported by FB11.

2.2 FB12 "LineModule_FB"


The FB coordinates the cyclic process data transfer between the PLC and the Line
Module (A_INF) of the SINAMICS S120 on the basis of the extended SIEMENS
frame 370. This requires the drive (STARTER) as well as the controller (STEP 7,
HW Config) to be configured with the SIEMENS frame 370 that was extended by
the alarm and error code.
With the extended SIEMENS frame 370 the following data is exchanged:
Table 2-3: Data transferred with the extended SIEMENS frame 370
PZD
Wor S7-300/400F SINAMICS S120 SINAMICS S120 S7-300/400F
d
1 E_STW1 (A_INF control word) E_ZSW1 (A_INF status word)
2 WARN_CODE
3 FAULT_CODE

Details on the frame contents can be found in the SINAMICS S120/S150 list
manual in chap. 2.3 (/7/).
The FB12 uses the system functions SFC14 and SFC15.
With regard to the line module you can do the following with FB12 …
switch it on and off,
request the status (ready for switch-on, in operation, PLC control requested),
acknowledge errors
detect pending alarms and errors.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 8
2 Explanation of the Blocks
2.2 FB12 "LineModule_FB"

FB 12 can therefore be used as interface with SINAMICS S120 in your own


applications. You should call it cyclically in OB1.

Block interface
Figure 2-2: FB12 "LineModule_FB"
Siemens AG 2014 All rights reserved

Interface Description
Table 2-4: Interface of FB12 "LineModule_FB"
Data
Parameter Description
type
Input parameters
ON_OFF1 Bool The line module is switched on with a rising edge at
ON_OFF1 (if no error is pending).
Acknowledge_Faults Bool Pending errors are acknowledged with rising edge.
Input_Address Word A_INF I/O input address
(from HW Config or STARTER)
Output_Address Word A_INF I/O output address
(from HW Config or STARTER)
Output parameters
Rdy_For_Switching_On Bool Line module is ready to be switched on.
Operation_Enabled Bool Line module is in operation.
Ctrl_Request Bool Control to PLC requested.
The drive object is ready for taking over.
Alarm_Present Bool A_INF: alarm pending.
Fault_Present Bool A_INF: fault pending.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 9
2 Explanation of the Blocks
2.3 FB13 "Drive_FB"

Data
Parameter Description
type
Alarm_Code Int Alarm code of a pending A_INF alarm.
Fault_Code Int Error code of a pending A_INF fault.
Retval_RD Int Error information of SFC14
(output parameter RET_VAL of SFC14)
Retval_WR Int Error information of SFC15
(output parameter RET_VAL of SFC15)

All of the above input parameters have an initial value of 0 or FALSE.


Access to the individual E_STW1 bits – with the exception of ON_OFF1 and
Acknowledge_Faults – is not supported by FB12.

Other switch-on conditions


To be able to switch on the line module the following bits have to be additionally
set in the control word (E_STW1):
Table 2-5: A_INF: Other switch-on conditions
STW1
Bit 01 No_OFF2
Bit 03 Enable operation
Siemens AG 2014 All rights reserved

Bit 10 Master control by PLC


The above bits are set to TRUE by the FB12. They do not have to be supplied by
you.

2.3 FB13 "Drive_FB"


The FB coordinates the cyclic process data transfer between the PLC and the
respective drive (SERVO) of the SINAMICS S120 on the basis of the extended
default frame 1. This requires the drive (STARTER) as well as the controller
(STEP 7, HW Config) to be configured with default frame 1 extended by the alarm
and error code.
With the extended default frame 1 the following data is exchanged:
Table 2-6: Data transferred with the extended default frame 370
PZD
Wor S7-300/400F SINAMICS S120 SINAMICS S120 S7-300/400F
d
1 STW1 (SERVO control word) ZSW1 (SERVO status word)
2 NSOLL_A (setpoint speed) NIST_A (actual speed)
3 WARN_CODE
4 FAULT_CODE

Details on the frame contents can be found in the SINAMICS S120/S150 list
manual in chap. 2.3 (/7/).
The FB13 uses the system functions SFC14 and SFC15.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 10
2 Explanation of the Blocks
2.3 FB13 "Drive_FB"

Regarding the respective SINAMICS S120 drive, you can do the following with the
FB13 …
switch it on and off
acknowledge errors
specify the setpoint speed
request the status (ready for switch-on, in operation, PLC control requested),
detect pending alarms and errors,
read out actual speed value.
FB 13 can therefore be used as interface with SINAMICS S120 in your own
applications. You should call it cyclically in OB1.

Block interface
Figure 2-3: FB13 "Drive_FB"
Siemens AG 2014 All rights reserved

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 11
2 Explanation of the Blocks
2.3 FB13 "Drive_FB"

Interface Description
Table 2-7: Interface of FB13 "Drive_FB"
Data
Parameter Description
type
Input parameters
ON_OFF1 Bool The drive is switched on with a rising edge at
ON_OFF1.
Requirements:
No_OFF2 and No_OFF3 must already be TRUE
beforehand.
no fault must be pending.
No safety function must have triggered.
No_OFF2 Bool With falling edge the motor coasts to a halt.
No_OFF3 Bool Emergency stop of the motor with falling edge
Acknowledge_Faults Bool Pending faults of the drive are acknowledged with
rising edge.
Reference_speed Real Reference speed of the drive [1/min] (p2000 of the
respective drive)
n_Setpoint Real Speed setpoint [1/min]
Input_Address Word SERVO I/O input address
(from HW Config or STARTER)
Siemens AG 2014 All rights reserved

Output_Address Word SERVO I/O output address


(from HW Config or STARTER)
Output parameters
Rdy_For_Switching_On Bool Drive ready for switch-on.
Operation_Enabled Bool The drive is in operation.
Ctrl_Request Bool Control to PLC requested.
The drive object is ready for taking over.
Alarm_Present Bool SERVO: alarm pending.
Fault_Present Bool SERVO: fault pending.
Alarm_Code Int Alarm code of a pending SERVO alarm.
Fault_Code Int Error code of a pending SERVO fault.
n_Actual_Value Real Actual speed [1/min].
Retval_RD Int Error information of SFC14
(output parameter RET_VAL of SFC14)
Retval_WR Int Error information of SFC15
(output parameter RET_VAL of SFC15)

All of the above input parameters have an initial value of 0 or FALSE.


Access to the individual STW1 bits – with the exception of ON_OFF1, No_OFF2,
No_OFF3 and Acknowledge_Faults – is not supported by FB13.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 12
2 Explanation of the Blocks
2.4 FB20 "Parameter_Access”

Other switch-on conditions


To be able to switch on the drive, the following bits have to be additionally set in
the control word (STW1):
Table 2-8: SERVO: Other switch-on conditions
STW1
Bit 03 Enable operation
Bit 04 Enable ramp function generator
Bit 05 Continue ramp function generator
Bit 06 Enable setpoint
Bit 10 Master control by PLC
The above bits are set to TRUE by the FB13. They do not have to be supplied by
you.

2.4 FB20 "Parameter_Access”


2.4.1 Describing the block

The FB coordinates the acyclic parameter transfer between the PLC and the
respective drive object of the SINAMICS S120 on the basis of a data exchange that
1
is based on the data structure of "data record 47” . Send the respective SINAMICS
Siemens AG 2014 All rights reserved

S120 drive object jobs for read-out or for changing the inverter parameters and
1
responses received, embedded in this structure. They may include error detection
if applicable, and the requested parameters if it was a read job.
With the help of the FB20 block input parameter you specify…
the address of the drive system (=address of the CU),
you would like to address,
the source address of the order data records in the PLC,
the target address of the response data records in the PLC,

Via the content of the order data record (data record 47) you specify…
the drive object number within the drive system
the function (change or read out parameters)
the number of parameters
the parameter number,
the parameter index (if present),
the parameter data type

You can simply use the FB20 in independent applications. You should call it
cyclically in OB1 or in OB3x.

1
(\7\),
SINAMICS S120 Function manual (/7/),
Chap. 11.1.4.2 Acyclic communication > Structure of orders and responses

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 13
2 Explanation of the Blocks
2.4 FB20 "Parameter_Access”

Block interface
Figure 2-4: FB20 "Parameter_Access"

Interface Description
Table 2-9: Interface of the FB20 "Parameter_Access"
Data
Parameter Description
type
Input parameters
Address Int I/O address of the control unit of the respective
SINAMICS S120 drive system
Siemens AG 2014 All rights reserved

(from HW Config orSTARTER).


Input and output address must be identical to be able
to be able to use the FB20.
DB_No_send Int Number of the DB in which the order data record to
be sent is stored.
For the order data record an independent DB has to
be created in order to be able to use the FB20.
DB_No_rev Int Number of the DB, in which the received order reply
is to be stored.
For the order reply an independent DB has to be
created in order to be able to use the FB20.
Start Bool With increasing edge the data record transmission
will be started.
Output parameters
busy Bool Transmission active
done Bool Job successfully transferred
drive_error Bool Job successfully transferred; however, the job could
not or only partially be completed by SINAMICS
S120.
The response contains the error detection.
error Bool Access aborted with transmission error
errorID Word Cause of the abort
(see subsequent error list)

All of the above input parameters have an initial value of 0 or FALSE.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 14
2 Explanation of the Blocks
2.4 FB20 "Parameter_Access”

Error list
The FB 20 "Parameter_Access” can output the following error codes in the
"errorID” parameter:
Table 2-10: Error codes in "errorID” parameter
Error number Description Note
0 No error
8000 DB_No_send and DB_No_rev
are identical. Check the parameters of FB 20
8001 DB_No_rev or DB_No_send is "Parameter_Access”.
zero.
8002 SFC53 "WEREC” outputs In the instance DB of FB20, the error
errors code of the SFC53 is stored in
#WD_REC_STATUS.
8003 SFC52 "RDREC” outputs In the instance DB of FB20, the error
errors code of the SFC52 is stored in
#RD_REC_STATUS.
8004 The SFC24 "TEST_DB” In the instance DB of FB20, the error
reports: code of the SFC24 is stored in
Send DB is empty (length 0), #TEST_DB_1_STATUS. If it is 0, the
non-existent or faulty. DB is empty or write protected.
8005 The SFC24 "TEST_DB” In the instance DB of FB20, the error
reports: code of the SFC24 is stored in
Siemens AG 2014 All rights reserved

Receive DB is empty (length #TEST_DB_2_STATUS. If it is 0, the


0), non-existent or faulty. DB is empty or write protected.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 15
2 Explanation of the Blocks
2.4 FB20 "Parameter_Access”

2.4.2 Job and response data record

The FB 20 "Parameter_Access” only coordinates the data exchange between PLC


and SINAMICS S120. It furthermore checks whether the transmission was
successful and whether an error ID was set in the response of the drive. However,
you have to create the order and response data records yourself. Since their form
regarding structure and length depends on the data to be transmitted, it is very
difficult to write on data records universally valid. However, you can orientate
yourself on the template of data record 47 (see footer 1 on page 13) and the
example DBs of this short docu listed in the following application example.

Reading parameters
The parameters p1120 (run-up time), p1121 (ramp-down time) and p945 (fault
memory, with 16 indices) are to be read-out from the SERVO 1 drive object of the
SINAMICS S120 drive system.
Figure 2-5: Reading parameter – order data record (order DB)
Header
Siemens AG 2014 All rights reserved

p1120
Address
p1121
p945

2
The number of the drive object is entered here :
CU_S (Control unit) = 1 (always 1)
A_INF (Line module) =2
SERVO 1 (drive 1) =3
SERVO 2 (drive 2) =4

2
SINAMICS S120 Function manual (\7\),
Chap. 11.1.4.3 Acyclic communication > Determining the drive object numbers

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 16
2 Explanation of the Blocks
2.4 FB20 "Parameter_Access”

Figure 2-6: Reading parameter – response data record (response DB)

p1121 p1120 Header


p945
Siemens AG 2014 All rights reserved

If the parameters are read incorrectly an error value will be output instead of a
parameter value. The error codes can be found in the SINAMICS S120 function
manual (see footer 1 on page 13).

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 17
2 Explanation of the Blocks
2.4 FB20 "Parameter_Access”

Changing parameters
The parameters p7 (BOP backlight) and p3 (BOP access level) in the CU_S drive
object of the SINAMICS S120 drive system is to be changed.
Figure 2-7: Writing parameters – order data record (order DB)
Header
p7
Address
p3
p7
Data
Siemens AG 2014 All rights reserved

p3

Number of the drive object (see Figure 2-5)

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 18
2 Explanation of the Blocks
2.5 FB200 "Safety”

Figure 2-8: Writing parameters – response data record (response DB)

Header
empty or error records
Siemens AG 2014 All rights reserved

If the parameters are changed incorrectly, an error data record is output for each
incorrect parameter. Its structure and the error codes can be found in the
SINAMICS S120 function manual (see footer 1 on page 13).

2.5 FB200 "Safety”


The F functionality of the example is confined to using the respective signals of the
F input module for controlling/disabling the individual safety functions in the
SINAMICS S120 drives.
Furthermore, the passivation bit of the F input module and the SINAMICS S120
drives are read, and the acknowledge signal for reintegrating both ‘modules’ is
used.
The safety bits of the SINAMICS S120 can be accessed just as the bits of
F-DI/DOs in the safety program:
In the example, the input bytes 0 and 1 contain the safety status word 1 of
drive 1 and the input bytes 6 and 7 the safety status word 1 of drive 2.
In the example, the safety control word 1 of drive 1 is sent via the output bytes
0 and 1 and safety control word 1 of drive 2 is sent via the output bytes 6
and 7.
FB200, FC201 and FC202 are blocks that can be edited by the user. FB200 calls
the save functions FC201 and FC202. They control the safety functions of the
drives via PROFIsafe. In the example, they read the safe inputs of the F input
module and write the respective functions of the PROFIsafe frames of drive 1
and 2.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 19
3 Commissioning

3 Commissioning
3
Follow the respective instructions in the appropriate documentation of the
application example for commissioning (\2\):
Chapter 3, if you want to use the STEP 7 example project.
Chapter 6, if you create your own project.
For the latter of the two above cases, here a brief step-by-step instruction:
Table 3-1: Key points for commissioning
PROFINET variant PROFIBUS variant
1. Establish the physical Ethernet connections Establish the physical Ethernet connection
between the SIMATIC S7-300/400F controller, between the SIMATIC S7-300/400F controller
the SINAMICS S120 and the PG/PC. and the PG/PC and the PROFIBUS connection
between the SIMATIC S7-300/400F controller
and the SINAMICS S120.
2. -- Set the PROFIBUS address of the SINAMICS
S120 on the rotary encoding switch.
3. Make sure that the IP address of the network card of your PG/PCs is located in the same subnet as
that of the SIMATIC S7-300/400F and that this address is not otherwise assigned in your project.
4. Set the F target address of the F-DI module used on its DIP switch.
…in the SIMATIC Manager
5. Assign the IP addresses, the subnet masks and --
Siemens AG 2014 All rights reserved

the PROFINET device names to the SIMATIC


CPU and SINAMICS S120 components that can
be reached online.
6. Create a STEP 7 project and establish the Create a STEP 7 project and establish the
hardware configuration consisting of SIMATIC hardware configuration consisting of SIMATIC
S7-300/400F and the SINAMICS S120 in HW S7-300/400F, SINAMICS S120 and your
Config. Assign the device names from step 5 to development system in HW Config.
the configured CPU.
7. Network the SIMATIC S7 with the SINAMICS Network the SIMATIC S7 with the SINAMICS
S120 via PROFINET in HW Config. S120 via PROFIBUS and the PG/PC station
with the controller via PROFINET in HW Config.
8. Select protection level 3 in the properties of the CPU and assign a password and enable the safety
mode. Furthermore, specify the time interval of the cyclic interrupt in the CPU properties with which
the safety program is to be called. Set the F target address in the properties of the F-DI module
used according to step 4 and select "Sensor supply via module”.
9. Create your controller program.
10. Regarding your safety program, create at least one F runtime group, one F CALL block and a safety
FB.
11. Download the entire configuration into the SIMATIC controller.
… in the STARTER
12. Connect with the SINAMICS S120 in the STARTER online.
13. Reset the drive to its factory settings.
14. Perform an automatic configuration. Configure the drive objects that have not been fully
automatically configured manually offline.
15. Configure the required frames (SIEMENS frame 390, SIEMENS frame 370, default frame 1) for all
drive objects and add the required frame extensions. Specify the contents of the additional words
(current alarm and fault code). Compare the frames with HW Config.

3
There is a detailed documentation for the example project, for the PROFINET and a
PROFIBUS communication each.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 20
3 Commissioning

PROFINET variant PROFIBUS variant


16. Add the "PROFIsafe default frame 30” to each drive object.
17. Compare the frames with HW Config.
18. Download the online created STARTER project into the SINAMICS S120 (with the "Copy RAM to
ROM” option) and save it onto the hard disk.
19. Configure the safety functions for the drives (SERVO). Select "Extended functions via PROFIsafe”
and release them. Assign each drive a PROFIsafe address. Select a DI for the "Test stop selection”
and set the monitoring time for the forced dormant error detection of the shutdown paths. Secure
the changed parameters in ROM.
20. Perform a "POWER ON” in the SINAMICS S120 and secure the STARTER project on the hard disk.
…in the SIMATIC Manager
21. Adjust the "F_Dest_Add” I/O addresses in HW Config in the PROFIsafe properties of the drives
according to the assigned PROFIsafe addresses in step 19. Download the HW Config into the CPU.
22. Generate the safety program and load it into the CPU.
Siemens AG 2014 All rights reserved

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 21
4 Related Literature

4 Related Literature
This list is not complete and only represents a selection of relevant information
Table 4-1
Topic Title / link
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of http://support.automation.siemens.com/WW/view/en/68624711
this entry
\3\ Automating with STEP 7 in STL and SCL
Author: Hans Berger
Publisher: Publicis Publishing
ISBN: 978-3-89578-412-5
\4\ STEP7 Automating with STEP 7 in LAD and FBD
SIMATIC S7- Author: Hans Berger
300/400F Publisher: Publicis Publishing
ISBN: 978-3-89578-410-1
\5\ Reference Manual
System and Standard Functions for SIMATIC S7-300/400 Vol. 1/2
http://support.automation.siemens.com/WW/view/en/44240604
\6\ STARTER Download page
Siemens AG 2014 All rights reserved

http://support.automation.siemens.com/WW/view/en/26233208
\7\ SINAMICS Function Manual Drive Functions (V4.7):
S120 http://support.automation.siemens.com/WW/view/en/99686093
Manuals List manual (V4.7) (parameters and error list):
http://support.automation.siemens.com/WW/view/en/99682911
Function manual Safety Integrated (V4.7):
http://support.automation.siemens.com/WW/view/en/99668646
Commissioning manual (V4.7):
http://support.automation.siemens.com/WW/view/en/99687313
Device manual control unit and supplemented components:
http://support.automation.siemens.com/WW/view/en/99679173
Booksize power units:
http://support.automation.siemens.com/WW/view/en/99687925
\8\ Application SINAMICS S: Speed Control of a S120 with SIMATIC S7-300/400
example without (STEP7 V5) via PROFINET with Safety Integrated (via terminal)
PROFIsafe and HMI
http://support.automation.siemens.com/WW/view/en/68585847
\9\ Distributed Safety S7 Distributed Safety, configuring and programming
Manual http://support.automation.siemens.com/WW/view/de/100648623
\10\ FAQ about data http://support.automation.siemens.com/WW/view/en/7000978
record routing http://support.automation.siemens.com/WW/view/en/50037141

5 History
Table 5-1
Version Date Modifications
V1.0 06/2013 First version
Extended by SINAMICS S120 with FW 4.7 and
V1.1 12/2014
STARTER V4.4.

SINAMICS S120 at S7-300/400F


Entry-ID: 68624711, V1.1, 12/2014 22

You might also like