4
Editing part programs
55
4 Editing Part Programs
4.1 Structure of Part Program
The part program is made up of blocks. A block consists of words.
Word: Address and Data
A word is formed by two components: Address and data (e.g., X127.064 or Z#103). The
address may comprise one or more characters (X, Z in the example), while the data may be:
SQ
a number that may have integer and decimal number as well (127.064 in the example)
SQ
expression (#103 in the example) that may contain arithmetic or logic operations on
variables and numbers.
Some addresses may be given a sign or operator I, independent of the data being number or
expression.
Words can be separated by means of space key for the sake of lucidity, although its use is
not
obligatory
.
Should a word (a string between two spaces) exceed the length of the given line while typing
the editor displays the whole word in a new line.
Block
A block consists of words. The blocks in memory are separated by character
s
(
L
ine
F
eed).
During program editing termination of a block is performed by pressing <ENTER> key
due to which line feed occurs and at the same time character
s
is adjusted to the end of the
terminated block automatically. As the effect of the key the cursor goes to the beginning of
next line.
The start of a new block (character
s
) is indicated by character
>
in the first column of screen.
In case the block does not have enough room in a line the first column of the following line is
left empty and the first character is put in the second column.
Block number can be written at the beginning of blocks at address
N
. The application of block
numbers in blocks is
not compulsory
.
Block numbering can be automatized. If value of parameter 0567
N STEP
is other than 0, the
block number is increased by the value given at the parameter for each push of the <ENTER>
key
and this is automatically inserted to the beginning of the new block at address N. If
for example the value of parameter is 10 the block numbers are increased by ten: N10, N20,
N30, ...
Comments starting by character "
(
" and ending by character "
)
" can also be written in the
blocks.
Program number and program name
The program number and program name are used to identify the program. Usage of program
number is mandatory, that of a program name is not. The program number is the exclusive
identifier of the program in the directory, while the program name plays only informatory roles.
The address of program number:
O
. The address must always be followed by 4 digits, i.e.,
the
leading zeros must also be filled in
.
The program name is an arbitrary string between opening and closing brackets "
(
" and "
)
". The
program number and the program name are separated from the rest of program blocks in
memory by character
s
.
Содержание 100T
Страница 1: ...NCT 100T NCT 990T NCT 2000T Controls for Lathes Operator s Manual Valid from software version x 057 ...
Страница 9: ...1 Operator s Panel 9 Operator s panel with 15 color monitor and with optional Machine control board ...
Страница 37: ...3 4 OFFSETS Screens 37 On the figures below the interpretation of the imaginary tool nose number Q can be seen ...
Страница 143: ...Notes 143 Notes ...