Siemens SINUMERIK 828D Programming Manual page 663

Hide thumbs Also See for SINUMERIK 828D:
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
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, 07/2010, 6FC5398-2BP40-0BA0
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
is output.
"Sn"
663

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents