当前位置:网站首页>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

边栏推荐
- ZABBIX monitoring detailed installation to deployment
- 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
- Outlook tutorial, how to switch calendar views and create meetings in outlook?
- When using fastjson to parse and assign JSON data, the order of JSON fields is inconsistent
- SAR成像之点目标仿真(三)—— 仿真结果分析
- Static routing principle and configuration
- Unity 模型显示到UI前面,后面的UI抖动
- [actf2020 freshman competition]backupfile 1
- EasyGBS平臺出現錄像無法播放並存在RTMP重複推流現象,是什麼原因?
猜你喜欢

Convert the specified seconds to minutes and seconds

基于redis+lua进行限流

High voltage MOS tube knx42150 1500v/3a is applied to frequency converter power supply inverter, etc

功能测试转自动化测试,十年自动化测试经验分享

Image processing image feature extraction and description

In the Internet era, how to refine user operations?

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

Talk about study and work -- Qian Xuesen

当输入网址后,到网页显示,期间发生了什么

Uncaught (in promise) Neo4jError: WebSocket connection failure. Due to security constraints in your
随机推荐
Summary of time complexity( Ο Is the asymptotic upper bound, Ω is the asymptotic lower bound, P, NP, NP hard, NPC problem)
Opencv image processing (medium) image smoothing + histogram
OpenCV图像处理(中) 图像平滑+直方图
费曼学习法(Redis总结)
Jenkins持续集成报错stderr: fatal: unsafe repository (‘/home/water/water‘ is owned by someone else)
Outlook tutorial, how to switch calendar views and create meetings in outlook?
Are there any academic requirements for career transfer software testing? Is there really no way out below junior college?
Is it safe to open an account with Guosen Securities software? Will the information be leaked?
【JZOF】12矩阵中的路径
Complex networks - common drawing software and libraries
UI自动化
Machine learning: Li Hang - statistical learning method (II) perceptron + code implementation (primitive + dual form)
信号完整性(SI)电源完整性(PI)学习笔记(三十二)电源分配网路(四)
Signal integrity (SI) power integrity (PI) learning notes (XXXI) power distribution network (III)
Talk about study and work -- Qian Xuesen
虚拟内存技术的来龙去脉(上)
Liveness, readiness and startup probes
第七天笔记
第八天笔记
SAR成像之点目标仿真(一)—— 数学模型