Axis Functions (Axname, Ax, Spi, Axtospi, Isaxis, Axstring, Modaxval) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Program code
N121 M0
N130 AXTOCHAN(Y,2,X,2)
N131 M0
N140 AXTOCHAN(Y,2)
N141 M0
Further information
AXTOCHAN in the NC program
A GET is only executed in the event of the axis being requested for the NC program in the same
channel (this means that the system waits for the state to actually change). If the axis is
requested for another channel or is to become the neutral axis in the same channel, the request
is sent accordingly.
AXTOCHAN from a synchronized action
In the event of an axis being requested for the same channel, AXTOCHAN from a synchronized
action is mapped to a GET from a synchronized action. In this case, the axis becomes the
neutral axis on the first request for the same channel. On the second request, the axis is
assigned to the NC program in the same way as the GET request in the NC program. For more
information about GET requests from a synchronized action, see "Motion-synchronous
actions".
3.15.3

Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING, MODAXVAL)

"AXNAME" is used, e.g. to generate cycles that are generally valid, if the names of the axes are
not known.
"AX" is used to indirectly program geometry and synchronous axes. The axis identifier is saved
in a type AXIS variable or is supplied from a command such as "AXNAME" or "SPI".
"SPI" is used if axis functions are programmed for a spindle, e.g. a synchronous spindle.
"AXTOSPI" is used to convert an axis identifier into a spindle index (inverse function to "SPI").
"AXSTRING" is used to convert an axis identifier (data type AXIS) into a string (inverse function
to "AXNAME").
"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.
"MODAXVAL" is used in order to determine the modulo position for modulo rotary axes.
Syntax
AXNAME("string")
AX[AXNAME("string")]
SPI(n)
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Comment
;Move Y axis and X axis to the second channel (axes
are neutral).
; Move Y axis to the second channel (NC program).
Work preparation
3.15 Axis functions
875

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents