Cnc programming – Lenze ETC Motion Control User Manual

Page 89

Advertising
background image

CNC programming

Basics

3

3.1

l

89

EDSTCXN EN 2.0

Comments are limited by round or curly brackets and read over at runtime.

A comment can occur at the end of the block or alone in a block. The line
length of 256 characters must also not be exceeded with a comment. If a
comment is opened with a bracket, the line end is automatically seen as the
comment end.

When using the curly brackets for comments, it is possible to suppress them
during importation via the monitor interface into the control. This is defined
by the machine constant MK_NCPROG_OHNE_KOMMENTARE. The
comments are then not saved in the control.

When using computer statements, comments must generally be placed in
curly brackets.

Example:

G17 (plane selection XY plane)
{This is also a comment}

The preparatory function G is either only valid in its block (non−modal
function) or replaces another function which was valid previously (modal
function).

Modal G functions are combined in groups, in which only one function is
valid at a time.

Modal functions remain valid until they are replaced by a new modal
function of the same group. These functions are divided into the following
groups:

Group

Function

a

Interpolation type

b

Change−over between path and route operation

c

Plane selection

d

Dimensions

e

Tool correction

f

Coordinate shift

g

Speed agreement

h

Functions, which do not mutually deactivate each other, but rather which are
deactivated by themselves or a special deactivation function

When a subprogram is called, the valid modal states of the function groups
a ... d are saved. In the subprogram it is then possible to activate new modal
functions. The subprogram return then sets the modal functions to the
saved state. This applies to all eight possible subprogram levels.

An exception is a program termination, which is either triggered by pressing
the <STOP> key or by an error. During this process, the control is switched
back to the path control operation and into the reference dimension system.

These and additional modal functions can be defined at the end of the
program or after a program termination with the aid of the machine
constant MK_VOREINSTELLUNG.

Comments

G preparatory function

Modal functions

Advertising