Additional Functions
13
13.1 Axis functions AXNAME, SPI, ISAXIS
840D
840D
NCU 571
NCU 572
NCU 573
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
SPI
AX
ISAXIS
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
AX[AXNAME("Transverse axis")]=50.2
OVRA[SPI(1)]=70
IF ISAXIS(1) == FALSE GOTOF CONTINUE
AX[$P_AXN1]=100
CONTINUE:
13-428
810D
840Di
Converts an input string to an axis identifier.
The input string must contain valid axis names.
Converts a spindle number to an axis identifier. The parameter
transferred must contain a valid spindle number.
Variable axis identifier
Checks whether the specified geometry axis exists.
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
Transverse axis
Final position for transverse axis
Override for spindle 1
Does abscissa exist?
Move abscissa
Siemens AG 2000. All rights reserved
12.98
13