RegisterConverterToInt16 Method (UInt16) |
Cast an unsigned 16-bit value to a 16-bit register value
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxpublic static short ToInt16(
ushort ushortVal
)
Public Shared Function ToInt16 (
ushortVal As UShort
) As Short
public:
static short ToInt16(
unsigned short ushortVal
)
Parameters
- ushortVal
- Type: SystemUInt16
Value to be converted
Return Value
Type:
Int16 16-bit register value
See Also