EasyManua.ls Logo

Siemens SINUMERIK 828D

Siemens SINUMERIK 828D
822 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
Loading...
Additional functions
14.1 Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING, MODAXVAL)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
663
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 Comments
AXSTRING[SPI(2)] ; String "S2" is output.
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 Comments
R10=MODAXVAL(A,372.55) ; Calculated modulo position R10 = 12.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 Comments
R11=MODAXVAL(X,372.55) ; X is a linear axis; R11 = 372.55.

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals