beautypg.com

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

Page 387: Input"—input of variables

background image

HEIDENHAIN MANUALplus 620, CNC PILOT 620/640

387

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.
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)