This library wraps nauful's LibUA library to provide easy communication with Siemens S7 controllers using their built-in OPC server.
This library is still WIP and not complete yet.
The usage in production environments is strongly discouraged!
Only anonymous access without login and encryption has been tested yet.
Please have a look at the included example application.
- Create a new instance of
S7OpcClient
with the application specific parameters (application description, connection settings, ...) - Create a new instance of
S7OpcClientService
using the prior createdS7OpcClient
instance. - Read and write tags from tag tables:
a. Read a tag by using
S7OpcClientService.ReadSingleTableTag()
. b. Write to a tag by usingS7OpcClientService.WriteSingleTableTag()
. - Read and write DataBlock variables:
a. Read a variable by using
S7OpcClientService.ReadSingleDbVar()
. a. Write to a variable by usingS7OpcClientService.WriteSingleDbVar()
.
- Anything but anonymous, unencrypted access has not been tested yet.
- Custom PLC data types are not supported yet, but all of the 'everyday' types are implemented.
You can acquire this library either directly via the NuGet package manager or by downloading it from the NuGet Gallery.
Feel free to reach out!
- Implement custom PLC data types
- Tests!
Please have a look at THIRD-PARTY-LICENSES for all the awesome packages used in this library.
This library is MIT licensed.