beautypg.com

Rockwell Automation 1770-KF2 Data Highway or Highway Plus Interface Module User Manual User Manual

Page 130

background image

Message Packet Formats

Chapter 5

5-51

The format for the Typed Write message is as follows:

TNS

STS

CMD

0F

SRC

DST

FNC

67

PACKET

OFFSET

TOTAL

TRANS

PLC-5 SYSTEM

ADDRESS

1

2

1

Type/Data Parameter
Data Bytes — This can be up to 240 bytes long
(including the size of the PLC-5 system address and data type information).

2

Command Format:

Reply Format:

TNS

STS

CMD

4F

SRC

DST

EXT

STS

The packet offset, total transaction (in elements), and size (in elements)
are all two bytes. The PLC-5 system address can be a logical binary
address or a logical ASCII address containing up to 51 bytes of
specification.

The STS and EXT STS bytes contain status and error code information.
For more information on these bytes, see the “Error Codes” section in this
document.

The Typed Read and Typed Write commands for the PLC-5 are similar to
the Word Range Read and Word Range Write for the PLC-3. The
differences are:

The PLC-5 Typed Read/Write commands replace the data parameter in

the request or response with a type/data parameter.

The PLC-5 commands use elements, not words (i.e., timer elements

return five words, counter elements return three words, etc.).

Table 5.F contains the types of data you can send or receive and the ID
value of each: