Basic Principles of Serial Data Transmission
2.5 Data transfer using the ASCII driver
PtP coupling and configuration of CP 340
54
Manual, 04/2011, A5E00369892-03
End Criterion Fixed Message Frame Length
When data is received, the end of the message frame is recognized when the configured
number of characters has arrived. The received data is taken over by the CPU with the
function block P_RCV.
If the character delay time expires before the configured number of characters has been
reached, the receive operation is terminated. An error message is issued and the message
frame fragment is discarded.
The figure below illustrates a receive operation with the end criterion "Fixed message frame
length".
:DLWLQJIRU
FKDUDFWHU
&KDUDFWHUUHFHLYHG
ZLWKOHQJWKFRQWURO
DQGFKDUDFWHUGHOD\
WLPH
0HVVDJHIUDPH
HQWHUHGLQ
UHFHLYHEXIIHU
0HVVDJH
IUDPH
FRPSOHWH
&KDUDFWHU
DUULYHG
&KDUDFWHU
GHOD\WLPH
H[SLUHG
:DLWLQJIRU
FRQILJXUHG
QXPEHURIFKDUDFWHUVRU
WKHH[SLUDWLRQRIWKH
FKDUDFWHUGHOD\
(UURUHQWHUHGLQ
UHFHLYHEXIIHU
(UURUZKHQUHFHLYLQJ
0
H
V
V
D
J
HI
UD
P
HE
X
II
H
UH
G
(Q
GF
UL
WH
UL
R
QI
R
UP
H
V
V
D
J
HI
UD
P
HL
G
H
Q
WL
IL
H
GH
UU
R
UH
Q
WU
\I
R
OOR
Z
V
Figure 2-17 Sequence of Receive Operation with End Criterion "fixed message frame length"
Summary of Contents for SIMATIC CP 340
Page 6: ...Preface PtP coupling and configuration of CP 340 6 Manual 04 2011 A5E00369892 03 ...
Page 10: ...Table of contents PtP coupling and configuration of CP 340 10 Manual 04 2011 A5E00369892 03 ...
Page 200: ...Index PtP coupling and configuration of CP 340 200 Manual 04 2011 A5E00369892 03 ...