Documentation

RegisterConverterToInt16 Method (String, Int32, Boolean)

Convert an ASCII string into an array of 16-bit Modbus registers

Namespace:  FieldTalk.Modbus.Master
Assembly:  FieldTalk.Modbus.Master (in FieldTalk.Modbus.Master.dll) Version: 2.15.2-eval+3d8362b4bb861c05760d48b11d303e954bb8597c
Syntax
public static short[] ToInt16(
	string s,
	int wordLimit,
	bool fill
)

Parameters

s
Type: SystemString
ASCII string
wordLimit
Type: SystemInt32
Max size of allocated registers for string. Max is 125.
fill
Type: SystemBoolean
Flag if array should be filled to wordLimit with 0 characters

Return Value

Type: Int16
Array containing the register values
See Also