• 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 Properties
MbusMasterFunctions Methods
Click or drag to resizeClick or drag to resize

MbusMasterFunctions Class

Base class which implements Modbus data and control functions
Inheritance Hierarchy
SystemObject
  FieldTalk.Modbus.MasterMbusMasterFunctions
    FieldTalk.Modbus.MasterMbusIpClientBase
    FieldTalk.Modbus.MasterMbusSerialClientBase

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 abstract class MbusMasterFunctions : IDisposable
Public MustInherit Class MbusMasterFunctions
	Implements IDisposable
public ref class MbusMasterFunctions abstract : IDisposable

The MbusMasterFunctions type exposes the following members.

Properties
  NameDescription
Public propertypollDelay
Poll delay property
Public propertyretryCnt
Retry count property
Public propertytimeout
Time-out port property
Top
Methods
  NameDescription
Public methodcloseProtocol
Closes an open protocol including any associated communication resources (COM ports or sockets).
Public methodconfigureBigEndianInts
Configures 32-bit int data type functions to do a word swap
Public methodconfigureBigEndianInts(Int32)
Configures 32-bit int data type functions to do a word swap on a per slave basis
Public methodconfigureCountFromOne
Configures the reference counting scheme to start with one for all slaves.
Public methodconfigureCountFromOne(Int32)
Configures the reference counting scheme to start with one for a slave.
Public methodconfigureCountFromZero
Configures the reference counting scheme to start with zero for all slaves.
Public methodconfigureCountFromZero(Int32)
Configures the reference counting scheme to start with zero for a slave.
Public methodconfigureEnron32BitMode
Configures all slaves for Daniel/ENRON 32-bit Mode.
Public methodconfigureEnron32BitMode(Int32)
Configures a slave for Daniel/ENRON 32-bit Mode.
Public methodconfigureIeeeFloats
Configures float data type functions NOT to do a word swap
Public methodconfigureIeeeFloats(Int32)
Configures float data type functions NOT to do a word swap on a per slave basis
Public methodconfigureLittleEndianInts
Configures 32-bit int data type functions NOT to do a word swap
Public methodconfigureLittleEndianInts(Int32)
Configures 32-bit int data type functions NOT to do a word swap on a per slave basis
Public methodconfigureStandard32BitMode
Configures all slaves for Standard 32-bit Mode.
Public methodconfigureStandard32BitMode(Int32)
Configures a slave for Standard 32-bit Mode.
Public methodconfigureSwappedFloats
Configures float data type functions to do a word swap
Public methodconfigureSwappedFloats(Int32)
Configures float data type functions to do a word swap on a per slave basis
Public methodcustomFunction
User Defined Function Code
Public methodDispose
Releases any associated communication resources (serial ports or sockets).
Public methodforceMultipleCoils(Int32, Int32, Boolean)
Modbus function 15 (0F hex), Force Multiple Coils.
Public methodforceMultipleCoils(Int32, Int32, Boolean, Int32)
Modbus function 15 (0F hex), Force Multiple Coils.
Public methodStatic membergetPackageVersion
Returns the package version number.
Public methodgetPollDelay
Returns the poll delay time
Public methodgetRetryCnt
Returns the automatic retry count
Public methodgetSuccessCounter
Returns how often a message transfer was successful
Public methodgetTimeout
Returns the current time-out setting
Public methodgetTotalCounter
Returns how often a message transfer has been executed
Public methodisOpen
Returns whether the protocol is open or not.
Public methodmaskWriteRegister
Modbus function 22 (16 hex), Mask Write Register.
Public methodreadCoils(Int32, Int32, Boolean)
Modbus function 1 (01 hex), Read Coil Status/Read Coils.
Public methodreadCoils(Int32, Int32, Boolean, Int32)
Modbus function 1 (01 hex), Read Coil Status/Read Coils.
Public methodCode examplereadDeviceIdentification
Modbus function 43 (hex 2B) subfunction 14 (hex 0E), Read Device Identification
Public methodreadExceptionStatus
Modbus function 7 (07 hex), Read Exception Status.
Public methodreadFileRecord(Int32, MbusMasterFunctionsFileSubRequest)
Modbus function 20, Read File Record.
Public methodreadFileRecord(Int32, Int32, Int32, Int32, Int16)
Modbus function 20, Read File Record.
Public methodreadInputDiscretes(Int32, Int32, Boolean)
Modbus function 2 (02 hex), Read Inputs Status/Read Input Discretes.
Public methodreadInputDiscretes(Int32, Int32, Boolean, Int32)
Modbus function 2 (02 hex), Read Inputs Status/Read Input Discretes.
Public methodreadInputMod10000(Int32, Int32, Int32)
Modbus function 4 (04 hex) for 32-bit modulo-10000 long int data types, Read Input Registers as modulo-10000 long int data.
Public methodreadInputMod10000(Int32, Int32, Int32, Int32)
Modbus function 4 (04 hex) for 32-bit modulo-10000 long int data types, Read Input Registers as modulo-10000 long int data.
Public methodreadInputRegisters(Int32, Int32, Array)
Modbus function 4 (04 hex), Read Input Registers (16-bit, 32-bit, 64-bit and floating point single and double).
Public methodreadInputRegisters(Int32, Int32, Array, Int32)
Modbus function 4 (04 hex), Read Input Registers (16-bit, 32-bit, 64-bit and floating point single and double).
Public methodreadMultipleMod10000(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.
Public methodreadMultipleMod10000(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.
Public methodreadMultipleRegisters(Int32, Int32, Array)
Modbus function 3 (03 hex), Read Holding Registers (16-bit, 32-bit, 64-bit and floating point single and double).
Public methodreadMultipleRegisters(Int32, Int32, Array, Int32)
Modbus function 3 (03 hex), Read Holding Registers (16-bit, 32-bit, 64-bit and floating point single and double).
Public methodreadWriteRegisters(Int32, Int32, Int16, Int32, Int16)
Modbus function 23 (17 hex), Read/Write Registers.
Public methodreadWriteRegisters(Int32, Int32, Int16, Int32, Int32, Int16, Int32)
Modbus function 23 (17 hex), Read/Write Registers.
Public methodresetSuccessCounter
Resets successful message transfer counter
Public methodresetTotalCounter
Resets total message transfer counter
Public methodrestartCommunicationsOption
Modbus function code 8, sub-function 01, Restart Communications Option
Public methodreturnQueryData
Modbus function code 8, sub-function 00, Return Query Data.
Public methodsetPollDelay
Poll delay property
Public methodsetRetryCnt
Configures the automatic retry setting
Public methodsetTimeout
Configures time-out
Public methodwriteCoil
Modbus function 5 (05 hex), Force Single Coil/Write Coil.
Public methodwriteFileRecord(Int32, MbusMasterFunctionsFileSubRequest)
Modbus function 21, Write File Record.
Public methodwriteFileRecord(Int32, Int32, Int32, Int32, Int16)
Modbus function 21, Write File Record.
Public methodwriteMultipleMod10000(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.
Public methodwriteMultipleMod10000(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.
Public methodwriteMultipleRegisters(Int32, Int32, Array)
Modbus function 16 (10 hex), Write Multiple Registers (16-bit, 32-bit, 64-bit and floating point single and double).
Public methodwriteMultipleRegisters(Int32, Int32, Array, Int32)
Modbus function 16 (10 hex), Write Multiple Registers (16-bit, 32-bit, 64-bit and floating point single and double).
Public methodwriteSingleRegister(Int32, Int32, Int16)
Modbus function 6 (06 hex), Preset Single Register/Write Single Register.
Public methodwriteSingleRegister(Int32, Int32, UInt16)
Modbus function 6 (06 hex), Preset Single Register/Write Single Register.
Top
Remarks
The functions provided by this base class apply to all protocol flavours via inheritance. For a more detailed description see section @ref mbusmaster.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

FieldTalk.Modbus.Master Namespace

Other Resources

Data and Control Functions for all Modbus Protocol Flavours
Serial Protocols
IP based Protocols
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.