30 data input and data output, Window"—output window for variables, Window"—output file for variables – HEIDENHAIN SW 54843x-02 DIN Programming User Manual

Page 385: Input"—input of variables

Advertising
background image

HEIDENHAIN MANUALplus 620, CNC PILOT 640

385

4.30 D

a

ta input and data output

4.30 Data input and data output

"WINDOW"—Output window for 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.

The standard window comprises 3 lines. You do not need to program
it.

"WINDOW"—Output file for variables

The command WINDOW (x,"filename") 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.

"INPUT"—Input of variables

Use INPUT to program the input of variables.

You define the input text and the number of the variable. The control
stops the interpretation at INPUT, outputs the text and waits for input
of the variable value. Instead of an input text, you can also program a
string variable, such as #x1.

The control displays the input after having completed the INPUT
command.

Example:

. . .

N 1 WINDOW(8)

N 2 INPUT("query: ",#l1)

N 3 #l2=17*#l1

N 4 PRINT("result: ",#l1,"*17 = ",#l2)

. . .

Syntax:
WINDOW(line number) (0 <= line number <= 20)

Example:

. . .

N 1 WINDOW(8)

N 2 INPUT("query: ",#l1)

N 3 #l2=17*#l1

N 4 PRINT("result: ",#l1,"*17 = ",#l2)

. . .

Syntax:
WINDOW (line number, "filename")

Syntax:
INPUT("text",variable)

Advertising
This manual is related to the following products: