Data Transmission With The Printer Driver - Siemens Simatic S7-300 CP 341 User Manual

Point-to-point communication, installation and parameter assignment
Table of Contents

Advertisement

2.7

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 includes the physical layer (layer 1).
Message texts and parameters for printout
With the CP 341: Point-to-Point Communication, Parameter Assignment parameter
assignment interface, you can configure the message texts and assign the parameters (page
layout, character set, control characters) for printout. Message texts and printout parameters
are transmitted to the CP 341 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.
Page layout:
You can configure the margins, possible line breaks and headers and footers.
Character set:
The ANSI character set is converted from STEP 7 to the printer characters set 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.
Variables
Up to 4 variables (3 + a message text number) can be displayed in a message text. The
values of variables can be transmitted from the CPU to the CP 341. The following can be
displayed as variables: Calculated values of the user program, such as: fill levels), date and
time, strings (string variables), or other message texts.
A conversion statement must be specified in the configured message text or in the format
string for each variable, and the meaning and output format of the variable value must be
encoded in this statement.
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
Manual, 09/2008, A5E02191071-01
www.gkbpx.com
Basic Principles of Serial Data Transmission
2.7 Data transmission with the printer driver
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/
75

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents