• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusMasterFunctions Class
MbusMasterFunctions Methods
writeMultipleMod10000 Method
writeMultipleMod10000 Method (Int32, Int32, Int32[])
writeMultipleMod10000 Method (Int32, Int32, Int32[], Int32)
Click or drag to resizeClick or drag to resize

MbusMasterFunctionswriteMultipleMod10000 Method (Int32, Int32, Int32, Int32)

Modbus function 16 (10 hex) for 32-bit modulo-10000 long int data types, Preset Multiple Registers/Write Multiple Registers with 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 writeMultipleMod10000(
	int slaveAddr,
	int startRef,
	int[] int32Arr,
	int numRegs
)
Public Function writeMultipleMod10000 ( 
	slaveAddr As Integer,
	startRef As Integer,
	int32Arr As Integer(),
	numRegs As Integer
) As Integer
public:
int writeMultipleMod10000(
	int slaveAddr, 
	int startRef, 
	array<int>^ int32Arr, 
	int numRegs
)

Parameters

slaveAddr
Type: SystemInt32
Modbus address of slave device or unit identifier (Range: 0 - 255)
startRef
Type: SystemInt32
Start reference (Range: 1 - 65536)
int32Arr
Type: SystemInt32
Buffer with the data to be sent.
numRegs
Type: SystemInt32
Number of values to be sent (Range: 1-61).

Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
Writes long int values into pairs of output registers (holding registers, 4:00000 table) representing a modulo-10000 long int value and performs number format conversion.
Note 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 Note
Broadcast supported for serial protocols
See Also

Reference

MbusMasterFunctions Class
writeMultipleMod10000 Overload
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2
Speak to the Experts
Modbus Organization Member logo

We are member of the Modbus Organization, Inc.

Buy with Confidence
30-day money back guarantee All our FieldTalk web sales are backed by a 30-day Money Back Guarantee.
We Accept
Bank VISA MasterCard PayPal
Customer Info
  • Info & Contact
  • Customer Login
  • Terms of Service
  • Terms of Sale
  • Privacy Policy
© 2005-2025 proconX Pty Ltd. All rights reserved. proconX and FieldTalk are trademarks of proconX Pty Ltd.
All other trademarks and registered trademarks appearing on www.modbusdriver.com are the property of their respective owners.