hit counter script

Sending Data With The Ascii Driver - Siemens SIMATIC CP 340 User Manual

Ptp coupling and configuration
Hide thumbs Also See for SIMATIC CP 340:
Table of Contents

Advertisement

Basic Principles of Serial Data Transmission
2.5 Data transfer using the ASCII driver
2.5.2

Sending Data with the ASCII Driver

Sending
When sending data, specify the number of bytes of user data to be transmitted as the "LEN"
parameter when you call the P_SEND function block. The user data must contain any
required start-of-text and end-of-text characters.
If you are working with the end criterion "character delay time expired" when receiving data,
the ASCII driver will pause between two frames, even when sending. You can call the
P_SEND FB at any time, but the ASCII driver does not begin its output until a period longer
than the parameterized character delay time has elapsed since the last frame was sent.
Note
When XON/XOFF flow control is parameterized, the user data must not contain the
parameterized XON or XOFF characters. The default settings are
DC1 = 11H for XON and DC3 = 13H for XOFF.
Sending data
The figure below illustrates a send operation.
Figure 2-14
50
Flowchart of a send operation
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents