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 #58 background imageLoading...
Page #58 background image
Basic Principles of Serial Data Transmission
2.6 Data transmission with the printer driver
PtP coupling and configuration of CP 340
58 Manual, 04/2011, A5E00369892-03
Examples
Example 1: The level "200" l was reached at "17:30" hours.
Format string = The level %i l was reached at %Z hours.
Variable 1 = time
Variable 2 = level
Example 2: The pressure in the chamber "is falling"
Format string = %N %S
Variable 1 = 17 (message text no. 17: The pressure in the chamber ...)
Variable 2 = reference to string (string variable: ... is falling)
Example 3: (Setting the page number to 10)
Format string = %P
Variable 1 = 10 (page number: 10)
Printout
To output n bytes of user data to a printer, specify the block number of a pointer DB when
calling the P_PRINT function block. The pointers to the data blocks are stored in the pointer
DB together with the format string and the variables and in a specific order (see Chapter
"Using function blocks for the output of mess
age tex
ts to a printer (Page 113)").
During output the data is edited for printing. Print editing is performed as configured in the
CP 340: Point-to-Point Communication, Parameter Assignment user interface (page layout,
character set, control characters, etc.).
Characters are not received during printout, with the exception of any flow control characters
that have been configured. Any characters received are not adopted.
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.

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