当前位置:网站首页>博途PLC顺序开关机功能块(SCL)
博途PLC顺序开关机功能块(SCL)
2022-07-26 15:51:00 【RXXW_Dor】
本篇博文程序非常简单,只是给初学者提供个编程思路和参看代码,我们以空调机组的顺序开关机为例讲解。工业现场很多设备要求开机和关机必须遵循一定的时序限制,设备启动开机时有些设备需要先开,有些设备需要后开。关机时有些设备需要先关有些设备需要后关。针对开关机的这种需求,我们可以设计一个顺序开关机FB。限于本人水平和能力,文中难免出现错误和不足之处,欢迎大家批评指正。同时感谢大家关注和订阅。
1、顺序开关机FB

2、完整SCL代码
FUNCTION_BLOCK "SequenceControl"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
VAR_INPUT
bStart : Bool; // 顺序开机
bStop : Bool; // 逆序停机
bEstop : Bool; // 紧急停机
diDf_ontime : DInt := 1;
diDf_offtime : DInt := 1;
diLqp_ontime : DInt := 1;
diLqp_offtime : DInt := 1;
diLdp_ontime : DInt := 1;
diLdp_offtime : DInt := 1;
diLj_ontime : DInt := 1;
diLj_offtime : DInt := 1;
END_VAR
VAR_OUTPUT
bDf : Bool; // 蝶阀
边栏推荐
- ROS问题及解决方案——依赖包安装以及无法修正错误
- Zynq PS + PL heterogeneous multicore Case Development Manual of Ti C6000 tms320c6678 DSP + zynq-7045 (1)
- 工具技能学习(二):前置技能-shell
- DELTA控制器RMC200
- Research and application of the whole configuration of large humanoid robot
- Paper: all models are wrong, but many are useful: all models are wrong, but many are useful: understand the importance of variables by studying a whole class of prediction models at the same time
- tensorboard多个events文件显示紊乱的解决办法
- Sklearn clustering clustering
- .NET 手动获取注入对象
- “卡片笔记法”在思源的具体实践案例
猜你喜欢

我们被一个 kong 的性能 bug 折腾了一个通宵

关于我写的IDEA插件能一键生成service,mapper....这件事(附源码)

反射、枚举以及lambda表达式
![[dsctf2022] PWN supplementary question record](/img/fa/ea26fc0861224df4c391942075eaaf.png)
[dsctf2022] PWN supplementary question record

Yushenle's learning record: the first project of SOC FPGA -hello world

德国EMG易安基推动器ED301/6 HS

My brother created his own AI anti procrastination system, and he was "blinded" when playing with his mobile phone | reddit was hot

Teach the big model to skip the "useless" layer and improve the reasoning speed × 3. The performance remains unchanged, and the new method of Google MIT is popular

使用verdaccio搭建自己的npm私有库

Gcc/g++ and dynamic and static libraries and GDB
随机推荐
Encryption model
My brother created his own AI anti procrastination system, and he was "blinded" when playing with his mobile phone | reddit was hot
OSPF comprehensive experiment
提问征集丨快来向NLLB作者提问啦!(智源Live第24期)
Chapter 7 supporting CORS in rest services
parker电磁阀D1VW020DNYPZ5
原来卡布奇诺信息安全协会是干这个的呀,一起来看看吧。
Teach the big model to skip the "useless" layer and improve the reasoning speed × 3. The performance remains unchanged, and the new method of Google MIT is popular
How to use job plug-in type to call a kettle job through ETL scheduling tool taskctl?
Sklearn clustering clustering
Some cutting-edge research work sharing of SAP ABAP NetWeaver containerization
Parker solenoid valve d1vw020dnypz5
QT is the most basic layout, creating a window interface
Zynq PS + PL heterogeneous multicore Case Development Manual of Ti C6000 tms320c6678 DSP + zynq-7045 (1)
白话详解决策树模型之使用信息熵构建决策树
13年资深开发者分享一年学习Rust经历:从必备书目到代码练习一网打尽
Paper: all models are wrong, but many are useful: all models are wrong, but many are useful: understand the importance of variables by studying a whole class of prediction models at the same time
[expdp export data] expdp exports a table with 23 rows of records and no lob field. It takes 48 minutes. Please help us have a look
开发日常小结(11):文件上传功能改进:中文字符检测与文本内容处理
基于SSM开发实现校园疫情防控管理系统