diff --git a/Modbus.Net/Modbus.Net.OPC/README.md b/Modbus.Net/Modbus.Net.OPC/README.md index d2b0858..d150028 100644 --- a/Modbus.Net/Modbus.Net.OPC/README.md +++ b/Modbus.Net/Modbus.Net.OPC/README.md @@ -7,13 +7,14 @@ Modbus Implementation of Modbus.Net Table of Content: * [Basic Concept](#basic) * [Address Mapping](#address) +* [Regex System](#regex) * [Link](#link) -## Basic Concept +## Basic Concept Siemens Protocal is derived by Profibus and Profinet. -## Address Mapping +## Address Mapping Modbus.Net.OPC has a simple address formatting tool. You can find it from AddressFormaterOPC. @@ -31,6 +32,18 @@ Your tagGeter code should be. If you want change your tag to "1.15.Value_Opening", just set the seperator to '.' . -## Link +## Regex System + +Every tag could be a regex expression, Modbus.Net.OPC will always use regex comparison mode between each tags. + +Like if you want to use a wildcard for first tag(or first directory), input your tagGeter code like this: + +```C# +(baseMachine, addressUnit) => return new string[]{"(.*)", baseMachine.Id, ((XXUnitExtend)addressUnit.unitExtend).stationId, addressUnit.Name}; +``` + +## Link The link of OPC DA should like "opcda://PC-Name/OPC-Software-Name". + +The link of OPC UA should like "opc.tcp://PC-Name/Opc-Software-Name".