EasyManuals Logo

Siemens SINUMERIK 840D Programming Manual

Siemens SINUMERIK 840D
687 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #534 background imageLoading...
Page #534 background image
Additional functions
13.1 Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING)
Job planning
13-2 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Parameter
AXNAME Converts an input string into axis identifiers; the input
string must contain a valid axis name.
AX Variable axis identifier
SPI Converts the spindle number into an axis identifier; the
transfer parameter must contain a valid spindle number.
n Spindle number
AXTOSPI Converts an axis identifier into an integer spindle index.
AXTOSPI corresponds to the reverse function to SPI.
X, Y, Z Axis identifier of AXIS type as variable or constant
AXSTRING The string is output with the associated spindle number.
ISAXIS Checks whether the specified geometry axis exists.
SPI extensions
The axis function SPI(n) can now also be used for reading and writing frame components,
for example, for writing frames with syntax $P_PFRAME[SPI(1),TR]=2.22. The additional
programming of the axis position using the address AX[SPI(1)] = <axis position>
can be used to traverse an axis.
AXTOSPI extension
AXTOSPI can be used to convert an axis identifier into a spindle number. If the axis identifier
cannot be converted into a spindle number, an alarm message is triggered.
Troubleshooting for AXSTRING[ SPI(n) ]
For the programming with AXSTRING[ SPI(n) ], the axis index of the axis to which the
spindle is assigned will no longer be output as spindle number, but rather the string "Sn"
will be output.
Example:
AXSTRING[ SPI(2) ] returns string "S2"
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:

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals