当前位置:网站首页>倍福PLC和C#通过ADS通信传输int类型变量
倍福PLC和C#通过ADS通信传输int类型变量
2022-07-23 05:58:00 【黄昏和星空】
在倍福PLC和C#通信,采用ADS通信,本文讲解C#如何读取和写入int类型变量。
- 操作流程
1.1. PLC程序设计
首先定义相关的变量,如下所示,激活配置:

1.2. C#程序设计
关于C#和倍福PLC通信的例程科参考倍福相关例程,本文讲解C#中关于int类型相关程序。
首先创建int类型变量的句柄:
然后通过ADS相关方法创建句柄,通过标签名获取句柄

最后通过read读变量,将其类型转化为Int16类型。
1.3. 实际测试

边栏推荐
- ACL access control experiment
- SAR成像之点目标仿真(二)—— Matlab仿真
- Static routing principle and configuration
- FTP deployment
- OpenCV图像处理(中) 图像平滑+直方图
- Intercept the specified range data set from list < map >
- Redis如何实现持久化?详细讲解RDB的三种触发机制及其优缺点,带你快速掌握RDB
- Are there any academic requirements for career transfer software testing? Is there really no way out below junior college?
- 国信证券软件开户是安全吗?信息会不会泄露?
- Summary of time complexity( Ο Is the asymptotic upper bound, Ω is the asymptotic lower bound, P, NP, NP hard, NPC problem)
猜你喜欢

高压MOS管KNX42150 1500V/3A 应用于变频器电源-逆变器等

Confused, work without motivation? Career development hopeless? It's enough to read this article

Pod topology constraints

HCIA----06 OSPF

STP configuration instance learning record

TI单芯片毫米波雷达xWR1642硬件架构研究

【JZOF】12矩阵中的路径

北汇信息12岁啦|Happy Birthday

SAR成像之点目标仿真(三)—— 仿真结果分析

Record a reptile question bank
随机推荐
Common scheduled cron expressions for scheduled tasks
HCIA----03 eNSP使用、DHCP、路由器
倍福PLC和C#通过ADS通信传输结构体类型变量
倍福PLC和C#通过ADS通信定时刷新IO
CAN控制器的位同步过程
【JZOF】12矩阵中的路径
Offer II 094. Minimum palindrome segmentation
OpenCV 视频操作
User and group management, file permissions
力扣 729. 我的日程安排表 I
信號完整性(SI)電源完整性(PI)學習筆記(三十二)電源分配網路(四)
Signal integrity (SI) power integrity (PI) learning notes (XXXI) power distribution network (III)
Convert the specified seconds to minutes and seconds
Hcia---03 ENSP usage, DHCP, router
RHCSA--文件内容浏览、cut、uniq、sort、.tr命令使用
TI单芯片毫米波雷达xWR1642硬件架构研究
高压MOS管KNX42150 1500V/3A 应用于变频器电源-逆变器等
【JZOF】07 重建二叉树
HCIA----05 RIP
HCIA----07 ACL-Net