Example 3 (relay on), Example 4 (relay off) – Rockwell Automation 2706-F11J_F11JC_F21J_F21JC DL50 INSTALLATION MANUAL User Manual

Page 68

Advertising
background image

Chapter 6

Slave Mode Operation / Examples

6–4

Example 3 (Relay On)

Command Function: Energize annunciation relay on DL50 with an

address of 150.

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

150

Decimal

48

Decimal

CR

(Decimal 13)

Field 4
Slave Address

Field 5
Line Number

Field 6
Carriage Return

1 byte

1 byte

1 byte

Address

Relay On

End Message

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

100: Print #1, CHR$(150) + CHR$(48) + CHR$(13)

Example 4 (Relay Off)

Command Function: De-energize annunciation relay on DL50 with an

address of 150.

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

150

Decimal

49

Decimal

CR

(Decimal 13)

Field 4
Slave Address

Field 5
Line Number

Field 6
Carriage Return

1 byte

1 byte

1 byte

Address

Relay Off

End Message

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

100: Print #1, CHR$(150) + CHR$(49) + CHR$(13)

Advertising