Basic Principles of Serial Data Transmission
2.6 Data transmission with the printer driver
PtP coupling and configuration of CP 340
56
Manual, 04/2011, A5E00369892-03
2.6
Data transmission with the printer driver
Introduction
The printer driver allows you to output date- and time-stamped message texts to a printer.
This enables you to monitor simple processes, print error or fault messages or issue
instructions to operating personnel, for example.
The printer driver contains the physical layer (layer 1).
Message texts and parameters for printout
With the CP 340: Point-to-Point Communication, Parameter Assignment user interface, you
can configure the message texts and set the parameters (page layout, character set, control
characters) for printout. Message texts and printout parameters are transmitted to the CP
340 together with the module parameters when it starts up.
Message texts:
You can configure message texts with variables and control statements (e.g., for bold,
condensed, expanded, or italic type and underlining). Each message text is assigned a
number during configuration. A message text is printed if its number is specified in a format
string when the P_PRINT function block is called.
You must have stored the format string and variables in data blocks beforehand (see
Chapter "Communication via Function Blocks (Page 103)").
Page layout:
You can configure the margins, possible line breaks and headers and footers.
Character set:
The ANSI character set is converted to the printer character set by STEP 7 by means of a
character conversion table. You can change a character conversion table suggested for a
printer type in order to include special characters required for a particular language, for
example.
Control characters:
You can use a control character table to change the control statements in the message text
for the printer emulation for switching on and off bold, condensed, expanded, or italic type
and underlining, and to add other control characters.
Содержание 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 ...