L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 608

Advertising
background image

L-force | PLC Designer

General Editors

606

DMS 4.1 EN 03/2011 TD29

Example:

% MyExample
N10 G01 X100 Y100 E100 F100 E-200
N20 G01 Z40 F20
N30 G03 X-100 R200 F100
...

Syntax
A SoftMotion CNC program can start with a "%". In the same line optionally can be
added – separated by an empty space or by a TAB – the program name. The actual CNC
program is composed of several sentences.
Each sentence consists of as many words as needed.
A word consists of a letter (word identifier) and a subsequent number (e.g. G01; see
also the list below). There is no case sensitivity and leading zeros are ignored (G01 =
g1).
The first word of each sentence is built by the sentence number (N<number>), e.g.
"N01". The words of a sentence are separated one or more space or TAB character. They
are processed from the right to the left. Thereby all words except for the positioning
commands (G<number>, e.g. "G02"; see the list below), will effect that the sentence
number will be assigned to a variable as defined by the sentence letter. This variable
finally will be accessed by the positioning command.
Each sentence only may contain one command, which must follow right to the
sentence number. If you do not enter an positioning command in a sentence,
automatically that of the last sentence will be added.
Each positioning command can be seen as a path object (line, arc, …). The velocity at
which the path objects are interpolated, basically complies with the scheduled velocity
(command speed), - acceleration and - deceleration. The interpolator must make sure
that these limits are not exceeded. The velocity during the transition of two adjacent
objects is determined according to the following rules:
• One of both objects is a positioning (G0): Transition velocity = 0
• The angle between the tangents of the two objects at the transition is bigger than

the angle tolerance: Transition velocity = 0

• Otherwise: The transition velocity is the lower command speed of the both path

objects.

• Basically a position command effects that there will be an interpolation from the

target position of the last positioning command to the target position specified by
the current positioning command. The first positioning command starts at the
specified position (specified in the Decoder or CNC-Editor). If that position has not
been defined, it will start at X=0, Y=0, Z=0.

Advertising