Frame and field delimiters, Character strings – Banner PresencePLUS P4 Series User Manual

Page 64

Advertising
background image

0000000118.116 CMD exec trigger
0000000118.483 OUT 0\x0D\x0A

In this example, command exec trigger was sent to RCC interface. The interface was configured to use no
start frame delimiter, and carriage return (\x0D) and line feed (\x0A) as frame delimiters. As soon as valid frame
delimiters were received, the command exec trigger was sent for processing, and the command response was
sent back after inspection finished executing.

Frame and Field Delimiters

The PresencePLUS GUI includes a drop-down list of Frame delimiters as follows:

<none> for no delimiter
\r for carriage return (<CR>)
\n for line feed (LF)
\r\n for carriage return followed by a line feed (CR-LF)
\n\r for line feed followed by a carriage return (LF-CR)

In addition to the above field delimiters, you can enter other delimiter types keeping in mind the following:

• ASCII hex format can be used as a delimiter
• a NULL character can be used as a delimiter (specified in ASCII hex format)
• Frame delimiters can be multi-character sequences up to 20 characters long

The PresencePLUS GUI includes a drop-down list of Field delimiters as follows:

<none> for no delimiter
, for comma
; for semi-colon
: for colon
<SPC> for space
\t for tab

In addition to the above field delimiters, you can enter other delimiter types keeping in mind the following:

• ASCII hex format can be used as a delimiter
• a NULL character can be used as a delimiter (specified in ASCII hex format)
• Field delimiters can be multi-character sequences up to 10 characters long

Character Strings

Communications Tool configured for Barcode or String Tool output may produce strings that contain non-printable
ASCII characters, such as carriage returns, line feeds, and characters in the upper ASCII range.

To output these strings, the following encoding rules are used:

• Tool output strings will be enclosed in double quote characters, “.
• Any non-printable ASCII character, including NULL, will be converted to its ASCII Hex equivalent.

The ASCII Hex string will be preceded by character sequence “\x” (backslash-lower-case-x). The
ASCII Hex string will always be two characters long. For example, NULL will be converted to “\x00”,
and carriage return will be converted to “\x0D”. To represent ASCII Hex digits, only upper case
letters, A-F, will be used.

• Any backslash encountered in the Barcode or String Tool data will be converted to its ASCII Hex

equivalent, “\x5C”.

P/N 000000

Banner Engineering Corp. - Minneapolis, MN USA - www.bannerengineering.com

Tel: 763.544.3164

64

7/2009

System Setup Window Overview

Advertising