CN8240 & CN8260 Series Communications & Options

Digital

Communications Option

Examples of valid numeric representations for a 6 character data field:

Numeric Value

ASCII Representation

3

3.0000

 

000003

 

003.00

100

100.00

 

0100.0

 

000100

3.2

003.20

 

0003.2

Examples of invalid numeric representations for 6 character data field:

(B represents a blank, or a space, character)

Numeric Value

Bad ASCII Representation

Why?

 

 

 

3

BBBBB3

Leading blanks

 

 

are not allowed.

 

3.0BBBB

Trailing blanks

 

 

are not allowed.

3.2

-3.20000

‘-’ is not allowed.

CHKSUM

This is a two character Message Code Numbering System, representing the sum of all the ASCII values of all the characters (excluding the START, CHAR, the END CHAR, and the CHKSM themselves) in the message. The sum is computed using the following formula:

CHKSM = SUM(All Message Characters)%256 % represents the modulus operator.

END CHAR

This is a single character designating the end of the message. For all messages, the character used is <CR>, the carriage return.

8

Page 11
Image 11
Omega Engineering CN8240, CN8260 manual Chksum, END Char