Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 9 of 31

DF1 Protocol and Command Set Reference Manual: 4 - Using Full-duplex Protocol to Send and Receive Messages, pages 64 to 72

Pages 64 to 72 of 251, from DF1 Protocol and Command Set Reference Manual

The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Allen-Bradley 5250-LP and Allen-Bradley 5250-MLP1

Page 64

4–10

Using Full-duplex Protocol to Send and Receive Messages

Full-duplex Protocol Diagrams

These transfer diagrams show events that occur on various interfaces. Time is represented as increasing from the top of the diagram to the bottom. Link-layer data bytes are represented by “xxxx” and corrupted data by “???”. For this diagram

See page normal message transfer

4-10 message transfer with NAK

4-11 message transfer with timeout & ENQ

4-12 message transfer with re-transmission

4-13 message transfer with message sink full

4-14 message transfer with NAK on reply

4-15 message transfer with timeout and ENQ for the reply

4-16 message transfer with message source full on the reply

4-17

Normal Message Transfer In this transfer: • the transmitter sends the data to the receiver • the sink sends a “not full” message • the receiver sends the data to the sink and sends a DLE ACK to the transmitter • the transmitter tells the source that the data was delivered • reply is successfully returned Source

Transmitter

Link

Receiver

Sink command xxxx

DLE STX xxxx DLE ETX BCC/CRC DLE ACK

OK reply not full xxxx

(sometime later ...) not full

DLE STX xxxx DLE ETX BCC/CRC xxxx DLE ACK

Publication 1770-6.5.16 - October 1996

OK

Page 65

Using Full-duplex Protocol to Send and Receive Messages

4–11

Message Transfer with NAK In this transfer: • the transmitter sends corrupted data to the receiver and the receiver responds with a DLE NAK • the transmitter retransmits and the transmission is successful • the receiver sends a DLE ACK to the transmitter • reply is successfully returned Source

Transmitter command xxxx

Link

Receiver

Sink

DLE STX x???x DLE ETX BCC/CRC DLE NAK DLE STX xxxx DLE ETX BCC/CRC not full xxxx DLE ACK

OK reply

(sometime later ...) not full

DLE STX xxxx DLE ETX BCC/CRC xxxx DLE ACK

OK

Publication 1770-6.5.16 - October 1996

Page 66

4–12

Using Full-duplex Protocol to Send and Receive Messages

Message Transfer with Timeout and ENQ In this transfer: • the receiver receives a transmission, but sends back a DLE ACK that is corrupted • the transmitter times out waiting for the DLE ACK and sends a DLE ENQ • the receiver sends back a DLE ACK • a reply is successfully returned Source

Transmitter command xxxx

Link

DLE STX xxxx DLE ETX BCC/CRC

DL???CK

Receiver

Sink not full xxxx

(timeout) DLE ENQ DLE ACK

OK reply

(sometime later ...) not full xxxx

Publication 1770-6.5.16 - October 1996

DLE STX xxxx DLE ETX BCC/CRC

DLE ACK

OK

Page 67

Using Full-duplex Protocol to Send and Receive Messages

4–13

Message Transfer with Re-Transmission In this transfer: • noise destroys the DLE ACK while also producing invalid characters at the receiver • because of the invalid characters, the receiver changes its last response variable to a DLE NAK • since the DLE ACK was destroyed, the transmitter sends a DLE ENQ (enquiry), and the receiver returns the DLE NAK • the transmitter retransmits the message and the receiver sends an ACK • the receiver discards the duplicate message (if duplicate message detection is enabled on your module) • reply is successfully returned Source

Transmitter command xxxx

Link

Receiver

DLE STX xxxx DLE ETX BCC/CRC not full xxxx

DL???CK (timeout)

Sink

???

(timeout) DLE ENQ DLE NAK DLE STX xxxx DLE ETX BCC/CRC DLE ACK

OK

(duplicate message)

(sometime later ...) reply not full xxxx

DLE STX xxxx DLE ETX BCC/CRC

DLE ACK

OK

In this transfer, the receiver has no way of knowing that the DLE ACK it sent to the transmitter was destroyed. If the transmitter’s ACK timeout is large enough, it is possible that the reply (i.e., DLE STX xxxx DLE ETX BCC/CRC) comes back before the transmitter sends the DLE ENQ. Therefore, the reply comes in before the DLE ACK is received by the transmitter.

Publication 1770-6.5.16 - October 1996

Page 68

4–14

Using Full-duplex Protocol to Send and Receive Messages

Message Transfer with Message Sink Full In this transfer: • the transmitter sends a message but the message sink is full, so the receiver sends back a DLE NAK • the transmitter retransmits and the sink is no longer full, so the receiver returns a DLE ACK • a reply is successfully returned Source

Transmitter command xxxx

Link

DLE STX xxxx DLE ETX BCC/CRC

Receiver

Sink

Full

DLE NAK DLE STX xxxx DLE ETX BCC/CRC

Full

DLE NAK DLE STX xxxx DLE ETX BCC/CRC DLE ACK

OK reply not full xxxx

(sometime later ...) DLE STX xxxx DLE ETX BCC/CRC not full xxxx

Publication 1770-6.5.16 - October 1996

DLE ACK

OK

Page 69

Using Full-duplex Protocol to Send and Receive Messages

4–15

Message Transfer with NAK on Reply In this transfer: • the message is successfully transmitted on the network • the reply is corrupted and the transmitter responds with a DLE NAK • the reply is sent again and is successful Source

Transmitter command xxxx

Link

Receiver

DLE STX xxxx DLE ETX BCC/CRC DLE ACK

Sink not full xxxx

OK (sometime later ...)

reply

DLE STX x??x DLE ETX BCC/CRC DLE NAK DLE STX xxxx DLE ETX BCC/CRC not full xxxx

DLE ACK

OK

Publication 1770-6.5.16 - October 1996

Page 70

4–16

Using Full-duplex Protocol to Send and Receive Messages

Message Transfer with Timeout and ENQ for the Reply In this transfer: • the message is successfully transmitted on the network • the receiver sends a reply from the network but the transmitter sends back a DLE ACK that is corrupted • the receiver times out waiting for the DLE ACK and sends a DLE ENQ • the transmitter sends back a DLE ACK Source

Transmitter command xxxx

Link

DLE STX xxxx DLE ETX BCC/CRC DLE ACK

Receiver

Sink not full xxxx

OK (sometime later ...) reply

DLE STX xxxx DLE ETX BCC/CRC not full xxxx

DL???CK (Timeout) DLE ENQ DLE ACK

Publication 1770-6.5.16 - October 1996

OK

Page 71

Using Full-duplex Protocol to Send and Receive Messages

4–17

Message Transfer with Message Source Full on the Reply In this transfer: • the message is successfully transmitted on the network • the receiver sends a reply but the message source is full, so the transmitter sends back a DLE NAK • the receiver retransmits and the source is no longer full, so the transmitter returns a DLE ACK Source

Transmitter command xxxx

Link

Receiver

DLE STX xxxx DLE ETX BCC/CRC DLE ACK

Sink not full xxxx

OK (sometime later ...) reply Full

DLE STX xxxx DLE ETX BCC/CRC

DLE NAK DLE STX xxxx DLE ETX BCC/CRC not full xxxx DLE ACK

OK

Publication 1770-6.5.16 - October 1996

Page 72

Message Packets

Data-link Layer Message Frames

Chapter 5

Application Layer Message Packets Communication Commands

Chapter 6

Chapter 7

Message Packet Status Codes (STS and EXT STS) Chapter 8