Simotion D: Configuration of Drive-Related I/Os (Onboard I/Os, Tms and Tb30) With Simotion V4.1 Sp4
Simotion D: Configuration of Drive-Related I/Os (Onboard I/Os, Tms and Tb30) With Simotion V4.1 Sp4
Copyright
The reproduction, transmission or use of this document or its contents is
not permitted without express written authority. Offenders will be liable for
damages. All rights, including rights created by patent grant or registration
or a utility model or design, are reserved.
General Information
Note The application examples are not binding and do not claim to be
complete regarding the circuits shown and equipping as well as possible
eventualities. 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 correctly used. These application examples do not relieve
you of the responsibility of safely and professionally using, installing,
operating and servicing equipment. When using these application
examples, you recognize that Siemens 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, then the contents of the other documents have priority.
© Siemens AG, 2008 All Rights Reserved
Qualified personnel
In the sense of this documentation, qualified personnel are those who are
knowledgeable and qualified to install, commission, operate and service the
products which are being used. He or she must have the appropriate
qualifications to carry out these activities
e.g.:
• Trained and authorized to energize and de-energize, ground and tag
circuits and equipment according to applicable safety standards.
• Trained or instructed according to the latest safety standards in the care
and use of the appropriate safety equipment.
• Trained in rendering first aid.
There is no explicit warning information in this documentation. However,
reference is made to warning information and instructions in the Operating
Instructions for the particular product.
© Siemens AG, 2008 All Rights Reserved
Contents
GENERAL INFORMATION....................................................................................................................3
1 BASIC PRINCIPLES .......................................................................................................................7
1.1 CONFIGURATION OF SIMOTION I/OS .....................................................................................11
1.2 CONFIGURATION OF SINAMICS I/OS......................................................................................11
1.3 CONFIGURATION OF SINAMICS I/OS FOR USE WITH SIMOTION...........................................12
2 USE OF SINAMICS I/OS BY SIMOTION ..................................................................................13
2.1 FREE FRAME CONFIGURATION WITH P915/P916.......................................................................15
2.2 FREE FRAME CONFIGURATION VIA BICO .................................................................................16
2.2.1 Example: TM31 with SIMOTION D410 .............................................................................17
2.3 FRAME EXTENSION ...................................................................................................................22
2.4 FRAME 39X ..............................................................................................................................24
2.4.1 Functionality of Frames 390, 391 and 392.........................................................................24
2.4.2 Configuration of Frame 39x ...............................................................................................26
2.4.3 Use of onboard I/Os by SIMOTION (as DI/DO) ................................................................27
© Siemens AG, 2008 All Rights Reserved
List of Tables
List of Figures
Figure 1-1: Insert input/output components ..................................................................................................9
Figure 1-2: Integration of I/Os ..................................................................................................................... 10
Figure 1-3: Configuration in interconnection screen forms.......................................................................... 11
Figure 2-1: Entering the number of process status data for input and output data ..................................... 17
Figure 2-2: Reading in the address range of the input and output data ...................................................... 18
Figure 2-3: Selecting process status data................................................................................................... 19
Figure 2-4: Interconnection of the TM31 digital inputs and analog inputs ................................................... 19
Figure 2-5: Interconnection of the TM31 digital outputs and analog outputs............................................... 20
Figure 2-6: PROFIdrive message frame ..................................................................................................... 22
Figure 2-7: Example: Interconnection of the onboard DIs in PROFIBUS transmit direction........................ 23
Figure 2-8: Configuration of Frame 39x ...................................................................................................... 26
Figure 2-9: Configuring DI/DO as an input or output................................................................................... 28
Note
SINAMICS is used as a general term for the following versions:
for SINAMICS Integrated with SIMOTION D410 and D4x5
for the CX32 SIMOTION Controller Extension
(scaling of the processing power on the drive end of a SIMOTION D4x5)
for SINAMICS S110/S120 Control Units (CU305, CU310 and CU320)
This is particularly important for references to the project tree in the SCOUT engineering
system, as the names of the entries in the project tree vary accordingly.
In this document, Control Unit (CU) is used as a general term for SIMOTON D, CX32 and
CU305/CU310/CU320.
© Siemens AG, 2008 All Rights Reserved
1 Basic Principles
The approach to be pursued for configuration and possible fields of application depend on
whether I/Os assigned to SIMOTION or SINAMICS are used.
Example for use Controlling of I/Os by means of a gating logic, Use of a DI on the Control Unit for the
e.g. programmed in LAD/FBD control of Safe Stop 1;
Use of a DO for the output of the "Infeed
ready signal"
Note
The module hardware of TM15 (SIMOTION) and TM15 DI/DO is identical, and a difference is
only made when inserting the component. In the project navigator under the corresponding
SINAMICS CU, double click on "Insert input/output component". In the dialog which pops up,
select the "TM15 (SIMOTION)" or "TM15 DI/DO" terminal module in the "Drive objects type"
field.
Î For more detailed information, refer to the “TM15/TM17 High Feature Terminal Modules”
Commissioning Manual.
The designation "(SIMOTION)" with TM15 and TM17 High Feature in the dialog "insert
input/output components" is only made from V4.1 SP2 on.
Onboard I/Os of a Control Unit (D4xx, CU3xx, CX32), and also TB30, TM15, TM15 DI/DO,
TM17 High Feature, TM31 and TM41, are SINAMICS I/Os, and the related inputs and outputs
are available to SINAMICS functions (example: DO for the output of the Ready signal of the
infeed).
In order to use SINAMICS I/Os with SIMOTION, these I/Os must be connected to frames via a
BICO interconnection on the SINAMICS end in order to ensure that the inputs and outputs can
be accessed from this end. For more detailed information on the various connection options,
refer to Chapter 2, Use of SINAMICS I/Os by SIMOTION.
The TM15 and TM17 High Feature terminal modules are an exception, as an interconnection
to a “free frame” is performed automatically already upon the creation of the modules. This
ensures that the data of the frame is mapped to the I/O area of SIMOTION.
© Siemens AG, 2008 All Rights Reserved
TM15 and TM17 High Feature are therefore exclusively available for SIMOTION.
o Module TM15
Æ Drive objects type TM15 DI/DO Æ BICO-interconnectable
(utilization by SIMOTION and/or SINAMICS)
Æ Drive objects type TM15 (SIMOTION) Æ exclusive utilization by SIMOTION
o Module TM17 High Feature
Æ Drive objects type TM17 (SIMOTION) Æ exclusive utilization by SIMOTION
The SINAMICS S110/S120 CU305, CU310 and CU320 drives are connected as stations to a
real bus segment of the PROFIBUS or PROFINET type.
The SINAMICS Integrated of a D4xx and the CX32 Controller Extension are represented as a
station on the "virtual" PROFIBUS Integrated. The "virtual" bus is extended by SINAMICS
Integrated to the CX32 Controller Extension via the "real" DRIVE-CLiQ.
Due to the consistent representation of SINAMICS Integrated, the CX32 Controller Extension
and the CU305/CU310/320 SINAMICS Control Units, the configuration is to a large degree
independent of the topology.
SIMOTION D4xx
SIMOTION Runtime PROFIBUS/PROFINET
TM15 TM17
program I O (SIMOTION) (SIMOTION)
(ST, LAD, FBD, MCC) PROFIBUS I O I O
Integrated
Frames Onboard TB30 TM15
- Free frame999 DRIVE- E/A (Option) DI/DO TM31 TM41
- Frame 39x I O I O I O I O I O
- Axis frames CLiQ
- ...
Automatic
SINAMICS interconnection
CX
Integrated on configuration 32
of TM15/TM17
TM15 TM17
BICO interconnection (SIMOTION) (SIMOTION)
by user
I O I O
DRIVE-CLiQ
Note
Access via the process image is more performant than direct access.
Operation Manual.
on I/O processing on field bus systems (timing, classification within the task system), refer to
the Basic Functions Function Manual.
I/Os assigned to SINAMICS are interconnected using the engineering tools of the drive. These
include:
BICO interconnection
via parameters in the expert list
via interconnection screen forms
configuration via SINAMICS Drive Control Charts (DCC)
For more detailed information on the drive configuration, BICO interconnection and DCC, refer
to the manuals of the SINAMICS S110/S120 drive system.
Note
The TM15 and TM17 High Feature terminal modules are an exception. When creating the
modules, an automatic interconnection to a "free frame" is performed.
TM15 and TM17 High Feature therefore are exclusively available for SIMOTION.
By means of the frame configuration, all or some I/Os assigned to SINAMICS can be used by
SIMOTION.
Depending on the frame configuration, I/O data is exchanged with SIMOTION as follows:
With SINAMICS Integrated D4xx and CX32:
© Siemens AG, 2008 All Rights Reserved
For more detailed information on configuration options, refer to Chapter 2, Use of SINAMICS
I/Os by SIMOTION.
Depending on the frame configuration, some or all I/Os assigned to SINAMICS can be used by
SIMOTION.
Examples:
Use of the SINAMICS I/Os for the input and output of digital or analog signals from the
SIMOTION user program (example: use of the onboard I/Os of a D4x5 assigned to
SINAMICS by the SIMOTION user program)
Use of SINAMICS I/Os in order to use drive-related functions (output cam output,
measuring input, external zero mark, etc.)
In order to use SINAMICS I/Os with SIMOTION, input and output data must be exchanged by
frames.
By means of the frame configuration, the SINAMICS I/Os are mapped in the logic address area
of SIMOTION and can thus be used by a SIMOTION application.
© Siemens AG, 2008 All Rights Reserved
By means of BICO interconnections on the drive end, it is determined which SINAMICS I/Os are
mapped to the frame.
From the SIMOTION D, frame contents are accessed via I/O variables or input/output
addresses.
Depending on how the I/Os are to be used, different configuration options can be defined.
Use of Frame 39x In order to access the onboard I/Os of Only possible for onboard I/Os of CUs; Onboard I/Os on
a Control Unit (D4xx, preferred solution if all onboard I/Os D410, D4x5,
Î see Chapter 2.4 CU305/CU310/CU320, CX32) from are to be used by SIMOTION (inputs CU305, CU310,
SIMOTION, 39x frames are can be additionally connected on the CU320, CX32
alternatively available for free frame SINAMICS end); use of fast output
configuration or frame extension. cam outputs or fast DO with D4xx; use Note:
of "global" measuring inputs CU305, CU310,
CU320, CX32 do not
provide
fast output cam
outputs
Note
With the "frame extension" and the "free frame configuration via BICO" options, the inputs and
outputs can be used for selective channels via SIMOTION or SINAMICS.
With Frame 39x, however, all onboard inputs and outputs are automatically connected to the
39x frame via BICO interconnections and thus are available to all SIMOTION applications. The
following rules apply:
All onboard terminals configured as a digital output on the drive end are exclusively
available for SIMOTION (i.e. they are no longer available for use by SINAMICS).
Exception: CU3xx/CX32 from V4.1 SP4 on
Digital inputs can be used by both SIMOTION and SINAMICS.
Details see Chapter 2.4.8, Notes on the use/reparameterization of Frame 39x
The TM15 and TM17 High Feature terminal modules are an exception (this, however, does not
apply to TM15 DI/DO).
TM15 and TM17 High Feature are connected to the Control Unit via the DRIVE-CLiQ interface.
Thus, they are assigned to SINAMICS.
When inserting a TM15 or TM17 High Feature, however, a connection to a "Free frame with
P915/P916" is performed automatically.
The frame structure and length depend on the configured properties of the inputs and outputs.
For example, the I/O channels can be specified as DIs, DOs, measuring inputs or output cam
outputs.
The automatic connection of the frame ensures that the functions of the modules can be used
exclusively by SIMOTION. The functions are controlled from the SIMOTION user program via
input and output addresses or I/O variables.
Configuration on the drive end via BICO / DCC SINAMICS is not possible.
With the "Free frame configuration via BICO", the corresponding drive objects (e.g. terminal
modules) are assigned specific frames for data transmission.
In order to ensure that the SINAMICS drive signals (e.g. I/Os) can be accessed from the
SIMOTION, these signals must be connected to the frame on the SINAMICS end via BICO.
For example, the "Free frame configuration via BICO" is the preferred solution for the
distribution of I/Os between SIMOTION and SINAMICS for selective channels and if a module
view is preferred (for example, the frame is applied to a drive object, such as a TM or a CU).
Table 2-2: Drive object: Maximum number of process status data (PZD)
Drive object Maximum number of process status data
for the configuration of PROFIdrive
message frames
Input data Output data
(from the (from the
SIMOTION D end) SIMOTION D end)
TM15 DI/DO 5 5
TM31 5 5
TM41 19 16
TB30 5 5
CU 15 5
The free frame configuration via BICO includes the following steps:
Freely configure the frame
Connect frame for TM31
Create I/O variables in SIMOTION
Prerequisite
You have already created a project and configured a drive.
input/output component". In the dialog which pops up, select the "TM31" terminal module
in the "Drive objects type" field.
2. Enter the name of the module to be inserted and then click on OK to confirm.
3. In the project navigator under "SINAMICS_Integrated", double click on "Communication"
> "Message frame configuration" in order to open the "PROFIdrive message frame"
screen form.
The "Free message frame configuration with BICO" (Frame 999) has been selected for
the inserted TM31. Next, enter the number of process status data for the input and output
data. Be aware of the maximum number of process status data for the drive objects in
transmit and receive direction (see Table 2-2: Drive object: Maximum number of process
status data, on page 16). For example, a TM31 can have max. 5 process status data.
4. Enter a 3 under "Input data" and "Output data" in the "Length" column.
Figure 2-1: Entering the number of process status data for input and output data
5. Click the "Transfer to HW Config" button in order to transmit the data to HW Config and to
read in the address area of the input and output data.
Note
Prior to the adjustment, all drive objects without I/O addresses ("---..---") must be moved
behind the objects with I/O addresses which still have to be adjusted ("???..???") or valid
I/O addresses.
© Siemens AG, 2008 All Rights Reserved
Figure 2-2: Reading in the address range of the input and output data
You can now transmit data from TM31 to SIMOTION (transmit direction) or receive data from
SIMOTION (receive direction).
4. Now interconnect the analog inputs AI 0 and AI 1 in the same way (r4055[0] and r4055[1],
current value in percent; 100% = 4000 Hex).
Figure 2-4: Interconnection of the TM31 digital inputs and analog inputs
1. In the created TM31 double-click on "Communication". The related screen form pops up.
2. Change to the tab "Receive directions"
3. For PZD1, please click on the symbol for the bitwise representation and interconnect the
single bits to p4038 (DO 8) up to p4041 (DO 11) as well as p4030 (DO 0) and p4031 (DO
1). On PZD2 and PZD3 you connect the analog outputs AO 0 and AO 1 (p4071[0] and
p4071[1])
© Siemens AG, 2008 All Rights Reserved
Figure 2-5: Interconnection of the TM31 digital outputs and analog outputs
Note
If you perform the above-mentioned interconnections "online", you must:
prior to the interconnection: load the frame configuration into the Control Unit.
after the interconnection: upload your settings into the PG. To do this, select
"SINAMICS_Integrated" using the context button in the project navigator and then select
Destination device > Load into PG.
1. In the project navigator under the created SIMOTION D4xx, double click on "I/O".
The symbol browser pops up.
2. Enter a name for the I/O variable.
3. Enter an I/O address, e.g.:
o "PI277.0" Î for accessing PZD1 Bit 0 of the configured frame
o "PI276.0" Î for accessing PZD1 Bit 8 of the configured frame
You can now access the signal from SIMOTION.
Process status data (PZD) are defined as 16-bit values based on the PROFIdrive profile. When
determining the I/O address, it must be considered that the less significant byte of the
SIMOTION I/O variable is assigned to (and inverts) the more significant PZD bits of frame:
© Siemens AG, 2008 All Rights Reserved
Table 2-3: Assignment of the byte representation versus the process status data (PZD)
representation
I/O address Byte 276 Byte 277
Byte in bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
representation
PZD in bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
representation
DI/DO 8...11 the address PQ 276.0 to PQ 276.3 (if DI/DO is parameterized as DO)
AO 0 the address PQW 278
AO 1 the address PQW 280
With the "frame extension", existing standard frames (e.g. axis frames) are extended by
additional process status data (PZD) and the additional process status data is then
interconnected via BICO (e.g. to an actual speed value or the status of a digital input).
The "frame extension" is the preferred solution if I/Os are to be distributed among SIMOTION
and SINAMICS and e.g. an axis view is preferred (drive-related I/Os should be attached to each
axis frame).
1. Insert a drive using the drive wizard and select e.g. "Standard frame 103" for the process
data exchange.
2. In the project navigator under "SINAMICS_Integrated", double click on "Communication"
© Siemens AG, 2008 All Rights Reserved
> "Message frame configuration" in order to open the "PROFIdrive message frame" tab
card.
In this tab card, the lengths of the input and output data are pre-assigned for the inserted
drive. The addresses of the input and output data have not yet been transmitted to
HW Config and are therefore pre-assigned with "???".
3. Highlight the line of the object the frame of which you want to extend.
4. Click the "Insert line" button and select the "Message frame extension" option from the
menu which pops up.
The new line with the frame extension is inserted below the highlighted line.
5. In the "Length" field of the input and output data, specify by how many process status
data the frame has to be extended.
6. Click the "Transfer to HW Config" button in order to transmit the changes to HW Config.
The red check mark in the line shows that a changed standard protocol is used. Following
the transmission to HW Config, the input and output addresses are entered.
Note
Prior to the adjustment, all drive objects without I/O addresses ("---..---") must be moved
behind the objects with I/O addresses which still have to be adjusted ("???..???") or valid
I/O addresses.
9. Via BICO, interconnect the added process status data (at the end of the PZD list) with the
desired signals.
Note
The program does not show a warning message if you interconnect more process status data
than indicated in the additional process status data. Be aware that a SERVO drive object
supports up to 16 process status setpoint values and 19 process status actual values. The
VEKTOR drive object supports up to 32 process status setpoint and actual values.
Note
If you perform the above-mentioned interconnections "online", you must:
prior to the interconnection: load the frame connection into the Control Unit.
after the interconnection: upload your settings into the PG. To do this, select
"SINAMICS_Integrated" using the context button in the project navigator and then select
Targes device > Load to PG.
Basic Principles
By means of Frame 39x, SIMOTION can use the onboard I/Os of a Control Unit assigned to
SINAMICS in a particularly convenient manner. The functionality is supported by SIMOTION
V4.1, SP1 (or higher).
When setting a 39x frame, the SINAMICS I/Os are automatically connected to the 39x frame via
BICO interconnections and thus are available for SIMOTION. All onboard I/Os of a Control Unit
specified as digital outputs are exclusively available to SIMOTION; digital inputs can be used by
both SIMOTION and SINAMICS.
© Siemens AG, 2008 All Rights Reserved
Besides the use of the onboard I/Os, the 39x frame allows for the use of
fast output cam outputs and fast digital outputs (DO) with SIMOTION D4xx
"global" measuring inputs
the control and status word of the Control Unit (CU_CW; CU_SW)
Table 2-4: Overview of the functionalities of frames 390, 391 and 392
Frame Functionality available on the DI/DO
D410 D4x5 CX32, CU310, CU320,
CU3052)
390 o CU_CW; CU_SW o CU_CW; CU_SW o CU_CW; CU_SW
o I/O access to the DIs and DOs o I/O access to the DIs and DOs o I/O access to the DIs and DOs
o up to 4 fast output cam outputs / o up to 8 fast output cam outputs /
DOs DOs
391 o CU_CW; CU_SW o CU_CW; CU_SW o CU_CW; CU_SW
o I/O access to the DIs and DOs o I/O access to the DIs and DOs o I/O access to the DIs and DOs
o up to 4 fast output cam outputs / o up to 8 fast output cam outputs / o up to 2 measuring inputs
1)
DOs DOs (global measuring inputs)
o up to 2 measuring inputs o up to 2 measuring inputs
(global measuring inputs) (global measuring inputs)
392 o CU_CW; CU_SW o CU_CW; CU_SW o CU_CW; CU_SW
o I/O access to the DIs and DOs o I/O access to the DIs and DOs o I/O access to the DIs and DOs
o up to 4 fast output cam outputs / o up to 8 fast output cam outputs / o CU320: max. of 6 measuring
1)
DOs DOs inputs (global measuring inputs)
o up to 3 measuring inputs o up to 6 measuring inputs o CU310/CX32: max. of 3
(global measuring inputs) (global measuring inputs) measuring inputs (global
1)
measuring inputs)
1)
in connection with CX32, CU310 and CU320, released from V4.1 SP2 on
2)
Utilizing CU305 with global measuring inputs: please ask hotline for current status
For the configuration of local measuring inputs, the 39x frame does not need to be configured.
The maximum quantity framework of "Fast output cam outputs / DOs" is reduced by the number
of measuring inputs used, as the same terminals are used.
© Siemens AG, 2008 All Rights Reserved
Prerequisites
The following prerequisites are met:
A project has been created.
The Control Unit (e.g. SIMOTION D410 DP) has been inserted.
A drive has been configured.
A frame has been configured for the Control Unit. The address range of the frame is shown in
© Siemens AG, 2008 All Rights Reserved
With the frame configuration of Frame 39x, BICO interconnections are performed automatically
for the DI and DI/DO and thus are available for SIMOTION.
After the message frame configuration with automatic BICO interconnection, digital outputs can
be connected to SINAMICS sources via manual BICO reconnections (as from SIMOTION V4.1
SP4, only for CU3xx/CX32; see Chapter 2.4.8, Notes on the use/reparameterization of Frame
39x)
When defining a 39x frame, the onboard I/Os are automatically connected to the 39x frame via
BICO interconnections and thus are available to all SIMOTION applications. The following rules
apply:
All onboard terminals configured as digital outputs on the drive end are exclusively
available for SIMOTION (i.e. they are no longer available for use by SINAMICS).
Exception: CU3xx/CX32 from V4.1 SP4 on
Digital inputs can be used by both SIMOTION and SINAMICS.
Details see Chapter 2.4.8, Notes on the use/reparameterization of Frame 39x
Address assignment
Frame 390 transmits the control and status word of the Control Unit in PZD 1 and the status of
the onboard inputs and outputs in PZD2.
With frames 391 and 392, control and status information is additionally transmitted for the global
© Siemens AG, 2008 All Rights Reserved
measuring inputs. The contents of PZD3 to PZD15 are exclusively used by the Measuring Input
technology object and are not relevant for the user.
Note
Write access to the CU_CW can only be performed by means of the _setDriveObjectSTW
system function.
Only a read access to the CU_CW is possible with I/O variables ("Read only" checkbox in the
I/O symbol browser).
To access the individual process status data for accessing the I/Os, I/O variables have to be
created in SIMOTION. To do this, the input or output address of Frame 39x in the "PROFIdrive
message frame" screen form is required.
Example: Frame 390 (address of the input data = 276; address of the output data = 276)
© Siemens AG, 2008 All Rights Reserved
Alternatively, the setting can be performed via the p728 parameter in the expert list of the
Control Unit, for selective channels (context menu of the Control Unit: "Expert" > "Expert list").
Note:
When configuring telegram 39x and onboard I/Os, it is absolutely necessary to consider Chapter
2.4.8, Notes on the use/reparameterization of Frame 39x.
If a 390, 391 or 392 frame has been configured, the onboard outputs of the SIMOTION D can
be used
as an output cam output or
as a fast output with write access from the user program
Note:
If I/O data is transmitted via bus frames, the update of the I/O data depends on the defined bus
cycle.
Therefore, an I/O via Frame 39x can change its state only once in each bus cycle of PROFIBUS
Integrated.
SIMOTION D onboard outputs are controlled via direct write access to the hardware (i.e.
without considering the frame):
Write access to digital outputs therefore becomes effective with a particularly short delay
time (as the write access is independent of the bus cycle)
Furthermore, a more precise output cam output is possible (see Table 3-1: Comparison of
© Siemens AG, 2008 All Rights Reserved
Direct write access is not possible on CX32, CU305, CU310 and CU320.
The delay time resulting from fast write accesses from the user program includes the following
individual delays:
Delay time of the user program Î Terminal register: up to 75 µs
Load-dependent output delay time of the hardware
with D410/D4x5: L Î H: up to 400 µs
H Î L: up to 100 µs
For fast output cam outputs / digital outputs, the same addresses have to be used as for the
"normal" use of the digital outputs.
2.4.6 Use of the control and status word of the Control Unit
© Siemens AG, 2008 All Rights Reserved
Note
Write access to the CU_CW is only permissible via the _setDriveObjectCW system function.
Only read access to the CU_CW is possible with I/O variables ("Read only" checkbox in the I/O
symbol browser).
A fault can only be acknowledged with the _resetDriveObjectFault system function.
Faults and warnings are notified with the PeripheralFaultTask of SIMOTION.
For more detailed information on the control and status word, refer to the manuals of the
SINAMICS S110/S120 drive system.
The following particularities have to be considered when the inputs and outputs are used by
SIMOTION based on the configuration of Frame 39x:
Table 2-8: Overview: Particularities to be considered when using onboard DOs with
Frame 39x
Frame 39x No Frame 39x configured
configured
Access options to digital output (DO) see Chapter 4.3, Configuration of Depending on the BICO
global measuring inputs on a Control interconnection, the output can be
Unit used by SIMOTION or SINAMICS
DO is BICO-interconnectable Yes
Inversion settings Not effective effective
(= cu.p748)
Behavior in STOP state of LOW level After the first transition of the
SIMOTION controller to RUN state, the outputs
are set according to the BICO
© Siemens AG, 2008 All Rights Reserved
Table 2-9: Overview: Particularities to be considered when using onboard DIs with
Frame 39x
DI assigned to SIMOTION DI assigned to SINAMICS
via Frame 39x
DI is BICO-interconnectable Yes Yes
(r721, r722, r723) The state of the DI can be further
connected on the SINAMICS end
Settings for simulation effective effective
(= cu.p795 / cu.p796)
Behavior in the STOP state of The signal state of the DI is still The inputs function independently of
SIMOTION available on the SIMOTION end the drive, and the STOP state has no
influence.
Status display in the interconnection The status is displayed (even if the The status is displayed (also in STOP
screen forms of SIMOTION SCOUT SIMOTION CPU is in STOP state) mode of the SIMOTION CPU)
Access rights for diagnostic purposes are displayed via CU parameter r0729.
Bit = 1: SIMOTION has access rights to the digital output
Bit = 0: SINAMICS has access rights to the digital output
To avoid consistence problems, please proceed as follows when using frame 39x.
Note
The described method of proceeding has to be applied
When you have changed the telegram in connection with telegram 39x, e.g.
reparameterization from:
telegram 39x Æ telegram 39y
"free telegram configuration with BICO (teleg. 999)" Æ telegram 39x
telegram 39x Æ "free telegram configuration with BICO (teleg. 999)"
when you have changed parameters that are relevant to the onboard I/Os (e.g. settings of
the CU parameters cu.p728/cu.p680)
Proceeding:
1. Go offline to change telegrams (e.g. settings/reparameterization of telegram 39x) or to
make I/O-interconnections (e.g. parameterization of an onboard DI/DO as DO,
parameterization of a global measuring inputs via cu.p728/cu.p680, ...).
2. Realize a HW Config adjustment after the changes have been made.
© Siemens AG, 2008 All Rights Reserved
The HW Config adjustment is always made only for the corresponding selected control unit
in the configuration tree and not project-globally!
3. Execute "save project and compile all"
4. Go "online"
5. Load the configuration to the D4xx and the SINAMICS Integrated with "load project to target
system". Activate the option "copy RAM to ROM after loading".
6. Please execute a power OFF/ON in the following cases. As an alternative, you can also
make a RESET via the RESET key of the D4xx:
V4.1 SP1: Power OFF/ON is necessary after every reparameterization
V4.1 SP2/4: Power OFF/ON is only necessary if you reset the telegram 39x to "free
telegram configuration with BICO (teleg. 999)"
We generally recommend applying this method of proceeding even if this is not always
necessary for some scenarios.
Note
In principle, the described method of proceeding is also valid for the configuration of TM15 /
TM17 high feature with telegram P915/P916.
Proceed as follows:
1. Set Frame 390 for the Control Unit.
2. Immediately afterwards (without adjustment to HW Config), return to "Free frame
configuration with BICO".
This procedure automatically generates preassignments for the wiring of the inputs and
outputs to SIMOTION.
3. Next, perform an adjustment to HW Config.
4. Modify the connections a desired.
This procedure does not generate any configuration information for fast output cam
© Siemens AG, 2008 All Rights Reserved
outputs/digital outputs, as you have not performed a HW Config adjustment with defined Frame
39x.
Note:
We urgently recommend NOT to proceed as follows: Set a Frame 39x, perform an adjustment
to HW Config and then return to "Free frame configuration with BICO".
In this case, configuration information is generated for fast output cam outputs/digital outputs
and global measuring inputs. By returning to "Free frame configuration with BICO", this
configuration information is maintained and can now cause inconsistencies due to the BICO
interconnections which now follow.
In order to return from 39x to the free BICO configuration, proceed as described under
Recommended method of proceeding for the configuration of telegram 39x on page 34.
Error identification
In case of incorrect configurations (e.g. incorrect BICO wiring), inconsistencies can occur with
the standard Frame 39x.
Error elimination
Note
An output via I/O-variables to a digital output, which is simultaneously used by a TO Output
Cam or TO Cam Track, is not possible.
When loading the configuration to the target system, an error message is indicated.
Please, also consider that SINAMICS or the terminal module must be ramped-up before any
access to an I/O is possible.
One possibility to check if the ramp-up has been realized, is to use the system function
_getSafeValue and _setSafeValue. These functions permit to eliminate errors when having
access to the I/O-variables.
With the aid of the return value you can see if the access was successful.
Note
In principle, the described method of proceeding is also valid for the configuration of TM15 /
TM17 High Feature with telegram P915/P916.
© Siemens AG, 2008 All Rights Reserved
Output cams involve the position-dependent output of switching signals. For SIMOTION, the
output cam output is controlled by the Output Cam and Cam Track technology objects (TO).
To configure the output cam output via standard I/Os, the logic hardware address and the bit
number of the output is indicated with TO Output Cam or TO Cam Track.
© Siemens AG, 2008 All Rights Reserved
To configure the output cam output, the logic hardware address and the bit number of the
output are indicated for the TO Output Cam or TO Cam Track technology object.
The onboard digital outputs of the SIMOTION D can be used as output cam output or as fast
output with write access from the user program.
In order to be able to use the fast outputs, a 390, 391 or 392 frame must be created.
Note:
If I/O data is transmitted via bus frames, the update of the I/O data depends on the defined bus
cycle.
Therefore, an I/O via Frame 39x can change its state only once during each PROFIBUS
Integrated bus cycle.
SIMOTION D onboard outputs are controlled via direct write access to the hardware (i.e.
without considering the frame). Consequently:
a write access to digital outputs becomes effective after a particularly short delay time (as
the write access is independent of the bus cycle).
the output cam output is more precise (see Table 3-1: Comparison of components for fast
output cam output on page 39).
© Siemens AG, 2008 All Rights Reserved
The delay time resulting from fast write access from the user program includes the following
individual delays:
Delay time of the user program Î Terminal register: up to 75 µs
Load-dependent output delay time of the hardware
with D410/D4x5: L Î H: up to 400 µs
H Î L: up to 100 µs
Bei der Konfiguration des TO Nocken / TO Nockenspur müssen Sie den DO/DO als Ausgangs
parametrieren and die logische HW-address and Bitnummer des verwendeten Ausgangs in die
eintragen.
Note
When configuring telegram 39x and onboard I/Os, it is absolutely necessary to consider Chapter
2.4.8, Notes on the use/reparameterization of Frame 39x.
© Siemens AG, 2008 All Rights Reserved
3.2.2 Fast output cam outputs with TM15 / TM17 High Feature
The quantity framework on the output cam outputs can be extended by means of the TM15 and
TM17 High Feature terminal modules:
TM15: up to 24 output cam outputs
TM17 High Feature: up to 16 output cam outputs
Depending on the hardware, local and global measuring inputs are available for measuring
tasks.
Local measuring inputs are axis-related and realized in the SINAMICS drive. The actual
© Siemens AG, 2008 All Rights Reserved
Table 4-2: Overview of the quantity frameworks and functionality of measuring inputs
Max. quantity framework available
D410 CU305 CU310 D4x5 CX32 CU320 TM15 TM17
High
Feature
Max. number of 3 2 3 6 3 6 24 16
measuring inputs
Configurable as x x x x x x --- ---
local measuring
inputs 1)
Configurable as x ---2) x x x x x x
global measuring (released (released (released
from V4.1, from V4.1, from V4.1,
inputs SP2 on) SP2 on) SP2 on)
1)
A maximum of two measuring inputs per axis
2)
Utilizing CU305 with global measuring inputs: please ask hotline about current status
Local measuring inputs are always assigned to an axis (drive). They are specifically configured
for each individual drive. The drive and the measuring input must always be located on the
same Control Unit. The measuring results are transmitted via the axis frame as specified by the
PROFIdrive profile.
The configuration of Frame 39x is not required for local measuring inputs.
The following Control Units support local measuring inputs: D410, D4x5, CX32, CU305, CU310,
CU320
Table 4-3: Local measuring inputs, required settings in the expert list
Parameterization of Via the p728[8....15] parameters of the Control Parameterization as
DI/DO as an input Unit, all DI/DO used as measuring inputs must D4x5, D410,
be defined as inputs. CU320 CX32,
CU305,
© Siemens AG, 2008 All Rights Reserved
CU310
p728[8] parameter (DI/DO 8) DI/DO 8 (apart from the
CU305) cannot be used as
measuring input
p728[9] parameter (DI/DO 9) Input Input
p728[10] parameter (DI/DO 10) Input Input
p728[11] parameter (DI/DO 11) Input Input
p728[12] parameter (DI/DO 12) DI/DO 12 cannot be used as
measuring input
p728[13] parameter (DI/DO 13) Input ---
p728[14] parameter (DI/DO 14) Input ---
p728[15] parameter (DI/DO 15) Input ---
Definition of the The terminals for the local measuring inputs Parameterization (selection)
measuring input (probe inputs) must be assigned via the D4x5, D410,
terminal p488[0..2] and p489[0..2] parameters of the CU320 CX32,
drive. CU305,
CU310
p488[0] parameter DI/DO 8 (*)
Probe 1 input terminal, Encoder 1 DI/DO 9 DI/DO 9
p488[1] parameter DI/DO 10 DI/DO 10
Probe 1 input terminal, Encoder 2 DI/DO 11 DI/DO 11
p488[2] parameter DI/DO 13
Probe 1 input terminal, Encoder 3 DI/DO 14 (*) only
p489[0] parameter DI/DO 15 CU305
Probe 2 input terminal, Encoder 1
p489[1] parameter
Probe 2 input terminal, Encoder 2
p489[2] parameter
Probe 2 input terminal, Encoder 3
A maximum of 3 encoders can be assigned to a drive, and the index [0..2] specifies whether the
measurement refers to Encoder 1, 2 or 3.
Global measuring inputs can be freely assigned to the axes (drives). They assign the measuring
result an internal time stamp for the highly accurate determination of the axis positions.
The drive and the measuring input do not need to be located on the same Control Unit. The
measuring results are not transmitted via the axis frame, but via Frame 391 / 392.
The following Control Units support global measuring inputs:
from V4.1, SP1 on: D410, D4x5
from V4.1, SP2 on: CX32, CU310 and CU320
CU305: please ask hotline about current status for CU305
Table 4-5: Global measuring inputs, required settings in the expert list
Parameterization of Via the p728[8....15] parameters of the Control Unit, all Parameterization as
DI/DO as an input DI/DO used as measuring inputs must be defined as inputs.
D4x5, D410,
CU320 CX32,
CU310
© Siemens AG, 2008 All Rights Reserved
Besides the parameter settings, Frame 391 (up to 2 measuring inputs) or 392 (up to 6
measuring inputs) must be defined for the Control Unit.
The p680 parameter is used to define a terminal as global measuring input.
With frame 391, p680[0..1] can be assigned
With frame 392, p680[0..5] can be assigned (D410/CX32/CU310 only p680 [0..2])
It is not relevant on which parameter the desired terminal is defined. The measuring inputs are
assigned to an axis via the logic hardware address and the bit number of the digital input to be
used as the measuring input.
--> see Table 2-5: Address assignment: Control/status word and onboard I/Os
Furthermore, the measuring input can be inverted via the p490 / p2088[2] parameter of the
Control Unit. Please note that both parameters need changing.
Examples:
Inversion DI/DO9: p490.9 = INVERTED; p2088[2].1 = INVERTED
Inversion DI/DO10: p490.10 = INVERTED; p2088[2].2 = INVERTED
Inversion DI/DO11: p490.11 = INVERTED; p2088[2].3 = INVERTED
Inversion DI/DO13: p490.13 = INVERTED; p2088[2].5 = INVERTED
Inversion DI/DO14: p490.14 = INVERTED; p2088[2].6 = INVERTED
Inversion DI/DO15: p490.15 = INVERTED; p2088[2].7 = INVERTED
Note:
The p684 and r685 to r688 Control Unit parameters are not relevant for SIMOTION.
Don't change any parameters which have an influence of the interconnection of global
measuring inputs to telegram 39x (e.g. cu.p2082)
© Siemens AG, 2008 All Rights Reserved
Note
When configuring telegram 39x and onboard I/Os, it is absolutely necessary to consider Chapter
2.4.8, Notes on the use/reparameterization of Frame 39x.
Logic hardware address and Enter the logic hardware address and the bit number of the input used.
bit number Logic hardware address and bit number Input D4x5, Input D410,
CU320 CX32,
CU310
Start address Frame 39x + 3, Bit 0 DI/DO 8 cannot be used as
measuring input
Start address Frame 39x + 3, Bit 1 DI/DO 9 DI/DO 9
Start address Frame 39x + 3, Bit 2 DI/DO 10 DI/DO 10
Start address Frame 39x + 3, Bit 3 DI/DO 11 DI/DO 11
Start address Frame 39x + 3, Bit 4 DI/DO 12 cannot be used as
measuring input
Start address Frame 39x + 3, Bit 5 DI/DO 13 ---
Start address Frame 39x + 3, Bit 6 DI/DO 14 ---
Start address Frame 39x + 3, Bit 7 DI/DO 15 ---
The quantity framework on global measuring inputs can be extended by means of the TM15 and
TM17 High Feature terminal modules:
TM15: up to 24 global measuring inputs
TM17 High Feature: up to 16 global measuring inputs
Provided that the Control Unit supports the individual functionality, the following combinations
are possible:
Global and local measuring inputs can be combined on the same Control Unit.
A local measuring input can also be used as an input for external zero marks.
A global measuring input cannot be used as an input for external zero marks (download
message: p495[0..2] parameter: inadmissible value)
Global measuring inputs and fast output cam outputs can be combined on a SIMOTION D
(e.g. for D4x5: 2 measuring inputs; 6 output cam outputs)
For measuring inputs, the static state of the input can be read via the same digital input.
For more detailed information on the integration in the runtime system, refer to the following
document:
Basic Functions Function Manual, Chapter Runtime System/Tasks/System Cycles –
Integration of Drive I/Os
The following FAQ programming examples are available for the integration of the onboard I/Os,
TM15 DI/DI, TM31 and TB30.
The examples are written in Structured Text. The supported functionality includes the following
functions:
Reading out data words from the frame and writing the values in the individual global
variables (for BOOL binary words, e.g. the status of the inputs)
Reading out the individual variables and writing the data words in the frame
Depending on the required response times, the program can be executed in the background or
also in an IPO task.
For analog inputs and outputs (TB30, etc.), respectively one additional FC is available for the
© Siemens AG, 2008 All Rights Reserved
conversion of the normalized percent value (-200% ... +200%) into a floating point number and
vice versa.
Download Sources
More detailed information on these documents is available under the following FAQ:
http://support.automation.siemens.com/WW/view/en/29063656
Besides more detailed information, the link also provides access to the sources of the
programming examples.
For performance reasons, it is more advisable to access the I/O area word by word instead of
creating individual BOOL variables for I/O access.
Annex
8 Modifications
Table 8-1: Modifications/Author
Version Date/Modification
V1.0 April 18, 2008 / creation of the initial document
V1.1 August 19, 2008 / supplements to V4.1, SP2
V1.2 August 29, 2009 / supplements to V4.1, SP4
9 Reference List
© Siemens AG, 2008 All Rights Reserved
References
This list is not complete. It only provides a selection of reference literature.
Table 9-1: List of documents
Subject Title
/1/ High Speed I/Os with TM15/TM17 High Feature Terminal Modules
terminal modules Commissioning Manual
/2/ Configuration of the SIMOTION Output Cams and Measuring Inputs
technology objects Manual
/3/ Runtime and task Basic Functions Function Manual
system
/4/ Programming SIMOTION ST Structured Text Programming and
Operation Manual
/5/ Drive technology Manuals of the SINAMICS S120 drive system
10 Contact Persons
Application Center
SIEMENS
Siemens AG
Automation & Drives
I DT MC PM APC
Frauenauracher Str. 80
D-Erlangen
Fax: +49 9131-98-1297
mailto: applications.erlf.aud@siemens.de
© Siemens AG, 2008 All Rights Reserved