Siemens SINUMERIK 840D sl Programming Manual page 876

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.15 Axis functions
AXTOSPI(A) or AXTOSPI(B) or AXTOSPI(C)
AXSTRING( SPI(n) )
ISAXIS(<geometry axis number>)
<Modulo position>=MODAXVAL(<axis>,<axis position>)
Meaning
AXNAME:
AX:
SPI:
n:
AXTOSPI:
X, Y, Z:
AXSTRING:
ISAXIS:
MODAXVAL:
Note
SPI extensions
The axis function SPI(n) can also be used to read and write frame components. This means that
frames can be written, e.g. with the syntax $P_PFRAME[SPI(1),TR]=2.22.
An axis can be traversed by additionally programming axis positions using the
address AX[SPI(1)]=<axis position>. The prerequisite is that the spindle is either in the
positioning or axis mode.
Examples
Example 1: AXNAME, AX, ISAXIS
Program code
OVRA[AXNAME("Transverse axis")]=10
AX[AXNAME("Transverse axis")]=50.2
OVRA[SPI(1)]=70
AX[SPI(1)]=180
IF ISAXIS(1) == FALSE GOTOF CONTINUE
AX[$P_AXN1]=100
CONTINUE:
876
Converts an input string into axis identifiers; the input string must contain a valid
axis name.
Variable axis identifier
Converts the spindle number into an axis identifier; the transfer parameter must
contain a valid spindle number.
Spindle number
Converts an axis identifier into an integer spindle index. "AXTOSPI" corresponds
to the inverse function to "SPI".
Axis identifier of AXIS type as variable or constant
The string is output with the associated spindle number.
Checks whether the specified geometry axis exists.
For modulo rotary axes, determines the modulo position; this corresponds to the
modulo rest referred to the parameterized modulo range (in the default setting,
this is 0 to 360 degrees; the start and size of the modulo range can be changed
using MD30340 MODULO_RANGE_START and MD30330 $MA_MODU‐
LO_RANGE).
Comment
; Override for transverse axis
; End position for transverse axis
; Override for spindle 1
; End position for spindle 1
; Abscissa available?
; Move abscissa
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents