RegisterConverterToInt16 Method (Single, Int16, Int32) |
Copies a 32-bit floating point 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(
float floatVal,
short[] regArr,
int startIndex
)
Public Shared Sub ToInt16 (
floatVal As Single,
regArr As Short(),
startIndex As Integer
)
public:
static void ToInt16(
float floatVal,
array<short>^ regArr,
int startIndex
)
Parameters
- floatVal
- Type: SystemSingle
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