5 s functions, S functions, Cnc programming – Lenze ETC Motion Control User Manual

Page 178

Advertising
background image

CNC programming

Block extensions
S functions

3

3.4
3.4.5

l

178

EDSTCXN EN 2.0

3.4.5

S functions

The letter S in the DIN block always stands for the specification of the current
workpiece coordinate system, to which the following position specifications
refer. Under a coordinate system, the control understands the definition of
a zero point offset for each axis (related to the zero point in S0), where S0 is
related to the machine zero point (home position + basic offset).

In ETCXC, 100 workpiece coordinate systems of this kind are available. These
are selected with S0 ... S99.

If a 1 is entered in the machine constant MK_NULLPUNKTE_SPEICHERN, the
currently switched on S coordinate system and the zero point offsets of all
coordinate systems are saved and restored after the control has been
switched on. Otherwise, the control is in S0 after it has been switched on and
the offsets of all coordinate systems are zero.

For all workpiece coordinate systems, the zero point can be shifted or set
using the functions G92, G93 and G193. S0 can only be shifted with these
functions if machine constant MK_S0T0_VERSATZ_ERLAUBT is set to 1. If S0
is shifted, it must be noted in this case that all the other coordinate systems
are also shifted!

Function G195 is used especially to shift all coordinate systems in which the
offset of S0 is shifted. It is also allowed if the above−mentioned machine
constant is set to 0. However, the offset of S0 is then not effective in S0 but
in all other coordinate systems.

Function G54 is used to temporarily shift the zero point of the current S
coordinate system. The shift remains active until it is deactivated with G53
or the program is ended. The shift by G54 is not saved remanently.

During the change over to another coordinate system, the current actual
positions in S

old

are cleared with the zero point offsets of the new system

(S

new

) and displayed.

The offsets of the workpiece coordinate systems can be loaded via the
ETC−MMI into the control or transferred from the control into the PC.

G0 X0 Y0 S0

In the coordinate system S0, travel to the position X0, Y0.

G92 X0.1 S1

Change over to the coordinate system S1 and shift the zero
point of the X−axis about 0,1 mm.

G1 X100 F2500

Profile is S1 withdraw

M6 S=P711

Change over to the coordinate system, whose number is
entered in parameter P711 and then output the M function M6.

Example

Advertising