FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusMasterFunctions Class
MbusMasterFunctions Methods
readMultipleMod10000 Method
readMultipleMod10000 Method (Int32, Int32, Int32[])
readMultipleMod10000 Method (Int32, Int32, Int32[], Int32)

# MbusMasterFunctions readMultipleMod10000 Method (Int32, Int32, Int32 , Int32)

Modbus function 3 (03 hex) for 32-bit modulo-10000 long int data types, Read Holding Registers/Read Multiple Registers as modulo-10000 long int data.

Namespace: FieldTalk.Modbus.Master
Assembly: FieldTalk.Modbus.Master (in FieldTalk.Modbus.Master.dll) Version: 2.15.2-eval+3d8362b4bb861c05760d48b11d303e954bb8597c
Syntax
C#
VB
C++
Copy

    public int readMultipleMod10000(
    	int slaveAddr,
    	int startRef,
    	int[] int32Arr,
    	int numRegs
    )

    Public Function readMultipleMod10000 (
    	slaveAddr As Integer,
    	startRef As Integer,
    	<OutAttribute> int32Arr As Integer(),
    	numRegs As Integer
    ) As Integer

    public:
    int readMultipleMod10000(
    	int slaveAddr,
    	int startRef,
    	[InAttribute] [OutAttribute] array<int>^ int32Arr,
    	int numRegs
    )

#### Parameters

slaveAddr
  Type: System
  Int32
  Modbus address of slave device or unit identifier (Range: 1 - 255)
startRef
  Type: System
  Int32
  Start reference (Range: 1 - 65536)
int32Arr
  Type:
  System
  Int32
  Buffer which will be filled with the data read.
numRegs
  Type: System
  Int32
  Number of values to be read (Range: 1-62).

#### Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
Reads the contents of pairs of consecutive output registers (holding registers, 4:00000 table) representing a modulo-10000 long int value into 32-bit int values and performs number format conversion.

Note
Modbus does not know about any other data type than discretes and 16-bit registers. Because a modulo-10000 value is of 32-bit length, it will be transferred as two consecutive 16-bit registers. This means that the amount of registers transferred with this function is twice the amount of int values passed to this function.

Note
No broadcast supported

See Also

#### Reference

MbusMasterFunctions Class
readMultipleMod10000 Overload
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2