当前位置:网站首页>倍福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#中关于int数组类型相关程序。
首先创建C#的结构体类型
此外,PLC中String长度为75,因此在C#中需要进行结构体的创建,以适应PLC的string长度,如下所示:
然后通过ADS相关方法创建句柄,通过标签名获取句柄

边栏推荐
- 4D天线阵列布局设计
- 力扣 729. 我的日程安排表 I
- RHCSA--文件內容瀏覽、cut、uniq、sort、.tr命令使用
- Rhcsa - - parcourir le contenu du fichier, couper, uniq, trier, utiliser les commandes.tr
- 信號完整性(SI)電源完整性(PI)學習筆記(三十二)電源分配網路(四)
- Desensitize data
- 雷达导论PART VII.1 雷达与分辨率
- SAR成像之点目标仿真(二)—— Matlab仿真
- 互联网时代下,如何精细化用户运营?
- Tar, SFTP, fin, history commands, variables, aliases
猜你喜欢

php框架MVC类代码审计

DHCP configuration instance learning record

Signal integrity (SI) power integrity (PI) learning notes (32) power distribution network (4)

Intégrité du signal (si) intégrité de l'alimentation électrique (PI) notes d'apprentissage (32) Réseau de distribution d'énergie (4)

C language - big end storage and small end storage

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

谈谈学习和工作——钱学森

问题解决:Script file ‘Scripts\pip-script.py‘ is not present.

Numpy: quick start to basic operations

Default routing configuration instance learning record
随机推荐
Count different types of data according to different times (stored procedures)
What is the reason for the failure of video playback and RTMP repeated streaming on easygbs platform?
静态路由的搭建
雷达导论PART VII.3 SAR图像的形成和处理
费曼学习法(Redis总结)
Hcia---03 ENSP usage, DHCP, router
VLAN的划分以及通过DHCP给所有主机自动分配IP,以及通信全网可达
记录一次爬虫题库
C语言-大端存储和小端存储
【JZOF】11旋转数组的最小数字
数据进行脱敏
Static routing principle and configuration
OSPF single area configuration instance learning record
Jenkins deployment
Intercept the specified range data set from list < map >
基于redis+lua进行限流
OpenCV图像处理(中) 图像平滑+直方图
机器学习:李航-统计学习方法(二)感知机+代码实现(原始+对偶形式)
[ACTF2020 新生赛]BackupFile 1
北大博士小姐姐:分享压箱底干货 | 五招提高学习效率