3964R

from Wikipedia, the free encyclopedia

The 3964 / 3964R protocol is a serial point-to-point protocol for communication between two programmable logic controllers (PLC). It is a master / master protocol . This means that with this protocol, a PLC can manipulate the memory locations (data words) of the partner PLC directly and without asking. In the event of a conflict, a priority parameter regulates the priority.

In the OSI model , 3964 (R) is in the 2nd layer, the link layer. Below (on layer 1) serial interfaces such as RS232 and TTY can be found, while above that the RK512 protocol is often used.

The data is transmitted in full duplex mode , i.e. in both directions at the same time.

Types

The only difference between the 3964 variant and the 3964R protocol is the lack of the Cyclic_Redundancy_Check (CRC), which enables more reliable transmission.

Protocol sequence

A proper transfer looks like this:

Channel receiver
STX
DLE
Data
...
Data
DLE
ETX
(BCC) Only with 3964R
DLE

In the data area, each DLE character (0x10 hex ) to be transmitted must be doubled in order to distinguish it from the DLE at the end of the data area. BCC is the checksum of the 3964R protocol, it does not exist with 3964. The checksum corresponds to the even longitudinal parity of all transmitted data bytes, i.e. their XOR link .

Transmission error

Several error situations are possible:

  1. The receiver responds to STX with NAK (or any other character than DLE or STX). The attempt to send must then be repeated later because the recipient is not ready.
  2. The recipient replies to STX with STX, so he wants to send himself. One of the two partners has to give in and postpone his own transmission request. It sends DLE, indicating that it is ready to receive.
  3. The recipient responds to DLE ETX with NAK (or any other character than DLE). The attempt to send must then be repeated because a checksum error has occurred.
  4. The recipient does not respond within the acknowledgment delay time. Then (after any further unsuccessful attempts) it can be assumed that the recipient is faulty.

swell

Serial input / output module CP 523 Chapter 7.1.1: Protocols 3964 and 3964R