# OpcTagAccessProvider
**Repository Path**: LiuKun_Km/OpcTagAccessProvider
## Basic Information
- **Project Name**: OpcTagAccessProvider
- **Description**: The .Net interface and implementation of mechanism for access to OPC parameters on OPC server.
- **Primary Language**: C#
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2021-03-04
- **Last Updated**: 2022-05-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# OpcTagAccessProvider
The .Net interface and implementation of mechanism for access to OPC parameters on OPC server.
If you need to use an opc-server (RSLinx, Matricon and etc.) the library helps you to do it.
First, you need to create and connect to opc-server.
Second, you can use OpcValueImpl to read and write values from and into the server.
var server = new OPCServer();
server.Connect("OPC.SimaticNET", "localhost");
var curvalue = new OpcValueImpl(server);
curvalue.Name = "UseYourTagName";
curvalue.IsListenValueChanging = true;
curvalue.SubscribeToValueChange(new Listener());
curvalue.Activate();
curvalue.WriteValue(123);