twincat ads 信号批量通讯问题

在虚拟调试的时候,需要让twincat和pc机上另一个软件进行通讯,需要传输的信号量很多,但是目前很笨的方法是一个信号一个线程,请问有什么好的方法能够做到很高效,我目前的思路是将所有的不需要特殊对待的信号放到一个结构体中,用一个线程进行轮询读或写,不知这样的可行性怎样,或者有没有更好的方法实现批量通讯

https://infosys.beckhoff.com/english.php?content=../content/1033/tcsample/html/tcsample_intro.htm&id=2105283098444985027
批量读写
ADS-sum command: Read or Write a list of variables with one single ADS-command
4000 single variables are handled with e.g. 8 single Ads-ReadReq (each call requesting 500 variables) with each 1-2 ms protocol time

http://www.pudn.com/downloads533/sourcecode/windows/comm/detail2204502.html

twincat和pc机上另一个软件进行通讯,我是实现的变量通信。

结构体 直接可以下发 但是类型不一样,比如:real类型对应C#float类型 等等,拼接好后,直接下发结构体

试试https://github.com/nikvoronin/AdsRemote
编程ADS更优雅。