Show / Hide Table of Contents

Class EnronModbus

Utility extensions for the Enron Modbus dialect.

Inheritance
System.Object
EnronModbus
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NModbus.Extensions.Enron
Assembly: NModbus.dll
Syntax
public static class EnronModbus

Methods

| Improve this Doc View Source

ReadHoldingRegisters32(IModbusMaster, Byte, UInt16, UInt16)

Read contiguous block of 32 bit holding registers.

Declaration
public static uint[] ReadHoldingRegisters32(this IModbusMaster master, byte slaveAddress, ushort startAddress, ushort numberOfPoints)
Parameters
Type Name Description
IModbusMaster master

The Modbus master.

System.Byte slaveAddress

Address of device to read values from.

System.UInt16 startAddress

Address to begin reading.

System.UInt16 numberOfPoints

Number of holding registers to read.

Returns
Type Description
System.UInt32[]

Holding registers status

| Improve this Doc View Source

ReadInputRegisters32(IModbusMaster, Byte, UInt16, UInt16)

Read contiguous block of 32 bit input registers.

Declaration
public static uint[] ReadInputRegisters32(this IModbusMaster master, byte slaveAddress, ushort startAddress, ushort numberOfPoints)
Parameters
Type Name Description
IModbusMaster master

The Modbus master.

System.Byte slaveAddress

Address of device to read values from.

System.UInt16 startAddress

Address to begin reading.

System.UInt16 numberOfPoints

Number of holding registers to read.

Returns
Type Description
System.UInt32[]

Input registers status

| Improve this Doc View Source

WriteMultipleRegisters32(IModbusMaster, Byte, UInt16, UInt32[])

Write a block of contiguous 32 bit holding registers.

Declaration
public static void WriteMultipleRegisters32(this IModbusMaster master, byte slaveAddress, ushort startAddress, uint[] data)
Parameters
Type Name Description
IModbusMaster master

The Modbus master.

System.Byte slaveAddress

Address of the device to write to.

System.UInt16 startAddress

Address to begin writing values.

System.UInt32[] data

Values to write.

| Improve this Doc View Source

WriteSingleRegister32(IModbusMaster, Byte, UInt16, UInt32)

Write a single 16 bit holding register.

Declaration
public static void WriteSingleRegister32(this IModbusMaster master, byte slaveAddress, ushort registerAddress, uint value)
Parameters
Type Name Description
IModbusMaster master

The Modbus master.

System.Byte slaveAddress

Address of the device to write to.

System.UInt16 registerAddress

Address to write.

System.UInt32 value

Value to write.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX