Example: Spindle Positioning - Siemens SINUMERIK 828D Function Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

9.15.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
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)
N2110 ;Replacement of SPOS/SPOSA/M19 for active synchronous spindle coupling
N2185
DELAYFSTON
N2190
COUPOF(S2,S1)
N2200
N2210
IF($P_SUB_SPOS==TRUE) OR ($P_SUB_SPOSA==TRUE)
N2220
;SPOS and SPOSA are mapped to SPOS
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
K1: Mode group, channel, program operation, reset response
Meaning
Replace positioning commands
motion
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
; Start stop delay area
; Open synchronous spindle coupling
; Position leading and following spindles
9.15 Replacing functions by subprograms
655

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents