RegisterConverterToInt16 Method (UInt32, Int16, Int32) |
Copies an unsigned 32-bit integer value into an array of 16-bit register values
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxpublic static void ToInt16(
uint intVal,
short[] regArr,
int startIndex
)
Public Shared Sub ToInt16 (
intVal As UInteger,
regArr As Short(),
startIndex As Integer
)
public:
static void ToInt16(
unsigned int intVal,
array<short>^ regArr,
int startIndex
)
Parameters
- intVal
- Type: SystemUInt32
Value to be converted - regArr
- Type: SystemInt16
Register array to receive the values - startIndex
- Type: SystemInt32
Copy operation will occupy 2 array elements starting at startIndex
See Also