libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
197 stars 49 forks source link

Initialize needed? #319

Closed plagalPatent closed 1 year ago

plagalPatent commented 1 year ago

The example in "Simple Example Code for an Allen-Bradley CompactLogix/ControlLogix PLC" doesn't contain Initialize but it still works. Is Initialize necessary then?

jkoplo commented 1 year ago

If a tag hasn't been initialized, it will get called internally on the first read or write.

In some cases you will want to call initialize separately so your read/write is (more) deterministic.