Computer Link with 3964(R) Transmission Protocol
S5-95U, Second Serial Interface
Sending
For building up a connection, the PLC sends the STX (start of text) control character. If the
communication partner
*
responds with the DLE (Data Link Escape) character before the timeout has
elapsed, the transmission protocol switches to send mode. If the communication partner responds
with NAK (Negative Acknowledgement), any other character (except DLE) or the timeout elapses
without any response, the connection buildup has failed. After a total of 6
**
failed attempts, the
procedure is aborted and the connection buildup error entered in coordination byte KBS.
If the connection buildup is successful, the net data in the send buffer is sent to the communication
partner at the selected transmission speed. The communication partner supervises the intervals
between the incoming characters. The interval between two characters may not exceed the
character delay time
***
.
Each DLE control character available in the buffer is sent as two DLE characters (DLE duplication),
i.e. the data item (10
H
) is sent twice.
After transmission of the buffer contents, the PLC adds the following characters as end-of-text
characters:
•
3964 transmission protocol:
DLE ETX
•
3964R transmission protocol:
DLE ETX BCC
The PLC waits for an acknowledgement. If the communication partner sends the DLE character
within the timeout, the data block has been received without any error.
If the communication partner responds with NAK, any other character or the timeout elapses without
any response, the PLC starts sending again by means of STX (connection buildup). After a total of 6
failed attempts
**
to send the data block, the PLC discontinues the procedure, enters an error
message in the KBS and sends a NAK character to the communication partner.
If the communication partner sends the NAK character during a send procedure, the PLC aborts the
procedure and repeats it in the manner described above. In the case of another character, the PLC
initially waits for the character delay time to elapse and sends a NAK to set the communication
partner to the idle state
****
. Then the PLC starts sending again by means of a connection buildup
(STX).
*
Default value in DB1: 2000 ms
**
Default value in DB1, other values may also be parameterized
***
Default value in DB1: 220 ms (depending on transmission rate)
**** i.e. the 3964(R) driver is currently not executing any send request and the node is waiting for the PLC to establish a
connection.
3-20
EWA 4NEB 812 6095-02