当前位置:网站首页>Beifu PLC and C transmit bool array variables through ads communication
Beifu PLC and C transmit bool array variables through ads communication
2022-07-23 13:17: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 bool Type array variable .
- 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 China bool Array type related program .
First create C# The type of structure 
And then through ADS Related methods create handles , Get handle by tag name 
Then get the handle through the tag name of the structure instance 
adopt Read Method to read the value of a variable :
adopt Write Method write variable 
After the bronze drum structure is obtained ,C# You can define corresponding intermediate variables to pass , As shown below :

边栏推荐
猜你喜欢

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

Numpy:基本操作快速入门

互联网时代下,如何精细化用户运营?

Record a reptile question bank

CORTEX-A系列处理器

倍福PLC和C#通过ADS通信传输int类型变量

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

Space shooting Part 2-3: dealing with the collision between bullets and the enemy

编译与预处理

复杂网络-常用绘图软件和库
随机推荐
UI automation
软件测试岗位饱和了?自动化测试是新一代‘offer’技能
C语言-大端存储和小端存储
记录一次爬虫题库
Offer II 094. Minimum palindrome segmentation
射击 第 1-3 课:图像精灵
How to prevent repeated payment of orders?
Harbor deployment
编译与预处理
Intégrité du signal (si) intégrité de l'alimentation électrique (PI) notes d'apprentissage (32) Réseau de distribution d'énergie (4)
Common CMD commands to quickly open programs
如何防止订单重复支付?
【NOI模拟赛】不知是哪一道CF的论文题(概率期望,鞅的停时定理)
互联网时代下,如何精细化用户运营?
JVM详细解析
倍福PLC和C#通过ADS通信传输String数组类型变量
OpenCV图像处理(上)几何变换+形态学操作
HCIA----07 ACL-Net
Machine learning: Li Hang - statistical learning method (II) perceptron + code implementation (primitive + dual form)
Confused, work without motivation? Career development hopeless? It's enough to read this article