当前位置:网站首页>How to calculate the running time of terminal equipment (such as water pump) during TIA Bo (attached with FB library file)?
How to calculate the running time of terminal equipment (such as water pump) during TIA Bo (attached with FB library file)?
2022-07-18 11:53:00 【AAA_ Automation Engineer】
How to be in TIA Bo en route computing terminal equipment ( For example, water pump ) Running time of ( attach FB The library files )?

In order to calculate the running time of terminal equipment , You can read CPU And calculate the difference between the two times .
STEP 7 (TIA Portal) Two extension instructions are provided "RD_SYS_T" ( Read time ) and “T_DIFF” ( Time difference ). The calculated time output is the difference between the read data , That is, the running time of the equipment .
As shown in the figure below , by SCL Detailed program of language :
When the input parameter “startTime" The signal is "0”, The first condition is met , The first order "RD_SYS_T" Will be performed ;
When the input parameter “stopTime" The signal is "0”, The second condition is met , The second order "RD_SYS_T" Will be performed .
The picture below shows OB "Main" Call in FB "Timedifferent" Example :
| Specific usage : |
Instructions for measuring the running time of terminal equipment :
step 1
边栏推荐
猜你喜欢

YGG 成立了新的 SubDAO——YGG日本

Intel helps open medical service and promote the intellectualization of ultrasonic prenatal examination

【Unity】Animator动画倒播,与StartRecording动画录制

JSD-2204-MVC-微博项目-Day15

Plug in development of meshlab
![[Load balancer does not contain an instance for the service mall-coupon]和项目正常启动但注册不上nacos](/img/ff/0f617ddad80a1b042a6c647c33188f.png)
[Load balancer does not contain an instance for the service mall-coupon]和项目正常启动但注册不上nacos

读书笔记:程序员的自我修养---第一章

Development of upper computer -- a series of database problems are solved in a net
![[MySQL project actual combat optimization] add index through execution plan analysis](/img/27/d7b6ba77b617f14905aec38dc92618.png)
[MySQL project actual combat optimization] add index through execution plan analysis

The Sandbox Alpha 第三季首支预告片
随机推荐
网络安全从业人员应具备的职业素养
Reverse linked list of C language force deduction question 206. Double fingered needle method, iterative recursion (three methods). Graphic nanny tutorial
如何基于知识图谱技术构建现代搜索引擎系统、智能问答系统、智能推荐系统?
How to write each part of the thesis well?
[MySQL project actual combat optimization] add index through execution plan analysis
Matlab_插值与抽取
MATLAB绘图_1绘制衰减震荡曲线
Go read yaml's pit
Shutter ShowDialog Popup
【VSCode】切换文件与编辑器的快捷键
JS12day(构造函数创建类对象,prototype, proto,原型链,forEach,filter,some,Oblect.keys(),Object.defineProperty())
【C】动态内存管理(相关函数、常见错误、笔试题)
Torch code template
单元测试界的高富帅,Pytest框架 (完) 测试报告篇
无线通信安全作业4
【C语言】静态通讯录的实现
银行案例|Zabbix跨版本升级指南,4.2-6.0不香吗?
Basic functions commonly used in unity
【C语言】自定义类型总结
【C语言】结构体、枚举、联合体