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

边栏推荐
猜你喜欢

Jupyter notebook添加已存在的虚拟环境

Record a reptile question bank

Redis如何实现持久化?详细讲解RDB的三种触发机制及其优缺点,带你快速掌握RDB

行业现状令人失望,工作之后我又回到UC伯克利读博了

OpenCV图像处理(中) 图像平滑+直方图

分类模型的评估

Step on the electric render process renderer to solve the problem of require is not defined

EasyGBS平台出现录像无法播放并存在RTMP重复推流现象,是什么原因?

如何防止订单重复支付?

Numpy: quick start to basic operations
随机推荐
常见的cmd命令快速打开程序
Outlook tutorial, how to switch calendar views and create meetings in outlook?
使用fastjson解析以及赋予json数据时,json字段顺序不一致问题
费曼学习法(Redis总结)
Cortex-a series processor
力扣 剑指 Offer II 094. 最少回文分割
Summary of time complexity( Ο Is the asymptotic upper bound, Ω is the asymptotic lower bound, P, NP, NP hard, NPC problem)
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
Why build a local Yum warehouse?
【日常训练】814. 二叉树剪枝
分类模型的评估
设计思维的“布道者”
Es common operations
High voltage MOS tube knx42150 1500v/3a is applied to frequency converter power supply inverter, etc
HCIA----06 OSPF
复杂网络-常用绘图软件和库
射击 第 1-01 课:入门
行业现状令人失望,工作之后我又回到UC伯克利读博了
高压MOS管KNX42150 1500V/3A 应用于变频器电源-逆变器等
Is it safe to open an account with Guosen Securities software? Will the information be leaked?