Class ModbusTcpMasterModule
- Namespace
- Loehnert.Lisrt.Communication.Modbus
- Assembly
- Loehnert.Lisrt.Communication.Modbus.dll
Represents a TCP/IP Modbus master module that can communicate with a slave (server) via a TCP/IP connection.
public class ModbusTcpMasterModule : ModbusMasterModuleBase, ICompositeModule, ILisrtModule, IModbusMaster, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
- Inheritance
-
PropertyChangedBaseModbusTcpMasterModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
ModbusTcpMasterModule(string)
Initializes a new instance of the ModbusTcpMasterModule class.
public ModbusTcpMasterModule(string name)
Parameters
name
stringThe name of the module instance.
Exceptions
- ArgumentNullException
Thrown when
name
is null or empty.
Properties
Address
Gets or sets the address of the remote host.
[Configuration("")]
public string Address { get; set; }
Property Value
Port
Gets or sets the port of the remote host.
[Configuration(502)]
public uint Port { get; set; }
Property Value
- uint
Default is 502.
Methods
Exit()
De-initializes the module.
public override void Exit()
Initialize()
Initializes the module.
public override void Initialize()
ShowServiceView()
Shows the service window.
public void ShowServiceView()