Files
Modbus.Net/Modbus.Net/Modbus.Net.OPC/README.md
2017-02-07 17:15:05 +08:00

1.0 KiB

Modbus.Net.OPC

NuGet

Modbus Implementation of Modbus.Net

Table of Content:

Siemens Protocal is derived by Profibus and Profinet.

## Address Mapping

Modbus.Net.OPC has a simple address formatting tool. You can find it from AddressFormaterOPC.

You need to use messages in BaseMachine and AddressUnit to create an OPC tag.

Here is a Sample.

If your tag is "1/15/Value_Opening", 1 is MachineId, 15 is StationId and Value_Opening is point name.

Your tagGeter code should be.

(baseMachine, addressUnit) => return new string[]{baseMachine.Id, ((XXUnitExtend)addressUnit.unitExtend).stationId, addressUnit.Name};

If you want change your tag to "1.15.Value_Opening", just set the seperator to '.' .

## Link

The link of OPC DA should like "opcda://PC-Name/OPC-Software-Name".