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 message texts 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.
Содержание SIMATIC CP 340
Страница 6: ...Preface PtP coupling and configuration of CP 340 6 Manual 04 2011 A5E00369892 03 ...
Страница 10: ...Table of contents PtP coupling and configuration of CP 340 10 Manual 04 2011 A5E00369892 03 ...
Страница 186: ...Accessories and Order Numbers PtP coupling and configuration of CP 340 186 Manual 04 2011 A5E00369892 03 ...
Страница 190: ...Literature on SIMATIC S7 PtP coupling and configuration of CP 340 190 Manual 04 2011 A5E00369892 03 ...
Страница 200: ...Index PtP coupling and configuration of CP 340 200 Manual 04 2011 A5E00369892 03 ...