beautypg.com

Rockwell Automation 2706 DL20 SERIES G USER MANUAL User Manual

Page 68

background image

Chapter 6

The Serial Port

6–3

The control code indicates whether the data is a message number or a
variable. The ASCII string represents the message number or variable. For
example, the number 4,286 would be sent out like this:

ASCII

4

2

8

6

Decimal Equivalent:

52

50

56

54

Hex Equivalent:

34

32

38

36

Octal Equivalent:

64

62

70

66

If the data is a message number, it must contain one or more digits. If it
contains more than four digits, only the last four are accepted. If the number
input is greater than 1022 (the highest message number) it is ignored. Zero is
also ignored.

If the data is a variable, it also must contain one or more digits. If the
number contains more than five digits, only the last five sent are accepted. In
addition, the first character of the field may be a plus or minus sign. The
number is assumed to be positive if no sign is sent. The highest number
accepted is +32,767 and the lowest is -32,768. All other characters in this
field are ignored, including spaces. For example, these two strings are
equivalent:

ASCII

-

2

2

Decimal Equivalent:

45

50

50

Hex Equivalent:

2D

32

32

Octal Equivalent:

55

62

62

ASCII

(sp)

-

2

q

2

Decimal Equivalent:

32

45

50

113

50

Hex Equivalent:

20

2d

32

71

32

Octal Equivalent:

40

55

62

161

62

Important: Sending three consecutive [Esc] characters (decimal 27, hex 1B,
octal 33) takes the DL20 out of run mode.

All data entered must be followed by the carriage return character (decimal
13, hex D, octal 15). The DL20 queues the data following receipt of the
carriage return.