追梦工控论坛|工控论坛-专业的Intouch论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

总共8104条微博

动态微博

查看: 3813|回复: 0

[分享] 西门子博图V15通用函数库

[复制链接]

升级  27.5%

  • TA的每日心情
    无聊
    2020-11-21 20:02
  • 签到天数: 8 天

    [LV.3]连长

    发表于 2020-11-13 19:25:20 | 显示全部楼层 |阅读模式

    上传分享工控资料得追梦点,下载积分获取办法点击进入 ☆追梦点充值入口
    发帖回帖赚金币兑换下载积分。上传附件须知点击进入

    ×

    马上注册,结交更多工控达人,分享经验,让你轻松玩转追梦工控论坛。

    已有帐号?  点击登录   或者        

    支付宝扫一扫领红包
    本帖最后由 arcan 于 2020-11-13 19:26 编辑

    个人感觉这个库还是很强大的,有矩阵计算,还有一些模拟量信号波形等等。这个是说明文档。
    链接:https://pan.baidu.com/s/1zgYDU_TXUXjhij58h3GaXw
    提取码:h58j

    复制这段内容后打开百度网盘手机App,操作更方便哦

    Table of Contents
    Legal information ......................................................................................................... 2
    1 Library Overview ................................................................................................ 5
    1.1 General ................................................................................................. 5
    1.2 Hardware and software requirements .................................................. 5
    1.3 Library resources .................................................................................. 6
    2 Working with the Library................................................................................... 8
    2.1 General ................................................................................................. 8
    2.2 Simulatability with SIMATIC S7-PLCSIM Advanced (NEW) ................ 9
    3 Explanation of the Blocks ............................................................................... 11
    3.0 Bit logic operations ............................................................................. 12
    3.0.1 FB LGF_PulseRelay ........................................................................... 12
    3.1 Date and timer operations .................................................................. 14
    3.1.1 FB LGF_Astro (correction) ................................................................. 14
    3.1.2 FB LGF_SetTime ............................................................................... 18
    3.1.3 FB LGF_TimerSwitch (correction) ...................................................... 21
    3.1.4 FC LGF_CalendarDayWeek .............................................................. 24
    3.1.5 FC LGF_GermanHoliday (NEW) ........................................................ 26
    3.2 Counter operations ............................................................................. 28
    3.2.1 FC LGF_CountFalInDWord ................................................................ 28
    3.2.2 FC LGF_CountRisInDWord................................................................ 30
    3.3 Comparator operations ....................................................................... 32
    3.3.1 FC LGF_CompareVariant .................................................................. 32
    3.3.2 FC LGF_CompareReal ...................................................................... 34
    3.4 Math operations .................................................................................. 36
    3.4.1 FC LGF_AverageAndDeviation .......................................................... 36
    3.4.2 FB LGF_FloatingAverage................................................................... 38
    3.4.3 FC LGF_MatrixAddition ...................................................................... 40
    3.4.4 FC LGF_MatrixInverse ....................................................................... 42
    3.4.5 FC LGF_MatrixMultiplication .............................................................. 44
    3.4.6 FC LGF_MatrixSubtraction................................................................. 46
    3.4.7 FC LGF_MatrixTranspose .................................................................. 48
    3.4.8 FB LGF_MinMaxHistory ..................................................................... 49
    3.4.9 FC LGF_RandomBasic ...................................................................... 50
    3.4.10 FC LGF_RandomINT / LGF_RandomReal ........................................ 51
    3.4.11 FC LGF_SearchMinMax ..................................................................... 53
    3.4.12 FC LGF_XRoot ................................................................................... 55
    3.4.13 FC LGF_HighLowLimit ....................................................................... 56
    3.4.14 FB LGF_Integration ............................................................................ 58
    3.4.15 FC LGF_Factorial (NEW) ................................................................... 60
    3.4.16 FC LGF_Distance (NEW) ................................................................... 61
    3.5 Data handling ..................................................................................... 62
    3.5.1 FB LGF_FIFO ..................................................................................... 62
    3.5.2 FB LGF_LIFO (NEW) ......................................................................... 65
    3.5.3 FB LGF_RingBuffer (NEW) ................................................................ 68
    3.5.4 FB LGF_ShellSortInt / LGF_ShellSortUInt / LGF_ShellSortReal....... 70
    3.5.5 FC LGF_CRC8 (NEW) ....................................................................... 72
    3.5.6 FC LGF_CRC8For1Byte (NEW) ........................................................ 73
    3.5.7 FC LGF_CRC16 (NEW) ..................................................................... 74
    3.5.8 FC LGF_CRC32 (NEW) ..................................................................... 75
    3.6 Converter operations .......................................................................... 77
    3.6.1 FC LGF_BinaryToGray ...................................................................... 77
    3.6.2 FC LGF_GrayToBinary ...................................................................... 78
    3.6.3 FC LGF_BitsToWord .......................................................................... 79
    Table of Contents
    Library of General Functions (LGF)
    Entry ID: 109479728, V4.0.2, 10/2018  4
     Siemens AG 2018 All rights reserved
    3.6.4 FC LGF_WordToBits .......................................................................... 80
    3.6.5 FC LGF_DTLtoString ......................................................................... 81
    3.6.6 FC LGF_StringToDTL ........................................................................ 83
    3.6.7 FC LGF_TemperatureConvert ........................................................... 85
    3.6.8 FC LGF_ScaleLinear .......................................................................... 86
    3.6.9 FC LGF_StringToTaddr ...................................................................... 89
    3.6.10 FC LGF_TaddrToString ...................................................................... 91
    3.6.11 FC LGF_IntToString (NEW) ............................................................... 92
    3.6.12 FC LGF_TimeToString (NEW) ........................................................... 93
    3.7 Signal generators ............................................................................... 94
    3.7.1 FB LGF_Frequency ............................................................................ 94
    3.7.2 FB LGF_Impulse ................................................................................ 96
    3.7.3 FB LGF_SawTooth ............................................................................. 97
    3.7.4 FB LGF_SawToothCI (NEW) ............................................................. 99
    3.7.5 FB LGF_TriangleCI (NEW) .............................................................. 101
    3.7.6 FB LGF_RectangleCI (NEW) ........................................................... 103
    3.7.7 FB LGF_SinusCI (NEW) .................................................................. 105
    3.7.8 FB LGF_CosinusCI (NEW) .............................................................. 107
    3.8 Technology operations ..................................................................... 109
    3.8.1 FB LGF_LimRateOfChangeBasic .................................................... 109
    3.8.2 FB LGF_LimRateOfChangeAdvanced ............................................. 112
    3.8.3 FB LGF_Ramp ................................................................................. 117
    3.8.4 FB LGF_NonLin ............................................................................... 122
    3.8.5 Closed-Loop Control of Simulated Controlled Systems ................... 124
    4 Links & Literature .......................................................................................... 125
    5 History............................................................................................................. 126
    5.1 Library versioning ............................................................................. 126
    5.2 Change log ....................................................................................... 127






    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x

    评分

    参与人数 1金币 +3 收起 理由
    黑羽盗一 + 3 期待补充使用方法,加分奖励

    查看全部评分

    让我们联手拒绝网络伸手党,下载积分获取办法&附件上传须知 ☆追梦点充值入口





    +1
    3813°C
    沙发哦 ^ ^ 马上
    *滑块验证:
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    请珍惜自己的ID,严禁发布垃圾水贴,诸如adsf......顶......纯表情......多次重复回帖刷积分......轻则删帖警告,重则封禁!★请分享资料、经验或者赞助论坛,贡献一份力量★

    关闭

    最新活动上一条 /1 下一条

    小黑屋|手机版|追梦工控论坛|工控论坛-专业的Intouch论坛 ( 皖ICP备10012005号 )|网站地图

    GMT+8, 2024-11-1 09:00 , Processed in 0.070827 second(s), 23 queries , Gzip On, APCu On.

    Powered by Dreamyiyi

    © 2009-2025 工控论坛

    快速回复 返回顶部 返回列表