Programming manual
20
CNC 8070
1.
CREATING A PROGRAM
Block structure
(SOFT V02.0X)
4
1.2 Block structure
The blocks or instructions comprising the subroutines or the program
body may be defined by commands in ISO code or in high-level
language. Each block must be written in either language but not mixed;
a program may combine blocks written in both languages. Empty
blocks (empty lines) are also allowed.
In either language, it is also possible to use any type of arithmetic,
relational or logic expression.
ISO coded language
It is especially designed to control the movement of the axes because
it provides movement data and conditions as well as feedrate and
speed.
This language has:
• Preparatory functions for movement establishing the geometry
and work conditions such as linear and circular interpolations,
threading, canned cycles, etc.
• Functions to control cutting conditions such as feedrate of the
axes, spindle speed and accelerations.
• Functions to control the tools.
• Additional functions containing technological instructions.
• Definition of position values.
High level language
This language provides the user with a set of control commands with
a terminology similar to the one used by other languages, such as $IF,
$GOTO, #MSG, #HSC, etc.
Its types of commands are:
• Programming instructions.
• Flow controlling instructions to make loops and jumps within the
program.
• To define and call upon subroutines with local parameters where
a local variable is the one only known to the subroutine where it has
been defined.
It is also possible to use any type of arithmetic, relational or logic
expression.
Parameters, constants and expressions
Constants, parameters, variables and arithmetic expressions may be
used from ISO blocks as well as from special commands $ and #.