EasyManuals Logo

Siemens SIMATIC CP 340 User Manual

Siemens SIMATIC CP 340
200 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #38 background imageLoading...
Page #38 background image
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure
PtP coupling and configuration of CP 340
38 Manual, 04/2011, A5E00369892-03
2.4.4 Receiving Data with 3964(R)
Process of Data Transmission when Receiving
The figure below illustrates the transmission sequence when data is received with the
3964(R) procedure.
&3
67;
'/(
'/(
(7;
%&&
'/(
ထ
ထ
&RPPXQLFDWLRQ
SDUWQHU
VWE\WH
QGE\WH
VWGDWDE\WH
QGGDWDE\WH
QWKE\WH QWKGDWDE\WH
6WDUWFRGH+
3RVDFNQRZOHGJPHQW+
(QGFRGH+
(QGFRGH+
5RQO\
3RVDFNQRZOHGJPHQW+
&RQQHFWLRQ
VHWXS
8VHU
GDWD
&RQQHFWLRQ
UHOHDVH
Figure 2-8 Data Traffic when Receiving with the 3964(R) Procedure
Establishing a Receive Connection
In idle mode, when there is no send request to be processed, the procedure waits for the
communication partner to establish the connection.
If the idle procedure receives any control code except for STX or NAK, it waits for the
character delay time to expire, then sends the code NAK.
receiving data
If the procedure receives the STX code and an empty receive buffer is available, it responds
with DLE. Incoming receive characters are now stored in the receive buffer. If two
consecutive DLE codes are received, only one of these is stored in the receive buffer.
After each receive character, the procedure waits out the character delay time for the next
character. If this period expires before another character is received, an NAK is sent to the
communication partner. The system program then reports the error to the function block
P_RCV (output parameter STATUS).
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 expired, the system
program reports the error (error message in STATUS output of FB), and the procedure
sends a NAK and returns to idle mode. Otherwise, the procedure sends a DLE and receives
the data as described above.

Table of Contents

Other manuals for Siemens SIMATIC CP 340

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC CP 340 and is the answer not in the manual?

Siemens SIMATIC CP 340 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC CP 340
CategoryComputer Hardware
LanguageEnglish

Related product manuals