Basic Principles of Serial Data Transmission
2.7 Parameterization Data
PtP coupling and configuration of CP 340
82
Manual, 04/2011, A5E00369892-03
●
You must use control instructions to specify formatting (line feed, tabs, etc.) in a message
text or in the printout of a long conversion statement.
●
If both the format string and the message text contain conversion statements, the format
string is expanded first, followed by the message text.
Example: Voltage 3 V – Current 2 A
Message text 1 = Voltage %I V
Format string = '%N – Current: %I A'
Variable 1 = 1
Variable 2 = 2
Variable 3 = 3
Examples of invalid conversion statements
Below are several examples of invalid conversion statements.
Example 1: ******.2R
Format string = %303.2R
Variable 1 = 1.2345E6
Error: Invalid width in the R display type. The maximum permissible value for all display
types is 255.
Example 2: ****
Format string = %4.1I
Variable 1 = 12,345 DEC
Error: The selected width was too small for the variable value to be output. The precision is
not relevant to display type I.
Example 3: 96–10–3
Format string = %7.2D
Variable 1 = D#1996–10–31
Error: The format string is formally correct, but the selected width was too small to print the
date in full.
Example 4: **********
Format string = %.3A
Variable 1 = D#1996–10–31
Error: The default width of display type A was selected but with invalid precision. The
possible values here are 2 and 4.
Example 5: ******
Format string = %3.3
Variable 1 = 12,345 HEX
Error: A display type was not specified.
Summary of Contents for SIMATIC CP 340
Page 6: ...Preface PtP coupling and configuration of CP 340 6 Manual 04 2011 A5E00369892 03 ...
Page 10: ...Table of contents PtP coupling and configuration of CP 340 10 Manual 04 2011 A5E00369892 03 ...
Page 200: ...Index PtP coupling and configuration of CP 340 200 Manual 04 2011 A5E00369892 03 ...