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

边栏推荐
- Signal integrity (SI) power integrity (PI) learning notes (XXXI) power distribution network (III)
- 复杂网络-常用绘图软件和库
- 从List<Map>中截取指定的范围数据集合
- In the Internet era, how to refine user operations?
- What is the reason for the failure of video playback and RTMP repeated streaming on easygbs platform?
- HCIA----06 OSPF
- 第八天笔记
- 射击 第 1-01 课:入门
- When using fastjson to parse and assign JSON data, the order of JSON fields is inconsistent
- Opencv image processing (Part 1): geometric transformation + morphological operation
猜你喜欢
![[offline voice topic ④] Anxin VC offline voice development board secondary development voice control LED light](/img/97/66392d57cfecc96c595265705177a7.png)
[offline voice topic ④] Anxin VC offline voice development board secondary development voice control LED light

Current limiting based on redis+lua

Ronge answer script production (latest in 2020)

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

The context of virtual memory technology (Part 1)

【离线语音专题④】安信可VC离线语音开发板二次开发语音控制LED灯

Convert the specified seconds to minutes and seconds

Numpy: quick start to basic operations

【JZOF】07 重建二叉树

CAN控制器的位同步过程
随机推荐
记录一次爬虫题库
【日常训练】814. 二叉树剪枝
Current limiting based on redis+lua
互联网时代下,如何精细化用户运营?
将指定秒转为时分秒格式
Talk about "people" in the R & D team
Es common operations
Jupyter notebook添加已存在的虚拟环境
Beihui information is 12 years old | happy birthday
When using fastjson to parse and assign JSON data, the order of JSON fields is inconsistent
The relationship between method area, perpetual generation and meta space
Convert the specified seconds to minutes and seconds
numpy:矩阵的元素选取
UI自动化
EasyGBS平台出现录像无法播放并存在RTMP重复推流现象,是什么原因?
软件测试岗位饱和了?自动化测试是新一代‘offer’技能
Count different types of data according to different times (stored procedures)
使用vscode进行远程编辑和调试
PKU doctor's little sister: sharing dry goods at the bottom of the box | five tips to improve learning efficiency
录入数学公式至mark down文档的方法