Basic Principles of Serial Data Transmission
2-28
Point-to-point connection CP 440 Installation and Parameter Assignment
A5E00057742-02
Receiving Data with 3964(R)
The figure below illustrates the transmission sequence when data is received with
the 3964R procedure.
CP 440
Communication
partner
Connection
setup
User
data
Connection
cleardown
STX
DLE
1st byte
2nd byte
nth byte
DLE
ETX
BCC
DLE
Start code (02H)
Pos. acknowledgment (10H)
1st data byte
2nd data byte
nth data byte
End code (10H)
End code (03H)
3964(R) only
Pos. acknowledgment (10H)
Figure 2-14
Data Traffic When Receiving with the 3964(R) Procedure
Note
As soon as it is ready, the 3964(R) procedure sends a single NAK to the
communication partner to set the latter to idle.
Establishing a Receive Connection
In idle mode, when there is no send job to be processed, the procedure waits for
the communication partner to establish the connection.
If no empty receive buffer is available during a connection setup with STX, a wait
time of 400 ms is started. If there is still no empty receive buffer after this time has
elapsed, the CP 440 reports the error (error message at the STATUS output of the
FB). The procedure sends an NAK and returns to idle mode. Otherwise, the
procedure sends a DLE and receives the data.
If the procedure receives any control code except for STX or NAK in idle mode, it
waits for the character delay time to expire, then sends the code NAK. The CP 440
reports the error to the RECV_440 function block (STATUS output parameter).
Содержание SIMATIC CP 440
Страница 10: ...Contents x Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...
Страница 134: ...Diagnostics with the CP 440 8 16 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...
Страница 164: ...Accessories and Order Numbers D 2 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...