beautypg.com

Using the serial port, Serial data example – Rockwell Automation 2706 DL20 SERIES G USER MANUAL User Manual

Page 69

background image

Chapter 6

The Serial Port

6–4

Serial Data Example

Here is an example of a message containing variables, which is triggered
using the serial link. The example message (number 4) is:

Voltage =

, current =

To trigger this message, the following strings are sent:

ASCII

(Ctrl V)

4

1

6

0

[Return]

Decimal Equivalent:

22

52

49

54

48

13

Hex Equivalent:

16

34

31

36

30

0D

Octal Equivalent:

26

64

61

66

60

15

This queues up 4160 as the “voltage” value.

ASCII

(Ctrl V)

1

2

0

0

[Return]

Decimal Equivalent:

22

49

50

48

48

13

Hex Equivalent:

16

31

32

30

30

0D

Octal Equivalent:

26

61

62

60

60

15

This queues up 1200 as the “current” value.

ASCII

(Ctrl T)

4

[Return]

Decimal Equivalent:

20

52

13

Hex Equivalent:

14

34

0D

Octal Equivalent:

24

64

15

This queues up a trigger for message number 4, which causes this message to
be displayed:

Voltage = 4160, Current = 1200

Note: Don’t forget that the DL20 must be set up for BINARY MSG & VAR
DATA of the parallel port options for serial port queuing to work. This is
selected from the special functions menu.

Using the Serial Port