L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 64

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

64

L-force | PLC Designer - SoftMotion

CNC editor

Supported and extended elements of the CNC language of DIN66025

Every travel command can be understood as a path object (straight line, circular arc, etc.).

The velocity at which the path objects are interpolated is determined essentially by the

setpoint velocity, acceleration and deceleration. The interpolator must ensure that these

limit values are not exceeded. The velocity during the transition from one object to the

next is determined in accordance with the following rules:

 One of the two objects is a positioning object (G0): Transition speed = 0
 The angle between the tangents of the two objects at the transition is greater than the

angular tolerance: Transition velocity = 0

 Otherwise: The transition velocity is the smaller setpoint velocity of the two path

objects.

In principle, a travel command initiates interpolation starting from the target position of

the last travel command and ending at its own target position. The first travel command

starts at the specified start position (specified in the decoder or CNC editor). If no such start

position has been defined, it starts at X=0, Y=0, Z=0. It is also possible to use G92 to set the

position in the CNC program. This is possible both at the start of the CNC program

(effecting the setting of the start position) and in the middle of the program, where it

effects a jump of the setpoint position to the position defined with G92. n the event of a

series of G92 commands appearing one after the other, the last takes priority and all

commands preceding it are skipped. However, if you wish to ensure that the preceding G92

positions (for the duration of one cycle) are output, insert a G1 command in between each

of the G92 commands, using identical coordinates. This technique can be used if the path

between these points is not of any relevance and the aim is simply to move the setpoint

position to the target position along the quickest possible path. SMC_ControlAxisByPos

will then detect a jump to the setpoints, stop the interpolator, and interpolate each axis

individually along the quickest possible path.

G92 X100 Y100 (set setpoint position to 100/100)
G1 X100 Y100 (ensure one-time output of position)
G92 X50 Y100 (set setpoint position to 50/100)

Activate record suppression to skip records starting with the "/" character.
Characters appearing inside a pair of round parentheses are read as comments and do not

have any effect on the programmed path. Nested comments are not supported.
All numerical values except those in the travel command (G<Number>) and the switching

point number (H<Number>) can be floating point numbers.

Advertising