没有合适的资源?快使用搜索试试~ 我知道了~
西门子S7-1200/1500PLC 博途PLC函数库文档 基本控制库使用文档
需积分: 24 26 下载量 64 浏览量
2022-08-17
13:03:31
上传
评论
收藏 3.95MB PDF 举报
温馨提示
试读
94页
博途PLC函数库文档 基本控制库 LBC使用文档 LBC库函数 基本控制库函数
资源详情
资源评论
资源推荐
Legal information
Library of Basic Controls (LBC)
Entry-ID: 109792175, V1.0.0, 03/2021
2
Siemens AG
2021 All rights reserved
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
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.
1 Introduction
Library of Basic Controls (LBC)
Entry-ID: 109792175, V1.0.0, 03/2021
3
Siemens AG
2021 All rights reserved
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 5
1.1 Overview............................................................................................... 5
1.2 General information .............................................................................. 5
1.3 Hardware and software requirements .................................................. 6
1.4 User-defined documentation ................................................................ 7
2 Library Concept ................................................................................................. 8
2.1 Modularization ...................................................................................... 8
2.2 Independent of field of application ....................................................... 8
2.3 Storage of configuration parameters .................................................... 8
2.4 Diagnostic ............................................................................................. 9
2.5 Module interface ................................................................................. 10
3 Program Blocks ............................................................................................... 12
3.1.1 LBC_AnalogInput (FB / V1.0.0) .......................................................... 12
3.1.2 LBC_AnalogOutput (FB / V1.0.0) ....................................................... 18
3.1.3 LBC_AnalogScale (FB / V1.0.0) ......................................................... 23
3.1.4 LBC_DigitalSignal (FB / V1.0.0) ......................................................... 27
3.1.5 LBC_DriveControl_StdPlc (FB / V1.0.0) ............................................ 31
3.1.6 LBC_DriveControl_TecPlc (FB / V1.0.0) ............................................ 38
3.1.7 LBC_MotorStarter (FB / V1.0.0) ......................................................... 45
3.1.8 LBC_StarDeltaStarter (FB / V1.0.0) ................................................... 50
3.1.9 LBC_ThreeWayActuator (FB / V1.0.0) ............................................... 56
3.1.10 LBC_TwoHandControl (FB / V1.0.0) .................................................. 63
3.1.11 LBC_TwoWayActuator (FB / V1.0.0) ................................................. 66
4 PLC data types ................................................................................................. 71
4.1.1 LBC_typeDiagnostics (UDT) .............................................................. 71
4.1.2 LBC_typeInterfaceCommands (UDT) ................................................ 71
4.2 AnalogSignals .................................................................................... 72
4.2.1 LBC_typeAnalogProcessValues (UDT) ............................................. 72
4.3 AnalogSignals / Input ......................................................................... 73
4.3.1 LBC_typeAnalogInputConfiguration (UDT) ........................................ 73
4.3.2 LBC_typeAnalogInputInterface (UDT) ............................................... 73
4.4 AnalogSignals / Output ....................................................................... 75
4.4.1 LBC_typeAnalogOutputConfiguration (UDT) ..................................... 75
4.4.2 LBC_typeAnalogOutputInterface (UDT) ............................................. 75
4.5 AnalogSignals / Scale ........................................................................ 77
4.5.1 LBC_typeAnalogScaleConfiguration (UDT) ....................................... 77
4.5.2 LBC_typeAnalogScaleInterface (UDT) .............................................. 77
4.5.3 LBC_typeAnalogScaleValues (UDT) ................................................. 78
4.6 DigitalSignal ....................................................................................... 79
4.6.1 LBC_typeDigitalSignalConfiguration (UDT) ....................................... 79
4.6.2 LBC_typeDigitalSignalInterface (UDT) ............................................... 79
4.6.3 LBC_typeDigitalSignalProcessValues (UDT)..................................... 79
4.7 DriveControl ....................................................................................... 80
4.7.1 LBC_typeDriveControlConfiguration (UDT) ....................................... 80
1 Introduction
Library of Basic Controls (LBC)
Entry-ID: 109792175, V1.0.0, 03/2021
4
Siemens AG
2021 All rights reserved
4.7.2 LBC_typeDriveControlInterface (UDT) ............................................... 80
4.7.3 LBC_typeDriveControlProcessValues (UDT) ..................................... 80
4.8 MotorStarter ....................................................................................... 82
4.8.1 LBC_typeMotorStarterConfiguration (UDT) ....................................... 82
4.8.2 LBC_typeMotorStarterInterface (UDT) ............................................... 82
4.8.3 LBC_typeMotorStarterProcessValues (UDT) ..................................... 83
4.9 StarDeltaStarter .................................................................................. 84
4.9.1 LBC_typeStarDeltaStarterConfiguration (UDT) ................................. 84
4.9.2 LBC_typeStarDeltaStarterInterface (UDT) ......................................... 84
4.9.3 LBC_typeStarDeltaStarterProcessValues (UDT) ............................... 84
4.10 ThreeWayActuator ............................................................................. 86
4.10.1 LBC_typeThreeWayActuatorConfiguration (UDT) ............................. 86
4.10.2 LBC_typeThreeWayActuatorInterface (UDT)..................................... 87
4.10.3 LBC_typeThreeWayActuatorProcessValues (UDT) .......................... 87
4.11 TwoHandControl ................................................................................ 88
4.11.1 LBC_typeTwoHandControlConfiguration (UDT) ................................ 88
4.11.2 LBC_typeTwoHandControlInterface (UDT) ........................................ 88
4.11.3 LBC_typeTwoHandControlProcessValues (UDT) ............................. 88
4.12 TwoWayActuator ................................................................................ 89
4.12.1 LBC_typeTwoWayActuatorConfiguration (UDT) ................................ 89
4.12.2 LBC_typeTwoWayActuatorInterface (UDT) ....................................... 89
4.12.3 LBC_typeTwoWayActuatorProcessValues (UDT) ............................. 90
5 Appendix .......................................................................................................... 91
5.1 Service and support ........................................................................... 91
5.2 Links and Literature ............................................................................ 92
5.3 Change documentation ...................................................................... 93
6 Change log ....................................................................................................... 94
1 Introduction
Library of Basic Controls (LBC)
Entry-ID: 109792175, V1.0.0, 03/2021
5
Siemens AG
2021 All rights reserved
1 Introduction
1.1 Overview
The “Library of Basic Controls” (LBC) provides basic control modules that are
programmed in a standardized concept according to the Siemens programming
style guide and the PLCopen guideline.
In addition to that the library provides alarm text lists for each block.
NOTE
All blocks in the LBC were created in accordance with the Programming Style
Guide.
https://support.industry.siemens.com/cs/ww/en/view/81318674
1.2 General information
This library provides the starting point for the individual path of standardization.
The functions are provided in the form of a global library and can be used freely.
The library described here is versioned and it will be continuously extended and
improved.
For more information on libraries, visit:
Libraries in the TIA Portal
https://support.industry.siemens.com/cs/ww/en/view/109738702
How do you open libraries in STEP 7 (TIA Portal)?
https://support.industry.siemens.com/cs/ww/en/view/37364723
Information on the general handling of libraries is provided in the Guideline for
Library Handling
https://support.industry.siemens.com/cs/ww/en/view/109747503
and in the Programming Guideline for S7-1200/1500 in the chapter “Libraries”
https://support.industry.siemens.com/cs/ww/en/view/81318674
剩余93页未读,继续阅读
RXXW_Dor
- 粉丝: 4530
- 资源: 28
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0