DIN/ISO programming | Data input and data output
4
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017
457
4.30 Data input and data output
Output window for WINDOW variables
WINDOW (x) opens an output window with x lines. The window is
opened as a result of the first input/output. WINDOW (0) closes the
window.
Syntax: WINDOW (line number) (0 <= line number <= 20)
The standard window comprises 3 lines. You do not need to
program it.
Example: Output window for variables WINDOW
. . .
N 1 WINDOW(8)
N 2 INPUT("query: ",#l1)
N 3 #l2=17*#l1
N 4 PRINT("result: ",#l1,"*17 = ",#l2)
. . .
File output for WINDOW variables
The command WINDOW (x, file name) saves the PRINT instruction
in a file with the defined name and the extension .LOG in the
directory V:\nc_prog\. The file is overwritten when the WINDOW
command is run again.
Saving the LOG file is only possible in the Program run submode.
Syntax: WINDOW (line number, file name)
Example: File output for variables WINDOW
. . .
N 1 WINDOW(8,"VARIO")
N 2 INPUT("query: ",#l1)
N 3 #l2=17*#l1
N 4 PRINT("result: ",#l1,"*17 = ",#l2)
. . .