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