-
Notifications
You must be signed in to change notification settings - Fork 136
2.3 Transmission Link Layer Connector
Transmission Link Layer describe which way should protocol link to machines, relative to IConnector in Modbus.Net.
IConnector has a token named "ConnectionToken", used for mark different links.
public abstract string ConnectionToken { get; }
BaseConnector is a completely abstract class, inherit from IConnector, Connectors from Modbus.Net all inherit from BaseConnecto.
Main framework already implement TcpConnector and ComConnector.
Connect and ConnectAsync is used for build and start a connection. Disconnect for disconnect a connection. IProtocalLinker will send these messages to create or close a connection.
Only concrete protocol linkers can specify which connector should be used.
SendMsg and SendMsgAsync used for send messages to machine and receive the responses.
SendMsgWithoutReturn and SendMsgWithoutReturnAsync used for send messages to machine, and machine will not show any response.
Iconnector has two template params, represented to input type and output type, both use byte[] as default.
For linearless communication which using structual datas, Input and/or output type could be changed.
Mdobus.Net.OPC already uses template params as a sample, included tags array and more for input param and multi response answers class for output param.
Modbus.Net Hangzhou Delian Science Technology Co.,Ltd. © 2023
-
2 Specification of Modbus.Net main framework
- 2.1 Modbus.Net Architecture
- 2.2 Transmission Control Layer Controller
- 2.3 Transmission Link Layer Connector
- 2.4 Concrete Protocol Layer ProtocolLinker
- 2.5 Abstract Protocol Layer Protocol
- 2.6 Protocol Presentation Layer Utility
- 2.7 Device Application Layer Machine
- 2.8 Task Application Layer MachineJob
-
3 Using Modbus.Net to implement a protocol
- 3.1 Global Tools
- 3.2 Extends Protocol and ProtocolUnit according to protocol specification
- 3.3 Extends Connector to create a link method
- 3.4 Extends Machine and Utility, creating two apis
- 3.5 Extends API methods to Machine and Utility
- 3.6 Extends Formater, Translator and Combiner, Creating Encoding,Decoding,Combining methods for address
- 3.7 Extends Controller, to control message