Example: Spindle Positioning - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

Programming
N1180
N1190
N1200 ENDIF
...
N9999 RET
9.17.3.6

Example: Spindle positioning

In the subprogram, only the replacement of commands SPOS and SPOSA is explicitly executed.
Additional replacements should be supplemented in essentially the same fashion.
Parameterization
Machine data
MD30465 $MA_AXIS_LANG_SUB_MASK[AX5] =
'H0002'
MD22080 $MC_AUXFU_PREDEF_SPEC[9] = 'H0021' Output of M19 to the PLC before mo‐
Setting Data
SD43240 $SA_M19_SPOS[AX5] = 260
SD43250 $SA_M19_SPOSMODE[AX5] = 4
Main program
Programming
PROC MAIN
...
N210 COUPON(S2,S1)
N220 SPOS[1]=100
...
N310 G01 F1000 X100 M19
Replacement subprogram "LANG_SUB", version 1
Optimized for simplicity and velocity by directly addressing the spindles (S1: Leading spindle,
S2: Following spindle).
Programming
N1000 PROC LANG_SUB DISPLOF SBLOF
N2100 IF($P_SUB_AXFCT==2)
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
K1: Mode group, channel, program operation, reset response
DELAYFSTOF
COUPON(_CA,_LA)
9.17 Replacing functions by subprograms
Comment
; End of stop delay area
; Close the synchronous spindle coupling
Meaning
Replace positioning commands
tion
Meaning
Spindle position for M19 = 260
Position approach mode for M19:
"Approach in the positive direction
(ACP)"
Comment
; Activate synchronous spindle coupling
; Position leading spindle with SPOS
; Position leading spindle with M19
Comment
635

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents