Siemens SIMATIC CP 340 User Manual page 81

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

Advertisement

Setting the page number (%P)
Use the P display type to change the page number in the printout.
The CP 340 always begins a printout at page 1. This conversion statement allows you to set
the page number to a specific value. The conversion statement variable contains the number
to be set.
Example: (Setting the page number to 10)
Format string
Variable 1
Note
In the case of the P display type, there must be no further text, conversion or control
instructions in the format string.
The P display type is not permitted in configured message texts.
Notes about conversion statements
Please note the following in relation to conversion statements:
● Whenever a maximum length is specified for the default display, the actual output can
● The length of the data to be printed depends on the length of the variables. For example,
● A width of "0" is not permissible in conversion statements. This is printed out as "******"
● If the specified width is too small, in the case of text-based output (display types A, C, D,
● Undefined or invalid conversion statements are not executed. This is printed out as
● Conversion statements without associated variables will be ignored. Variables for which
● Conversion statements that are not supported in a header or footer are not executed.
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
=
%P
=
10 (page number: 10)
also be shorter. Example: The output of the integer 10 consists of only 2 characters.
in the case of the I display type a maximum of 6 characters can be output for the INT data
type and a maximum of 11 characters for the DINT data type.
with the valid conversion statement.
S, T, Y, and Z), only the number of characters corresponding to the specified width are
output (the output is truncated). In all other cases, * characters are output corresponding
to the width.
"******" (e.g. display type missing: %2.2).
The rest of the conversion statement (i.e., everything after the character identified as
incorrect) is output. This allows the exact cause of the error to be determined.
there is no conversion statement are not output.
Instead, they are forwarded to the printer transparently.
Basic Principles of Serial Data Transmission
2.7 Parameterization Data
81

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents