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

然后通过ADS相关方法创建句柄,通过标签名获取句柄
最后通过read读变量,将其类型转化为String类型
实际测试

边栏推荐
- C语言-大端存储和小端存储
- 迷茫、工作没动力? 职业发展没希望? 看这篇文章就够了
- Common scheduled cron expressions for scheduled tasks
- RHCSA--文件內容瀏覽、cut、uniq、sort、.tr命令使用
- PPP configuration instance learning record
- FTP configuration instance learning record
- Telnet configuration instance learning record
- ACL configuration instance learning record
- 2020-09-22
- HCIA----02
猜你喜欢

OpenCV 视频操作

VLAN的划分以及通过DHCP给所有主机自动分配IP,以及通信全网可达

Three layer switching configuration example learning record

机器学习:李航-统计学习方法(二)感知机+代码实现(原始+对偶形式)

How does redis implement persistence? Explain in detail the three triggering mechanisms of RDB and their advantages and disadvantages, and take you to quickly master RDB

HCIA----01互联网的初认识

OpenCV图像处理(上)几何变换+形态学操作

ACL configuration instance learning record

【JZOF】12矩阵中的路径

User and group management, file permissions
随机推荐
Redis如何实现持久化?详细讲解RDB的三种触发机制及其优缺点,带你快速掌握RDB
PostgreSQL k8s deployment template
VLAN configuration instance learning record
How does redis implement persistence? Explain in detail the three triggering mechanisms of RDB and their advantages and disadvantages, and take you to quickly master RDB
Default routing configuration instance learning record
高压MOS管KNX42150 1500V/3A 应用于变频器电源-逆变器等
Frame relay network configuration example learning record
Numpy: element selection of matrix
Liveness, readiness and startup probes
沟通绩效业绩不佳的 11 个提示
Copy, paste and drag files between VMware virtual machine and host
【JZOF】12矩阵中的路径
OpenCV 视频操作
C # enter a letter and judge its case
OpenCV图像处理(下) 边缘检测+模板匹配+霍夫变换
雷达导论专栏总目录
HCIA----02
时间复杂度总结(Ο是渐进上界,Ω是渐进下界,p,np,np-hard,NPC问题)
方法区、永久代、元空间的关系
FTP configuration instance learning record