Use the plc-5 message instruction with byte, Destination address – Rockwell Automation 1747-KE,D17476.12 DH-485/RS-232C Interface Module User Manual

Page 124

Advertising
background image

Publication 1747-UM005B-EN-P - March 2006

B-4 PLC-5 to SLC 500 Communications

Use the PLC-5 Message
Instruction with Byte

The PLC-5 Message instruction’s octal Destination Address must be
between 010 (base 8) and 377 (base 8). This range corresponds to
byte 16 (base 10) through byte 510 (base 10). This allows odd and
even words in the SLC processor to be addressed by the PLC-5
Message instruction.

Destination Address

The maximum value for the PLC-5 Message instruction Size in
Elements parameter is 41 when the destination is an SLC processor
(assuming 1 word elements).

For example, write 10 words from N7 in a PLC-5 to an SLC 5/02 using
the PLC-5’s processor Message instruction. To write 10 words:

1. Set up the source address in the Message instruction as N7:0.

2. Set the Size in Elements to 10.

3. Set up the Command Type as PLC-2 Unprotected Write.

4. Set up the Destination Address as 010 (base 8). This corresponds

to the SLC address, N9:8.

Since 10 words will be written, make sure that the N9 file in the SLC
processor is created to at least N9:17.

It is assumed that the Message instruction will be set up for a remote
destination, since there must be a bridge between the PLC-5 processor
and the SLC 5/02 processor, such as a 1784-KA5 linking a DH+ and
the DH-485 network. The 1747-KE module can be used as a bridge
between the DF1 and DH-485 network.

IMPORTANT

The byte addressing mode is selected in the SLC
processor by setting bit S:2/8 to 1. (The default is
S:2/8 = 0 for word addressing.)This selection bit is
only available in the SLC 5/02 Series B, FRN 3
processor or later.

Byte

Word

SLC Processor Address

16

8

N9:8

18

9

N9:9

20

10

N9:10

...

...

...

510

255

N9:255

Advertising