1 switching points, h-function, Switching points, h-function – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 67

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

67

L-force | PLC Designer - SoftMotion

CNC editor

Supported and extended elements of the CNC language of DIN66025

4.1.1

Switching points, H-function

The switching point function (or H-function) provides programmers with a means of using

binary path-specific switches. The number of the switching point must always be specified

first (H<Number>), followed by the position of the switching point in the object either as

an absolute value via word L<Position> or as a relative value via word O<Position>. In the

example below, switching point 2 is being deactivated at position X =40/Y=25 (after the

first quarter of the object).

Example of a relative H-function:

Example of an absolute H-function (the user should know the path length):

N90 G1 X20 Y20
N100 G1 X100 Y40 H-2 00.25

Note!

• Only a limited number of switching point switching actions

(MAX_SWITCHES) can be performed for each path object.

• A switching point position can only be inserted in the CNC text editor! It will

appear as a green dot on the curve in the graphics-based editor.

N1 G1 X100 Y100 H1 O0.5 (*switch on H1 after a half path element*)
N2 G1 X200 Y100 H-1 O0.75 (*switch off H1 after 3/4 of the path element*)

N0 F200 E1000 E-1000
N1 G1 X100 Y100 H1 L75 (*switch on H1 after 75mm*)
N2 G1 X200 Y100 H-1 L50 (*switch off after 50mm*)
N3 G1 X300 Y100 H2 L-50 (*switch on after 50mm after the end of the path element H2*)

Advertising