libplctag / libplctag.NET

A .NET wrapper for libplctag.

Home Page:https://libplctag.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to batch read multiple tags at once?

313843288 opened this issue · comments

AB PLC,How to batch read multiple tags at once?

If the PLC supports it, the library does this automatically if it has multiple tags with outstanding requests. The simplest way to make sure that this happens is to create several tags and then trigger reads or writes on all of them without a wait time. This triggers the operation in the background. Once they are all triggered, then just wait on all of the tags.

I am not a C# programmer, but I think the code at the indicated section does the async read of multiple tags.

thank you!