Additional functions 9.8 – HEIDENHAIN TNC 640 (34059x-05) ISO programming User Manual
Page 309

Additional functions
9.8
9
TNC 640 | User's ManualDIN/ISO Programming | 1/2015
309
D16 – Formatted output of text and Q parameter
values
With
D16, you can also output to the screen any
messages from the NC program. Such messages are
displayed by the TNC in a pop-up window.
The function
D16 transfers Q parameter values and texts in a
selectable format. If you send the values, the TNC saves the data
in the file that you defined in the
D16 block. The maximum size of
the output file is 20 kilobytes.
To output the formatted texts and Q-parameter values, create a
text file with the TNC’s text editor. In this file you then define the
output format and Q parameters you want to output.
Example of a text file to define the output format:
"MEASURING LOG OF IMPELLER CENTER OF GRAVITY";
"DATUM: %02d.%02d.%04d",DAY,MONTH,YEAR4;
"TIME: %02d:%02d:%02d",HOUR,MIN,SEC;
"NO. OF MEASURED VALUES: = 1";
“X1 = %9.3LF“, Q31;
“Y1 = %9.3LF“, Q32;
"Z1 = %9.3LF", Q33;
When you create a text file, use the following formatting functions:
Special
characters
Function
"..........."
Define output format for texts and variables
between the quotation marks
%9.3LF
Define the format for Q parameters: 9 total
characters (incl. decimal point), of which 3
are after the decimal, Long, Floating (decimal
number)
%S
Format for text variable
%d
Format for integer
,
Separation character between output format
and parameter
;
End of block character
\n
Line break