.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 – 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 2015-2020 Stefan Rossmann Engineering Solutions Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,[…]

.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”)[…]