Siemens SINUMERIK 840D sl Programming Manual page 767

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

Advertisement

Examples
Example 1: AXNAME, AX, ISAXIS
Program code
OVRA[AXNAME("Transverse axis")]=10
AX[AXNAME("Transverse axis")]=50.2
OVRA[SPI(1)]=70
AX[SPI(1)]=180
IF ISAXIS(1) == FALSE GOTOF CONTINUE
AX[$P_AXN1]=100
CONTINUE:
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, 06/2009, 6FC5398-2BP20-0BA0
14.1 Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING, MODAXVAL)
Comments
; Override for transverse axis
; End position for transverse axis
; Override for spindle 1
; End position for spindle 1
; Abscissa available?
; Move abscissa
Comments
; String "S2" is output.
Comments
; Calculated modulo position R10 = 12.55.
Comments
; X is a linear axis; R11 = 372.55.
Additional functions
767

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents