FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
RegisterConverter Class
RegisterConverter Methods
ToBits Method
ToByte Method
ToBytes Method
ToDouble Method
ToInt16 Method
ToInt32 Method
ToSByte Method
ToSBytes Method
ToSingle Method
ToUInt16 Method
ToUInt32 Method

# RegisterConverter Methods

The RegisterConverter type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| ToBits(Byte) | Unpack all the bits in a byte to a boolean array containing the bits
| ToBits( Byte ) | Unpack all the bits in an array of unsigned bytes to a boolean array containing the bits
| ToBits(SByte) | Unpack all the bits in a signed byte to a boolean array containing the bits
| ToBits( SByte ) | Unpack all the bits in an array of signed bytes to a boolean array containing the bits
| ToByte | Unpack 8 boolean values into an unsigned byte
| ToBytes | Pack an array of bits into an array of 8-bit unsigned bytes
| ToDouble | Cast four 16-bit register array elements to a 64-bit floating point value with little-endian word order
| ToInt16(Int32) | Cast a signed 32-bit value to a tuple of 16-bit register values
| ToInt16(Single) | Cast an 32-bit floating point value to a tuple of 16-bit register values
| ToInt16(UInt16) | Cast an unsigned 16-bit value to a 16-bit register value
| ToInt16(UInt32) | Cast an unsigned 32-bit value to a tuple of 16-bit register values
| ToInt16(Int32, Int16 , Int32) | Copies a signed 32-bit integer value into an array of 16-bit register values
| ToInt16(Single, Int16 , Int32) | Copies a 32-bit floating point value into an array of 16-bit register values
| ToInt16(String, Int32, Boolean) | Convert an ASCII string into an array of 16-bit Modbus registers
| ToInt16(UInt32, Int16 , Int32) | Copies an unsigned 32-bit integer value into an array of 16-bit register values
| ToInt32( Int16 ) | Cast a tuple of 16-bit registers to a signed 32-bit value
| ToInt32( Int16 , Int32) | Cast a tuple of 16-bit register array elements to a signed 32-bit value
| ToSByte | Unpack 8 boolean values into a igned byte
| ToSBytes | Pack an array of bits into an array of 8-bit signed bytes
| ToSingle( Int16 ) | Cast a tuple of 16-bit registers to a 32-bit floating point value
| ToSingle( Int16 , Int32) | Cast a tuple of 16-bit register array elements to a 32-bit floating point value with little-endian word order
| ToUInt16(Int16) | Cast a 16-bit register value to an unsigned 16-bit value
| ToUInt16( Int16 , Int32) | Cast a 16-bit register array element to an unsigned 16-bit value
| ToUInt32( Int16 ) | Cast a tuple of 16-bit registers to an unsigned 32-bit value
| ToUInt32( Int16 , Int32) | Cast a tuple of 16-bit register array elements to an unsigned 32-bit value

Top
See Also

#### Reference

RegisterConverter Class
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2