13
Additional Functions 12.98
13.1 Axis functions AXNAME
SPI
ISAXIS
13
840D
NCU 571
840D
NCU 572
NCU 573
810D 840Di
ï›™
Siemens AG 2000. All rights reserved
13-428
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
13.1 Axis functions AXNAME, SPI, ISAXIS
Programming
AXNAME("TRANSVERSE AXIS")
AX[AXNAME("String")]
SPI(spindle number)
ISAXIS(geometry axis number)
Explanation of the commands
AXNAME
Converts an input string to an axis identifier.
The input string must contain valid axis names.
SPI
Converts a spindle number to an axis identifier. The parameter
transferred must contain a valid spindle number.
AX
Variable axis identifier
ISAXIS
Checks whether the specified geometry axis exists.
Function
AXNAME
is used, for example, to create generally
applicable cycles when the name of the axes are not
known (see also Section 13.10. "String functions").
SPI
is used, for example, when axis functions are
used for a spindle, e.g. the synchronized spindle.
ISAXIS
is used in universal cycles in order to
ensure that a specific geometry axis exists and thus
that any following
$P_AXNX
call is not aborted with
an error message.
Programming example
Move the axis defined as a facing axis.
OVRA[AXNAME("Transverse axis")]=10
Transverse axis
AX[AXNAME("Transverse axis")]=50.2
Final position for transverse axis
OVRA[SPI(1)]=70
Override for spindle 1
IF ISAXIS(1) == FALSE GOTOF CONTINUE
Does abscissa exist?
AX[$P_AXN1]=100
Move abscissa
CONTINUE: