当前位置:网站首页>倍福通过CTU和TON实现时间片大小和数量的控制
倍福通过CTU和TON实现时间片大小和数量的控制
2022-06-26 12:38:00 【黄昏和星空】
在程序设计中,需要用到时间片,即每个时间片计时结束后进行跳转,同时也需要设置时间片的数量,例如4个时间片,则以一定时间进行轮询。本文基于CTU计数模块和TON进行实现。
1.1. 倍福Beckhoff
1.1.1. CTU介绍
即不抓到输入信号的上升沿计数一次,达到计数值PV之后输出Q,SV作为当前的计数值,Reset为复位清零。
1.1.1. TON介绍
TON的用法如下所示
1.1.2. 实际PLC程序
实现原理是用两个TON的互锁实现脉冲的闪烁,然后用CTU记录次数并达到上限复位清零,程序如下所示:
边栏推荐
- 国标GB28181协议EasyGBS级联宇视平台,保活消息出现403该如何处理?
- Lightflow completed the compatibility certification with "daocloud Enterprise Cloud native application cloud platform"
- File remote synchronization and backup artifact Rsync
- Redis learning - 03 transaction
- 轻流完成与「DaoCloud Enterprise 云原生应用云平台」兼容性认证
- Xiaobai lazy special-win10-win11 one click installation version
- 几行代码就能实现复杂的 Excel 导入导出,这个工具类真心强大!
- Software testing - Fundamentals
- 微信小程序测试点总结
- power designer - 自定义注释按钮
猜你喜欢
![[极客大挑战 2019]RCE ME 1](/img/66/e135f7e5a7cbdeb5b697f3939a3402.png)
[极客大挑战 2019]RCE ME 1
RSS rendering of solo blog system failed

ES6:Map

First knowledge - Software Testing

使用SSH密钥对登陆服务器
![[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3](/img/4a/503240b332e3279047c438f1d9845e.png)
[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3

Goto statement to realize shutdown applet

The El form item contains two inputs. Verify the two inputs

不到40行代码手撸一个BlocProvider

Several methods added to the ES6 array (foreach, filter, some, every. Includes, reduce)
随机推荐
NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools
Ubuntu安装配置PostgreSQL(18.04)
[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3
软件测试测试常见分类有哪些?
Unit practice experiment 8 - using cmstudio to design microprogram instructions based on basic model machine (1)
Redis learning - 06 drifting bottle case
洛谷P3426 [POI2005]SZA-Template 题解
Adobe Acrobat阻止30款安全软件查看PDF文件 或存在安全风险
【网络是怎么连接的】第二章(上): 建立连接,传输数据,断开连接
openlayers 绘制动态迁徙线、曲线
班主任让开股票账户,在挖财理财开户安全吗?
【网络是怎么连接的】第一章:浏览器生成消息
imagecopymerge
Sharing ideas for a quick switch to an underlying implementation
初识-软件测试
心脏滴血漏洞(CVE-2014-0160)分析与防护
Websocket and socket IO case practice
深入解析 MySQL binlog
find及du -sh显示权限不够的解决方法
Wechat applet wx Request request encapsulation