当前位置:网站首页>Botu PLC Sequential switch function block (SCL)
Botu PLC Sequential switch function block (SCL)
2022-07-26 16:07:00 【RXXW_ Dor】
The program of this blog post is very simple , Just provide a programming idea and reference code for beginners , We will take the sequential switching of air conditioning units as an example to explain . Many equipment in the industrial field require that the startup and shutdown must follow certain timing restrictions , When the device is started, some devices need to be turned on first , Some equipment needs to be turned on later . When shutting down, some devices need to be turned off first, and some devices need to be turned off later . For this demand of switching on and off , We can design a sequential switch FB. Limited to my level and ability , Mistakes and deficiencies are inevitable in the text , Welcome criticism . At the same time, thank you for your attention and subscription .
1、 Turn on and off the machine in sequence FB

2、 complete SCL Code
FUNCTION_BLOCK "SequenceControl"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
VAR_INPUT
bStart : Bool; // Start up in sequence
bStop : Bool; // Reverse shutdown
bEstop : Bool; // Emergency stop
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; // Butterfly valve
边栏推荐
- 教大模型自己跳过“无用”层,推理速度×3性能不变,谷歌MIT这个新方法火了...
- 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
- 2021年软件测试工具趋势
- German EMG electric actuator eb800-60ii
- Question collection come and ask nllb authors! (Zhiyuan live issue 24)
- 可信隐私计算框架“隐语”开源专家观点集锦
- PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (2)
- 国元期货网上开户安全吗?开户办理流程是怎样的?
- parker电磁阀D1VW020DNYPZ5
- 想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
猜你喜欢

Sklearn clustering clustering

终于有人把红蓝对抗讲明白了
.net get injection object manually
.NET 手动获取注入对象

换把人体工学椅,缓解久坐写代码的老腰吧~

Pandora IOT development board learning (RT thread) - Experiment 17 esp8266 experiment (learning notes)

【ARM学习(9) arm 编译器了解学习(armcc/armclang)】

bucher齿轮泵QX81-400R301

PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (3)
![[BJDCTF2020]Easy MD5](/img/6a/61a4b5624c33f1f334bea344cfa2c8.png)
[BJDCTF2020]Easy MD5
随机推荐
【DSCTF2022】pwn补题记录
Question collection come and ask nllb authors! (Zhiyuan live issue 24)
可信隐私计算框架“隐语”开源专家观点集锦
【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)
Sklearn clustering clustering
Paper:《All Models are Wrong, but Many are Useful: 所有模型都是错误的,但许多模型都是有用的:通过同时研究一整类预测模型来了解变量的重要性》翻译与解读
C语言重点知识总结
换把人体工学椅,缓解久坐写代码的老腰吧~
教大模型自己跳过“无用”层,推理速度×3性能不变,谷歌MIT这个新方法火了...
Jmeter快速上手之接口测试
Encryption model
泰山OFFICE技术讲座:WORD的缩放比例与显示略有差异
13 years of senior developers share a year of learning rust experience: from the necessary bibliography to code practice
[physical simulation] the principle and practice of the simplest shape matching
Development daily summary (11): file upload function improvement: Chinese character detection and text content processing
马斯克被曝绿了谷歌创始人:导致挚友二婚破裂,曾下跪求原谅
.net get injection object manually
gcc/g++与动静库以及gdb
PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (2)
Using information entropy to construct decision tree