• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
RegisterConverter Class
RegisterConverter Constructor
RegisterConverter Methods
Click or drag to resizeClick or drag to resize

RegisterConverter Class

Helper class to convert common data types to Modbus registers and back.
Inheritance Hierarchy
SystemObject
  FieldTalk.Modbus.MasterRegisterConverter

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 class RegisterConverter
Public Class RegisterConverter
public ref class RegisterConverter

The RegisterConverter type exposes the following members.

Constructors
  NameDescription
Public methodRegisterConverter
Initializes a new instance of the RegisterConverter class
Top
Methods
  NameDescription
Public methodStatic memberToBits(Byte)
Unpack all the bits in a byte to a boolean array containing the bits
Public methodStatic memberToBits(Byte)
Unpack all the bits in an array of unsigned bytes to a boolean array containing the bits
Public methodStatic memberToBits(SByte)
Unpack all the bits in a signed byte to a boolean array containing the bits
Public methodStatic memberToBits(SByte)
Unpack all the bits in an array of signed bytes to a boolean array containing the bits
Public methodStatic memberToByte
Unpack 8 boolean values into an unsigned byte
Public methodStatic memberToBytes
Pack an array of bits into an array of 8-bit unsigned bytes
Public methodStatic memberToDouble
Cast four 16-bit register array elements to a 64-bit floating point value with little-endian word order
Public methodStatic memberToInt16(Int32)
Cast a signed 32-bit value to a tuple of 16-bit register values
Public methodStatic memberToInt16(Single)
Cast an 32-bit floating point value to a tuple of 16-bit register values
Public methodStatic memberToInt16(UInt16)
Cast an unsigned 16-bit value to a 16-bit register value
Public methodStatic memberToInt16(UInt32)
Cast an unsigned 32-bit value to a tuple of 16-bit register values
Public methodStatic memberToInt16(Int32, Int16, Int32)
Copies a signed 32-bit integer value into an array of 16-bit register values
Public methodStatic memberToInt16(Single, Int16, Int32)
Copies a 32-bit floating point value into an array of 16-bit register values
Public methodStatic memberToInt16(String, Int32, Boolean)
Convert an ASCII string into an array of 16-bit Modbus registers
Public methodStatic memberToInt16(UInt32, Int16, Int32)
Copies an unsigned 32-bit integer value into an array of 16-bit register values
Public methodStatic memberToInt32(Int16)
Cast a tuple of 16-bit registers to a signed 32-bit value
Public methodStatic memberToInt32(Int16, Int32)
Cast a tuple of 16-bit register array elements to a signed 32-bit value
Public methodStatic memberToSByte
Unpack 8 boolean values into a igned byte
Public methodStatic memberToSBytes
Pack an array of bits into an array of 8-bit signed bytes
Public methodStatic memberToSingle(Int16)
Cast a tuple of 16-bit registers to a 32-bit floating point value
Public methodStatic memberToSingle(Int16, Int32)
Cast a tuple of 16-bit register array elements to a 32-bit floating point value with little-endian word order
Public methodStatic memberToUInt16(Int16)
Cast a 16-bit register value to an unsigned 16-bit value
Public methodStatic memberToUInt16(Int16, Int32)
Cast a 16-bit register array element to an unsigned 16-bit value
Public methodStatic memberToUInt32(Int16)
Cast a tuple of 16-bit registers to an unsigned 32-bit value
Public methodStatic memberToUInt32(Int16, Int32)
Cast a tuple of 16-bit register array elements to an unsigned 32-bit value
Top
Thread Safety
Static members of this type are safe for multi-threaded operations.
See Also

Reference

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.