Professional Documents
Culture Documents
(Library SIMOCODE
Data Records)
Siemens
SIMOCODE pro V PN, TIA Portal Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109745043 Support
Warranty and Liability
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 Siemens AG.
Security Siemens provides products and solutions with industrial security functions that support the
informa- secure operation of plants, systems, machines and networks.
tion In order to secure plants, systems, machines and networks against cyber threats it is
necessary to implement (and to maintain continuously) a holistic, state-of-the-art Industrial
Security concept. With this in mind, Siemens’ products and solutions are only part of such
a concept.
It is the client’s responsibility to prevent unauthorized access to his plants, systems,
machines and networks. Systems, machines and components should only be connected
with the company’s network or the Internet, when and insofar as this is required and the
appropriate protective measures (for example, use of firewalls and network segmentation)
have been taken.
In addition, Siemens’ recommendations regarding appropriate protective action should be
followed. For more information on Industrial Security, visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them even
more secure. Siemens explicitly recommends to carry out updates as soon as the
respective updates are available and always only to use the current product versions. Use
of product versions that are no longer supported, and failure to apply latest updates may
increase customer’s exposure to cyber threats.
In order to always be informed about product updates, subscribe to the Siemens Industrial
Security RSS Feed at http://www.siemens.com/industrialsecurity.
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Mode of operation ................................................................................ 5
1.3 Components used ................................................................................ 5
2 Engineering ........................................................................................................ 7
2.1 Components of the block library ........................................................... 7
2.2 Interface description LSDR_ReadRec ................................................. 8
2.2.1 Parameters ........................................................................................... 8
2.2.2 Diagnostics ........................................................................................... 9
2.3 Integration into the user project .......................................................... 10
3 Appendix .......................................................................................................... 16
3.1 Service and support ........................................................................... 16
3.2 Links and literature ............................................................................. 17
3.3 Change documentation ...................................................................... 17
Siemens AG 2017 All rights reserved
1 Introduction
1.1 Overview
SIMOCODE pro is a flexible, modular motor management system for motors with
constant speed in the low-voltage range.
The basic device SIMOCODE pro V PN can be integrated via PROFINET into a
higher-level automation system such as SIMATIC S7-1500.
Besides the cyclically exchanged control and status signals, SIMOCODE pro V PN
provides a wide range of data records which can be read or written acyclically.
SIMATIC S7-1500
Siemens AG 2017 All rights reserved
SIMOCODE pro V PN
By means of the block library "LSDR" (Library SIMOCODE Data Records) block
library, you can read data records without much programming work and store the
data in structured PLC data types for easy access.
You can read the following data records with the block library:
Device diagnostics
Measurements
Service / statistical data
stream with slice access and shift operations in a structured way. For this purpose,
the block library "LSDR" provides various PLC data types.
NOTE The block library is also available for download for TIA Portal V13 SP1.
2 Engineering
2.1 Components of the block library
Blocks
Table 2-1: Blocks of the block library
Name Description
LSDR_ReadRec Reads the data records "Device diagnostics",
"Measurements" or "Statistics" of a SIMOCODE device
and stores the received data in structured data types.
Data types
Table 2-2: Main data types of the block library
Name Description
LSDR_typeControl Control and status tags for interconnecting the block
"LSDR_ReadRec"
LSDR_typeDataRecords Grouping of the data types of the following data
records:
"LSDR_typeDeviceDiag"
"LSDR_typeMeasurements"
"LSDR_typeStatistics"
Siemens AG 2017 All rights reserved
Note The meaning of the individual tags of the data types can be found in the
"SIMOCODE pro PROFINET" system manual:
https://support.industry.siemens.com/cs/ww/en/view/61896631/82017614859
Watch tables
Table 2-4: Watch tables of the library
Name Description
LSDR_ReadRec Watch table for controlling and evaluating the
"LSDR_ReadRec” function block
LSDR_ReadRec
status Word
drDeviceDiag
Siemens AG 2017 All rights reserved
"LSDR_typeDeviceDiag" "LSDR_typeDeviceDiag"
drMeasurements
"LSDR_typeMeasurements" "LSDR_typeMeasurements"
drStatistics
"LSDR_typeStatistics" "LSDR_typeStatistics"
Note Create an own instance of the "LSDR_ReadRec" function block for each
SIMOCODE device the data records of which you want to read.
2.2.2 Diagnostics
The table below explains the status codes of the "status" output.
5. Click on the "Open global library" icon and select the "LSDR.al13" file of the
unzipped file.
No. Action
6. Expand the "LSDR" library and the "Types" folder.
7. Select the block and the data types and drag and drop it to the "Program blocks"
folder of your CPU.
Siemens AG 2017 All rights reserved
The data types are automatically stored in the "PLC data types" folder.
8. Drag and drop the "LSDR_ReadRec" watch table from the "Master copies" folder
into the "Watch and force tables" folder of your CPU.
Table 2-8: Creating a global data block for the received data records
No. Action
1. Double-click "Add new block" in the project navigation.
2. Create a data block with the name "DataRecords" and select
"LSDR_typeDataRecords" as type.
Siemens AG 2017 All rights reserved
The data block you have just created contains a tag for each of the three data
records.
Note As an alternative, you can create a global data block with several tags of the type
"LSDR_typeDataRecords" which contains the data records of several
SIMOCODE basic devices.
3. In the project navigation, open the "Main [OB1]" organisation block or another
block from which you want to read the data records.
4. Drag and drop the "LSDR_ReadRec" function block from the project navigation
into an empty network of the opened block.
No. Action
5. Assign a name such as "InstReadRec" to the instance of the function block.
6. Interconnect the parameters of the function block with the corresponding tags of
the previously created data blocks.
Siemens AG 2017 All rights reserved
No. Action
10. In the area navigation of the inspection window, click "Hardware identifier" and
note down the HW identifier.
11. Go back to the block in which you call "LSDR_ReadRec" and enter the HW
identifier you have noted down at the "hwID" parameter.
Siemens AG 2017 All rights reserved
12. Load the project into your CPU and control the function block via the
"LSDR_ReadRec" watch table.
3 Appendix
3.1 Service and support
Industry Online Support
Do you have any questions or need support?
Siemens Industry Online Support offers access to our entire service and support
know-how as well as to our services.
Siemens Industry Online Support is the central address for information on our
products, solutions and services.
Product information, manuals, downloads, FAQs and application examples – all
information is accessible with just a few mouse clicks at
https://support.industry.siemens.com
Technical Support
Siemens Industry's Technical Support offers quick and competent support
regarding all technical queries with numerous tailor-made offers – from basic
support to individual support contracts.
Please address your requests to the Technical Support via the web form:
www.siemens.com/industry/supportrequest
Service offer
Siemens AG 2017 All rights reserved
Our service offer comprises, among other things, the following services:
Product Training
Plant Data Services
Spare Parts Services
Repair Services
Field & Maintenance Services
Retrofit & Modernization Services
Service Programs & Agreements
Detailed information on our service offer is available in the Service Catalog:
https://support.industry.siemens.com/cs/sc