Siemens Sinumerik 840D sl Programming Manual page 681

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

Advertisement

Example 2: AXSTRING
When programming with AXSTRING[SPI(n)], the axis index of the axis, which is assigned to
the spindle, is no longer output as spindle number, but instead the string "Sn" is output.
Program code
AXSTRING[SPI(2)]
Example 3: MODAXVAL
The modulo position of modulo rotary axis A is to be determined.
Axis position 372.55 is the starting value for the calculation.
The parameterized modulo range is 0 to 360 degrees:
MD30340 MODULO_RANGE_START = 0
MD30330 $MA_MODULO_RANGE = 360
Program code
R10=MODAXVAL(A,372.55)
Example 4: MODAXVAL
If the programmed axis identifier does not refer to a modulo rotary axis, then the value to be
converted (<axis position>) is returned unchanged.
Program code
R11=MODAXVAL(X,372.55)
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
14.1 Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING, MODAXVAL)
Comments
; String "S2" is output.
Comments
; Calculated modulo position R10 = 12.55.
Comments
; X is a linear axis; R11 = 372.55.
Additional functions
681

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents