Basic Principles of Serial Data Transmission 
  2.8 Configuration data 
CP 341 Point-to-Point Communication, Installation and Parameter Assignment 
Manual, 09/2008, A5E02191071-01  103 
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 
also be shorter. Example: The output of the integer 10 consists of only 2 characters. 
●  The length of the data to be printed depends on the length of the variables. For example, 
in the case of the I display type a maximum of 6 places can be output for the INT data 
type and a maximum of 11 places for the DINT data type. 
●  A width of "0" is not permissible in conversion statements. This is printed out as "******" 
with the valid conversion statement. 
●  If the specified width is too small, in the case of text-based output (display types A, C, D, 
S, T, Y, and Z), only the number of characters corresponding to the specified width are 
output (the remainder are truncated). In all other cases, "*" characters are output 
corresponding to the width. 
●  Undefined or invalid conversion statements are not executed. This is printed out as 
"******" (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. 
●  Conversion statements without associated variables will be ignored. Variables for which 
there is no conversion statement are not output. 
●  Conversion statements in a header or footer that are not supported are not executed. 
Instead, they are forwarded to the printer transparently. 
●  You must use control statements to specify formatting (line feed, tabs, etc.) in a message 
text or in the printout of a longer 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 
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/