.NET ModbusServer – Properties

Namespace:  EasyModbus Class:  ModbusServer public HoldingRegisters holdingRegisters provides access to the Holding Registers e.g. holdingRegisters[5]   public InputRegisters inputRegisters provides access to the Input Registers e.g. inputRegisters[10]   public Coils coils provides access to the coils   public DiscreteInputs discreteInputs provides access to the discrete Inputs e.g. discreteInputs[8] public int NumberOfConnections returns the number of connected[…]

Python: Codesamples

Read 8 Discrete Inputs from Modbus-TCP Server – Server available at Port 502 (IP-Address 190.172.268.100) – Starting Address “1”, Number of Inputs to Read: “8” (Notice that the Starting address might be shifted by “1”. In this example we are reading 8 Inputs, the first is Register “1” (Addressed with “0”) from easymodbus.modbusClient import ModbusClient[…]

.NET ModbusClient – Properties

Namespace:  EasyModbus Class:  ModbusClient bool Connected returns “TRUE” if client is connected to Server; otherwise “FALSE” string IPAddress Gets or Sets the IP-Address of the Server to be connected int Port Gets or Sets the Port were the Modbus-TCP Server is reachable (Standard is 502) bool UDPFlag Gets or Sets the UDP-Flag to activate Modbus UDP. byte UnitIdentifier Gets or[…]

License information

  Copyright (C) 2018 Stefan Roßmann Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended[…]

.NET ModbusClient – Methods

Namespace:  EasyModbus Class:  ModbusClient Constructor  ModbusClient(string ipAddress, int port) Constructor for Modbus TCP and Modbus UDP connection. string ipAddress: Ip- Address of the Modbus TCP Server int port: Port of the Modbus TCP Server listening (Standard is 502) Constructor  ModbusClient( string serialPort) Constructor for serial connection (Modbus RTU). String serialPort: Name of the serial port to be used (e.g. “COM1”)[…]