EditParametersInSeveralDrivesAddIn DOC V17 en
EditParametersInSeveralDrivesAddIn DOC V17 en
several drives
Add-In V17:
Using Startdrive Openness
interface to enter parameters
for drive groups
Siemens
TIA Portal / Startdrive / TIA Portal Openness Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109777633 Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
Siemens AG 2021 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed:
https://www.siemens.com/industrialsecurity.
Table of Contents
Legal information ......................................................................................................... 2
1 Overview ............................................................................................................. 5
1.1 Introduction ........................................................................................... 5
1.2 Overview of the Application Example ................................................... 6
1.3 Components used ................................................................................ 6
2 Purpose............................................................................................................... 7
2.1 Problem description.............................................................................. 7
2.2 Requirements ....................................................................................... 7
2.3 Objectives ............................................................................................. 7
3 Requirements ..................................................................................................... 8
3.1 Required practical knowledge .............................................................. 8
3.2 System requirements ........................................................................... 8
4 Parameter Lists .................................................................................................. 9
4.1 Direct Access Lists ............................................................................... 9
4.2 DFI Lists (SINAMICS G only) ............................................................. 10
Siemens AG 2021 All rights reserved
7.5 Settings............................................................................................... 37
7.6 Diagnostics ......................................................................................... 37
7.7 Error Codes ........................................................................................ 39
7.7.1 LAcycCom_ReadDriveParams – Diagnostics Messages .................. 39
7.7.2 LAcycCom_WriteDriveParams – Diagnostics Messages .................. 40
7.7.3 FB_AcycJobs – Error Codes .............................................................. 41
8 Appendix .......................................................................................................... 42
8.1 Service and support ........................................................................... 42
8.2 Industry Mall ....................................................................................... 43
8.3 Application support ............................................................................. 43
8.4 Links and literature ............................................................................. 43
8.5 Change documentation ...................................................................... 43
Siemens AG 2021 All rights reserved
1 Overview
1.1 Introduction
By using the TIA Portal Openness interface, your own .NET applications can
integrate the TIA Portal in your development environment. Working from one
application, the programmer can perform TIA Portal functions, which entails
benefits such as:
Increased efficiency, thanks to faster execution of the task
Accuracy, thanks to the automation of consistent processes
Short commissioning times, thanks to program-supported creation of
configurations
Competitiveness, thanks to targeted use of resources
Note More information on TIA Portal Openness can be found at the following link:
https://support.industry.siemens.com/cs/search?search=openness
Using the Openness Startdrive interface, a user can access drive devices and
thereby read and write parameter values.
ATTENTION Improper use of the interfaces can result in data loss and production halt.
TIA add-ins offer a convenient way of expanding the functionality of the TIA Portal
via TIA Portal Openness. No additional external applications are required to run
TIA add-ins, because add-ins are started directly in the TIA Portal.
Online functions were created and tested using the following hardware:
Table 1-2: Hardware components
Components
SINAMICS G120 demo kit
Siemens AG 2021 All rights reserved
2 Purpose
2.1 Problem description
In applications such as logistics systems or in the automobile industry, oftentimes
more than 100 drives are controlled by one PLC. In materials handling applications,
for instance, drive settings are often standardized for various conveyor elements. In
such cases, the configurations are the same, or they differ only with respect to
parameters that are not performance-related.
When commissioning such a system it is repeatedly the case that settings
parameters have to be adjusted in order to achieve the desired drive
characteristics. These changes then have to be carried out for a great number of
drives (10 to 50). Although these are simple changes, they take considerable time.
To support the commissioning technician, the intention is to create a tool which can
be used to automate such changes.
2.2 Requirements
The application will use the Openness interface in order to access TIA Portal. The
tool should be implemented as a TIA Portal add-in. The following functionality
should be provided to the user:
Siemens AG 2021 All rights reserved
2.3 Objectives
By using the TIA Portal add-in EditParametersInSeveralDrives, the following
should be achieved:
Reduce commissioning time
Change parameters even without knowledge of TIA Portal
Prevent errors with the help of automatic processing
3 Requirements
3.1 Required practical knowledge
To work with the tool you will need:
Working knowledge of TIA Portal
Working knowledge of SINAMICS drives
Note Refer to chapter 4 of the the Openness documentation (see \3\) for how to add a
user to the user group Siemens TIA Openness.
4 Parameter Lists
Parameters whose values are to be read, written, or compared are managed by the
add-in of a parameter list.
A parameter list is created within the add-in and saved as an XML file. Multiple
parameter lists for different purposes can be simultaneously handled by the add-in.
The add-in continues to support different types of parameter lists.
Note The current whitelists can be found via the following link.
support.industry.siemens.com/cs/ww/en/view/109763491
The whitelist section of this entry is only visible to Siemens internally. If
Siemens AG 2021 All rights reserved
The add-in can be used to create a direct access list with all accessible parameters
(whitelist).
The add-in supports the creation of DFI lists and gives hints for missing
parameters.
Siemens AG 2021 All rights reserved
Note To use acyclic lists, the drive unit must be configured in the TIA project and
networked with a SIMATIC PLC.
Siemens AG 2021 All rights reserved
Value="3000"
Unit="rpm"
Min=""
Max="" />
</Parameters>
</SinParameterJob>
</Jobs>
</JobList>
Attention If you have already worked with older versions of the add-in and have created
parameter lists in the old format, you can convert them with the Import button.
Alternatively, the parameter lists created in the old format can be copied to the
list folder. These are automatically converted when the add-in is started.
Please note that the lists are overwritten with the current format and are no
longer available in the old format.
5 Installation
5.1 Installing the Add-In
In order for the TIA Portal to recognize the add-in, it must be copied to the AddIns
folder in the installation directory of the TIA Portal.
Attention The batch file must be executed as Administrator in order to copy files into the
installation folder of the TIA Portal.
Note Several groups or drive units can be selected by pressing the Ctrl key.
The following figure shows the selection of two drive units and the corresponding
context menu for starting the add-in.
Siemens AG 2021 All rights reserved
1 3 2
5
6
General settings
The following settings can be changed:
Storage location of all parameter lists. The add-in loads all lists in this directory.
New lists, as well as lists imported by the user, are stored there. This change is
not adopted until the next start.
Automatic saving of the TIA project.
Automatic saving of parameter lists.
Confirmation before deleting parameter lists or list entries (parameters or jobs).
Deleting lists from the file system, too, or not displaying them in the add-in
only. A list that has not been deleted from the file system is displayed again the
next time the add-in is started.
Display and number of TIA projects shown in the "last opened" list.
Reset all settings to default values.
Delete the list of the last opened TIA projects.
Parameter Lists
The following settings can be adjusted for parameter lists:
Allow only whitelist parameters to be added to direct access lists.
Confirm that RAM is saved to ROM when writing parameters online.
Automatic saving from RAM to ROM.
Restoring the online state of the drive after online operations or remaining
online.
Automatic scrolling when reading and comparing parameters.
Selection of the standard view when comparing drives. Either with parameter
columns and drive rows (useful when comparing many drives and few
parameters) or drive columns and parameter rows (useful when comparing
many parameters and few drives).
The checkboxes in front of the drives and groups can be used to select them. All
Siemens AG 2021 All rights reserved
selected drives are taken into account for mass operations (write parameters offline
or online, write motor & encoder data and compare parameters).
The Show all and Show selected buttons display either all or only the selected
drives in the navigation view.
Note Only drives of the same SINAMICS type can be selected at the same time.
DFI lists
Via the context menu of a drive, a list with all DFI parameters can be created with
the Create DFI list command.
The context menu of a parameter list can be used to rename, delete, duplicate, or
save it.
When renaming, the file name of the parameter list is also changed automatically.
Using Paste, parameters previously copied from the parameter area to the
clipboard are added to the selected parameter list.
Visible columns can be used to set the columns displayed in the parameter list
area.
When creating the list, the name must be specified, along with an optional
description. The file path is displayed in the lower part of the dialog. If a file with the
same name exists, the name is reset by appending a number.
The name and description of a parameter list can be changed later in the add-in.
Note Parameter lists can also be created manually with a text editor. Care must be
taken to ensure that the XML structure is correct.
Add parameters
Adding new parameters can be done either manually by editing the XML file, via
the context menu, or by using the search function. Alternatively, parameters can be
copied and added from another parameter list.
Search parameters
The search function can be used to search for parameters in the selected drive. If
the parameter is found, its description and value are displayed; otherwise an error
message is displayed.
The search function supports the input of a complete parameter name or,
alternatively, only the input of the parameter number. When searching for a
parameter with an index, enter the parameter number and the index, separated by
a comma. The zero index does not have to be entered. When searching for a
parameter bit, specify the parameter number and the bit number separated by a
period.
The following table shows some examples.
2. Parameter number
3. Parameter name
with index
4. Parameter number
with index
5. Parameter name
with bit number
6. Parameter number
with bit number
7. Parameter name
with index and bit
number
8. Parameter number
with index and bit
number
9. Parameter cannot
be found
To read all parameters independently of the Active checkbox, the context menu of
the drive offers the option Update list from selected drive Offline All or
Online All. The context menu in the parameter area (see Figure 6-9) also offers
this option.
The colors of the icons show which parameters were read successfully. The colors
are reset via the context menu in the parameter area (see Figure 6-9) with the
Reset coloring option.
The Change Parameters Online button writes the values of the activated
parameters to the selected devices. This establishes a connection to the devices.
The connection settings of the TIA Portal project are used. For this purpose, a
connection to the devices must already have been configured and established
once in the TIA Portal.
It is recommended to use the central setting of the online access path (see the TIA
Portal main menu "Extras / Settings / Online & Diagnostics / Preset connection
path for online access").
Before the data is written, you will be asked whether the changes should be saved
in a power-failure-proof manner (RAM to ROM).
CAUTION
The Switch View button changes the view so that the columns are converted to
rows and the rows are converted to columns. The results can be saved to a CSV
file using the Save button.
7 Acyclic Lists
Acyclic lists can be used when parameters must be accessed which are not
supported by the other list types or if the drive unit is not supported by Startdrive. In
the latter case, the drive unit is available as GSD/GSDML in the TIA Portal project.
With an acyclic list, the write and read requests from a PLC can be executed by
using DPV1 services. The Add-In creates all required PLC blocks from an acyclic
list and adds them to the PLC program in the TIA Portal project. All necessary
blocks are included in the library. The basis for this is the standard library
LAcycCom. The add-in stores the contents of the acyclic list in a data block.
The processing of an acyclic list is done later at PLC runtime, independent of the
use of the add-in. This means that the add-in gives no response about the success
or failure of processing an acyclic list.
Note Acyclic lists are only supported by a separately available version of the add-in.
To do this, contact the address given in Section8.3
Note To use acyclic lists, the drive unit must be configured in the TIA project and
networked with a SIMATIC PLC.
Siemens AG 2021 All rights reserved
7.1 Jobs
Acyclic lists support the following job types (jobs):
Read Job
List of parameters to be read. Up to 39 parameters can be read per job.
Write Job
List of parameters to be written. Up to 19 parameters can be written per job.
Check Job
List of parameters that must be checked for the given value before the PLC
continues with the next job. Up to 39 parameters can be checked per job. A
maximum waiting time can be entered. If this is exceeded without the specified
parameters reaching the expected values, an error is generated.
Pause job
It will specify a time to pause between jobs.
To create jobs, right-click the Jobs area and select Add New and then select the
desired job. You can also use the keyboard shortcuts to add jobs. However, before
doing so, click in the job area to be able to input keyboard commands there.
After you have added a job, you can add parameters. The next figure shows a list
for the quick commissioning of a G120X.
The parameters are added in the parameter area of the job via right-click >> Add
New or using Ctrl+Shift+N.
When generating, the supplied library is opened and all blocks contained there are
copied into the TIA Portal project. The blocks are stored in the AcycJobsGroup
group. A total of three groups are created.
In addition to the general blocks, two data blocks are created for each selected
axis:
DbAcycInst_xxx is an instance DB of FB_AcycJobs and is used to call the
block.
DbAcycCtrl_xxx represents the acyclic list and contains the jobs and the tags
that are connected to the inputs and outputs of the FB. This DB also contains
the values when reading parameters.
As shown in the figure, the instance DB is used for the call. The inputs and outputs
are connected to the Control DB. After loading, writing and reading can be started
by setting Execute in the Control DB.
Data loss
Please note that the groups are deleted each time they are generated.
CAUTION
Therefore, do not store your own code in these groups.
7.5 Settings
Via File >> Settings >> Acyclic Lists, you can set the following:
Storage location of the supplied library.
Activate auto numbering of blocks or assign start numbers.
Do not generate an error if the HW_ID cannot be determined.
Figure 7-9
Siemens AG 2021 All rights reserved
7.6 Diagnostics
When an error occurs, the output error is set and the error number is displayed in
status. In the static area of the instance DB, you can find the index of the current
job in the tag CurrentJobIndx.
If an error occurs when reading or writing a parameter, the error number is
displayed in the current job in the Control DB under errorValue for the affected
parameter (JobValue).
The FB errors are displayed in the status output. Errors from the write and read
blocks of the LAcycCom library are also copied to the status output. Based on the
type of the current job and the error number, you can find the error in the error
Siemens AG 2021 All rights reserved
8 Appendix
8.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts.
Please send queries to Technical Support via Web form:
siemens.com/SupportRequest
Siemens AG 2021 All rights reserved
Service offer
Our range of services includes the following:
Plant data services
Spare parts services
Repair services
On-site and maintenance services
Retrofitting and modernization services
Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc
The Siemens Industry Mall is the platform on which the entire siemens Industry
product portfolio is accessible. From the selection of products to the order and the
delivery tracking, the Industry Mall enables the complete purchasing processing –
directly and independently of time and location:
mall.industry.siemens.com
mailto:[email protected]