当前位置:网站首页>Beifu PLC and C transmit structure type variables through ads communication
Beifu PLC and C transmit structure type variables through ads communication
2022-07-23 13:18:00 【Dusk and starry sky】
In Beifu PLC and C# signal communication , use ADS signal communication , This article explains C# How to read and write structure types
- Operation process
1.1. PLC Programming
First, define the relevant variables , As shown below , Activate configuration :

1.2. C# Programming
About C# Hebeifu PLC For routine of communication, please refer to relevant routines of Bifu , This article explains C# About the structure type related procedures .
First, create a handle to the structure type variable :
And then through ADS Related methods create handles , Get handle by tag name 
Besides ,C# And PLC Structure variables corresponding to the structure , As shown below 
Then get the handle through the tag name of the structure instance 
adopt Read Method to read the value of a variable :
among FillStructControls The method is to display the value of the structure instance in the form control . As shown below 
Actual test

边栏推荐
- High voltage MOS tube knx42150 1500v/3a is applied to frequency converter power supply inverter, etc
- The relationship between method area, perpetual generation and meta space
- 倍福PLC和C#通过ADS通信传输int数组类型变量
- Shooting lesson 1-01: Introduction
- Redis distributed lock practice
- 根据不同时间统计不同类型的数据(存储过程)
- Numpy: quick start to basic operations
- 录入数学公式至mark down文档的方法
- Opencv image processing (medium) image smoothing + histogram
- OpenCV图像处理(中) 图像平滑+直方图
猜你喜欢

C语言-大端存储和小端存储

Signal integrity (SI) power integrity (PI) learning notes (XXXI) power distribution network (III)

Compilation and preprocessing

【NOI模拟赛】不知是哪一道CF的论文题(概率期望,鞅的停时定理)

CAN控制器的位同步过程

Software testing jobs saturated? Automated testing is a new generation of 'offer' skills

【JZOF】10斐波那契数列

时间复杂度总结(Ο是渐进上界,Ω是渐进下界,p,np,np-hard,NPC问题)

UI自动化

Numpy:基本操作快速入门
随机推荐
常见的定时任务Scheduled cron 表达式
[actf2020 freshman competition]backupfile 1
numpy:矩阵的元素选取
根据不同时间统计不同类型的数据(存储过程)
Outlook 教程,如何在 Outlook 中切换日历视图、创建会议?
Is it safe to open an account with Guosen Securities software? Will the information be leaked?
SAR成像之点目标仿真(二)—— Matlab仿真
Current limiting based on redis+lua
In the Internet era, how to refine user operations?
Record a reptile question bank
迷茫、工作没动力? 职业发展没希望? 看这篇文章就够了
信號完整性(SI)電源完整性(PI)學習筆記(三十二)電源分配網路(四)
Li Kou 729. My schedule I
Quelle est la raison pour laquelle la plate - forme easygbs ne peut pas lire l'enregistrement vidéo et a un phénomène de streaming répété rtmp?
Helm installing rancher
HCIA----07 ACL-Net
JVM详细解析
Compilation and preprocessing
北大博士小姐姐:分享压箱底干货 | 五招提高学习效率
How to prevent repeated payment of orders?