Note: To ensure successful data communication, either a terminator character or number of characters must be specified. If possible, use a terminator character as this provides more reliable communication.
Terminator
Click this box if the data string received from the device contains a terminator character.
|
Terminator ASCII character
Select the ASCII code of the terminator.
|
Number of characters to read
If the data string does not contain a terminator, specify the number of characters to read.
|
Minimum number of reads
If your device (serial or network) provides a continuous data stream (without request string), use at least 2 reads to ensure a complete data string is received.
For devices which provide the data on-demand (with request string), a single read must be used.
|
Maximum number of reads
Enter the maximum number of reads. If no data is received within this number of reads, the request cycle will be aborted.
|
Return data
Normally, the data is required in a single data string. However, if multiple data strings are required and no specific end-of-message terminator is provided, the data from multiple reads may be required. See below for examples.
|
Timeout
Enter the timeout in milliseconds.
This timeout is used when attempting to read each character from the device. See also <TO_DO>
|
Remove control characters
Tick this box if all control characters (ASCII code less than 32 or greater than 128) should be removed.
Do not tick this box if the data string uses control characters as data separators.
|
Ignore ASCII null
Tick this box if any ASCII null (0) characters received should be ignored.
|
Flush port before reading
Tick this box if the receive-buffer should be flushed before reading data.
|
Ignore blank input
Tick this box if blank data should not be accepted by ERP-Scale PSE as a valid response.
|
Example settings:
Data string from device
|
Suggested settings
|
{STX}123.45KG{ETX}
|
Terminator = ETX
|
123.45{CR}{LF}
|
Terminator = LF
Remove control = Yes
|
123.55KG{CR}50.00KG{CR}173.55KG{CR}{LF}
|
Terminator = LF
|
123.55KG{CR}50.00KG{CR}173.55KG{CR}
|
Terminator = CR
Minimum number of reads = 3
Return all data = Yes
|