Additional Functions - Siemens Sinumerik 840D sl Programming Manual

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Additional functions

14.1 Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING, MODAXVAL)
Significance
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:
680
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 reverse 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_MODULO_RANGE).
Comments
; Override for transverse axis
; End position for transverse axis
; Override for spindle 1
; End position for spindle 1
; Abscissa available?
; Move abscissa
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents