Documentos de Académico
Documentos de Profesional
Documentos de Cultura
analog modules
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 2019 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
at: https://www.siemens.com/industrialsecurity.
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Mode of operation ................................................................................ 4
1.3 Components used ................................................................................ 7
2 Engineering ........................................................................................................ 8
2.1 Calibration requirements ...................................................................... 8
2.2 Hardware setup .................................................................................... 8
2.3 Description of interface......................................................................... 9
2.4 Project integration .............................................................................. 14
2.4.1 Integrating the library.......................................................................... 14
2.4.2 Hardware setup .................................................................................. 14
2.4.3 PLC integration ................................................................................... 15
2.4.4 HMI integration ................................................................................... 16
2.5 Configuration ...................................................................................... 19
2.6 Operation at HMI ................................................................................ 21
2.6.1 Modes ................................................................................................. 23
2.6.2 Wire break detection .......................................................................... 30
2.7 Error handling ..................................................................................... 31
3 Example: User calibration of analog output module 0 to 10 V ................... 33
© Siemens AG 2019 All rights reserved
1 Introduction
1.1 Overview
Introduction
The characteristics of analog-digital/digital-analog converters in analog modules
are usually offset and not uniform in their rising This means you must calibrate the
characteristics to the conditions of the analog module. A general distinction is
made between factory calibration and user calibration.
Factory calibration
To ensure the accuracy of an analog module, it is calibrated during production in
the factory. You cannot delete or change the factory calibration. You can only read
the factory calibration values.
User calibration
You can start, delete and read back a user calibration for an analog module with
error-free parameter assignment at any time. User calibration is used to increase
the accuracy for specific use cases with deviations that can be compensated, for
example, by sensors or wiring.
Zero-Scale/Offset calibration
© Siemens AG 2019 All rights reserved
Zero-Scale or Offset calibration is the calibration of the zero point. Usually "0" for
bipolar ranges and the low limit of the nominal range for unipolar ranges. The
characteristic of the converter is offset corrected and thus shifted into the zero
point.
Full-Scale/Gain calibration
Full-Scale or Gain calibration is the calibration of the end point. It is usually the high
limit of the nominal range. The slope of the converter characteristic is adjusted so
that it also intersects the end point.
Procedure
The user calibration is controlled by the data sets (DS). You must write a job data
set for the analog module and receive instructions for further actions in the
acknowledgment data set.
The analog module saves the user calibration values. The values always apply
only to the input/output range for which they were created. If the input/output range
is re-parameterized, the factory calibration values will be used once again, but the
user calibration values still exist.
Each user calibration receives a time stamp (for each channel), which includes the
date and time of the last user calibration of the channel.
The analog module controls the number of required calibration steps for a user
calibration.
The actions, which you must start or confirm during user calibration, are also
initiated by the analog module. The set input/output range of a channel can only be
calibrated completely during a user calibration (zero-scale and full-scale). Partial
calibration is not possible (e.g. zero-scale only).
The figure below shows the steps required for the user calibration of an instruction
to the analog module.
Calibration start
An active/running calibration is reported for analog modules with diagnostic
capability:
• Analog modules with channel diagnostics signal error 31 (Channel temporarily
unavailable) for the affected channel, channel fault LED lights up red, the
module fault LED flashes.
• Analog modules which support the value status (QI) set QI to "BAD".
The user calibration can be started at any time. The start requires that the channel
was parameterized without errors and that it is not already in another calibration
mode:
• After starting the user calibration and until it is completed, all other commands
result in the user calibration being aborted.
• After completing the calibration step, the data are updated, and the status is
set:
– The command was accepted with status "OK, Ready". The number of
steps that still need to be executed and the action that you need to execute
next is specified.
– For the user actions "Short-circuit, Infeed, Measuring" and "Remove
connections", the relevant terminals are specified under Terminal 1" and
"Terminal 2", whereby "Terminal 1" is always the positive terminal.
– For the user actions "Infeed" or "Measuring", the unit is specified for a
measured variable (e.g. μA or mV).
– If any errors occur, the calibration is aborted. The analog module resumes
the same status as before the calibration was started.
Calibration sequence
Each calibration step is triggered by writing the job data set, applied from the
previously signaled acknowledgment data. Next, the analog module must read and
evaluate the acknowledgment data set.
• For status "OK, Working", the calibration of the analog module initiated with the
data is still in progress.
• For status "OK, Ready", the calibration of the analog module initiated with the
data is complete and was processed without errors.
• For other statuses/errors, the calibration of the analog module initiated with the
data was not processed successfully and was acknowledged with an error. The
ongoing calibration is aborted and any determined calibration values are
discarded.
© Siemens AG 2019 All rights reserved
Calibration exit
You can exit the calibration in any calibration step. Any calibration values
determined until then will be lost. The analog module resumes the same status as
before the calibration was started
Calibration completion
The last calibration step is the confirmation of the calibration or of the determined
calibration values. All calibration values of the current calibration process are
determined and signaled back.
By confirming the calibration values, the time stamp is entered automatically. The
newly determined calibration values are now valid and in effect. The previous user
calibration values are overwritten and cannot be restored. In case of an error in the
last calibration step, the corresponding error code is signaled in the status. The
new calibration values are discarded.
Calibration counter
Each error-free and complete user calibration of a channel is counted. More than
255 calibration processes do not increase the calibration counter.
Each Reset command deletes the calibration counter.
2 Engineering
2.1 Calibration requirements
Only the HF (High Feature) modules support the calibration process.
Only modules with FW version higher than 2.0 support the calibration process.
dataSet typeCalibrationDataSet
dataSetExtended typeCalibrationDataSetExtended
control typeCalibrationRequest
hmi typeCalibrationHMI
In order to use the library functions, they must first be integrated into the
configuration software. The required steps can be found in the following tables.
The library is available on the website from which you downloaded this document.
1. First of all, unzip the file on your hard disk. The library for TIA Portal V15.1 has
the file name "User_Calibration_Library_V1". The library was created with
TIA Portal version V15.1. If you have a TIA Portal version higher than V15.1, a
message will be displayed saying that the library will be upgraded to your
TIA Portal version.
2. Now, open the project view and go to the "Libraries" tab. Right-click "Retrieve
library" in "Global libraries". Now, select the "User_Calibration_Library_V1"
library file and follow further instructions of TIA Portal.
© Siemens AG 2019 All rights reserved
The PLC, HMI and ET 200 device with modules must be configured to continue
with the integration of the library. Only the HF (High Feature) modules support the
calibration process.
Import 4x UDT from the library (PLC-UDT) to your PLC program, PLC data types.
Import the "Calibration" function block and "CalibrationControl" data block from the
library (PLC-Block) to your PLC program, Program blocks.
Call the "Calibration" function block in the OB and assign the input parameters of
the block according the figure below.
Import the tag table from the library (HMI-Data) to your HMI, HMI tags.
NOTICE Open the newly imported tag table and check if the connection corresponds with
the connection of the project. If not, it is necessary to correct it.
Import the screens from the library (HMI-Screen) to your HMI, Screens. All
necessary text lists are automatically imported to the project together with the
screens.
Import the pop-up screens from the library to your HMI, Screen management –
Pop-up screens.
Import the VB scripts from the library to your HMI, Scripts – VB scripts.
2.5 Configuration
After any modification of the hardware configuration of the analog modules, it is
necessary to modify the list of available modules in the HMI.
It is necessary to fill in the correct hardware identification (in the column "Value")
and module name (in the "Text" column). This name is then used to identify the
module on the HMI screen.
Go to the tab "System constants" and read the hardware identification from the
table.
4. "Select operation"
a. "Calibration" will start the user calibration. Follow the steps on the
screen.
b. "Read Values" will return the calibration values for a specified channel
and a parametrized input/output range.
c. "Reset" will open a screen with several factory resets.
NOTE The button "Get Info" displays the input/output type and range of the specified
channel.
2.6.1 Modes
User calibration
The calibration process of analog modules differs based on the type of an analog
module. Follow the instruction on the screen to finish the process. Also see the
Example: User calibration of analog output module 0 to 10 V.
As soon as the analog module signals the status "OK, Ready", the calibration of
the channel is aborted.
The channel has the same state as before the calibration. The values of the last
valid calibration are in use again. The input/output range currently set on the
channel is signaled.
NOTE If the analog module detects an error during a calibration process, this error will
abort the calibration. The error is signaled in the status.
Only the current calibration values of the specified channel are read with the
command. These are the calibration values associated with the parameterized
input/output range.
The "Offset", the "Gain", "Add1" (if present) and "Add2" (if present), the "Calibration
counter" and the "Time stamp" are displayed on the screen.
The calibration counter specifies if the values are factory calibration values or user
calibration values. For user calibration values, the value of the calibration counter is
equal to the number of successful calibration processes for this input/output range
(since the last user calibration of a different input/output range).
NOTE The "Back" button displays the screen with the operation selection.
There are three different options to do a reset. Click on the desired reset option
and continue. The reset options are described in the following.
The pop-up window with the confirmation of the selected reset will be shown.
The reset is complete and the involved calibration counters are set to "0" again.
The screen "Choose the functionality" is shown.
The wire break detection is automatically turned off before the calibration and
automatically turned on after the calibration.
The analog module acknowledges the change to the user calibration (mode = Use
calibration) and the status "OK, Working". As soon as the analog module signals
the status "OK, Ready", the remaining data of the data set are valid, and you can
evaluate the data.
The number of required calibration steps (3) is signaled in the upper right corner
and in the "Next" button.
As soon as the analog module signals the status "OK, Ready", the remaining data
of the data set are valid, and you can evaluate the data.
The number of necessary calibration steps is decremented.
NOTE Click on the "Abort" button to delete the new values and use the last valid values.
As soon as the analog module signals the status "OK, Ready" in the status field,
the determined calibration values and the time stamp of the calibration are applied
and saved. The calibration is completed.
© Siemens AG 2019 All rights reserved
4 Appendix
4.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:
https://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:
https://www.siemens.com/industry/supportrequest
© Siemens AG 2019 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:
https://support.industry.siemens.com/cs/sc