Motor on, Example 2 (duplex protocol) – Rockwell Automation 2706-F11J_F11JC_F21J_F21JC DL50 INSTALLATION MANUAL User Manual

Page 67

Advertising
background image

Chapter 6

Slave Mode Operation / Examples

6–3

Example 2 (Duplex Protocol)

Command Function: Display message shown below on all DL50 message
displays.

Motor ON

The command specifies message attributes of roll in display mode, fast
display speed, 4.8 inch text, and annunciation relay on.

Address 255 specifies that the message is displayed on all DL50s.

The host would need to send the following data (Duplex Protocol):

Ctrl-B

(Decimal 2)

Field 1
Control Byte

M

(Decimal 77)

1 byte

Field 2
ASCII Text

1 of 8 bytes

2 of 8 bytes

3 of 8 bytes

4 of 8 bytes

5 of 8 bytes

o

(Decimal 111)

t

(Decimal 116)

o

(Decimal 111)

r

(Decimal 114)

SPACE

(Decimal 32)

O

(Decimal 79)

Field 2
ASCII Text

7 of 8 bytes

8 of 8 bytes

N

(Decimal 78)

255

Decimal

1

Decimal

CR

(Decimal 13)

Field 2
ASCII Text

Field 2
ASCII Text

Field 2
ASCII Text

Field 2
ASCII Text

6 of 8 bytes

Field 2
ASCII Text

Field 2
ASCII Text

Field 3
Slave Address

Field 4
Line Number

1 byte

1 byte

Field 5
Carriage Return

165

Decimal

200

Decimal

2 of 3 bytes

3 of 3 bytes

128

Decimal

0

Decimal

05

Decimal

202

Decimal

1 of 3 bytes

Field 6
Message Attributes

Field 7
Checksum

Field 7
Checksum

Field 7
Checksum

1 byte

Field 6
Message Attributes

Field 6
Message Attributes

2 of 3 bytes

3 of 3 bytes

1 of 3 bytes

Append & Display

Message

Fast Display,

Roll in

Relay On

4.5 Inch text

Always Set

to 128

Message Text

Message Text

Checksum Bytes

A simple BASIC program for a host PC to send the message would be:

100: Print #1, CHR$(2) + “Motor ON” + CHR$(255) + CHR$(1) + CHR$(13) + CHR$(165) +

HR$(200) + CHR$(128) + CHR$(0) + CHR$(05) + CHR$(202

)

Note: Refer to Appendix F for checksum calculations.

Advertising