当前位置:网站首页>倍福PLC基于CX5130实现数据的断电保持
倍福PLC基于CX5130实现数据的断电保持
2022-06-26 12:38:00 【黄昏和星空】
本文介绍基于CX5130的测试UPS断电保持。
- 操作流程
1.1. 倍福Beckhoff
1.1.1. 控制器硬件
硬件使用CX5130,是基于TwinCAT 3的。
1.1.2. 连接控制器
将控制器的网口与PC网口之间用网线相连,选择对应的目标控制器。
1.1.3. 创建PLC 项目
1.新建一个标准的PLC项目,在“References”中添加库文件“Tc2_SUPS”。
2.在左侧资源管理器中找到DUTs,右键新建一个DUT,名称为dataDUT,选择结构体类型。在其中输入如图3-2所示代码,创建一个结构体变量。
3.在POUs的MAIN中,声明如下变量:
其中:创建了一个含有1MB数据的数组,用来测试UPS保存数据功能。
4.在程序区输入PLC代码&#
边栏推荐
- 第十章 设置结构化日志记录(二)
- Lightflow completed the compatibility certification with "daocloud Enterprise Cloud native application cloud platform"
- processing 随机生成线动画
- Goto statement to realize shutdown applet
- The El form item contains two inputs. Verify the two inputs
- NLP-D60-nlp比赛D29
- 【网络是怎么连接的】第一章:浏览器生成消息
- Stream流学习记录
- el-form-item 包含两个input, 校验这两个input
- 复制多个excel然后命名不同的名字
猜你喜欢
随机推荐
微信小程序测试点总结
KVM 显卡透传 —— 筑梦之路
第十章 设置结构化日志记录(二)
Angle de calcul POSTGIS
小白懒人专用-win10-win11一键安装版
KVM video card transparent transmission -- the road of building a dream
Accumulation of interview questions
复制多个excel然后命名不同的名字
【网络是怎么连接的】第二章(中):一个网络包的发出
Sharing ideas for a quick switch to an underlying implementation
KITTI Tracking dataset whose format is letf_top_right_bottom to JDE normalied xc_yc_w_h
Splunk iowait 报警的解决
Learning directory
P2393 yyy loves Maths II
机器学习笔记 - 时间序列的季节性
软件测试 - 概念篇
7-2 摘花生
Why is password salt called "salt"? [Close] - why is a password salt called a "salt"? [closed]
源码学习:AtomicInteger类代码内部逻辑
Biff TwinCAT can quickly detect the physical connection and EtherCAT network through emergency scan








