K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
655
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
Main program
Replacement subprogram "LANG_SUB", version 1
Optimized for simplicity and velocity by directly addressing the spindles (S1: Leading spindle, S2: Following
spindle).
Machine data
Meaning
MD30465 $MA_AXIS_LANG_SUB_MASK[AX5] =
'H0002'
Replace positioning commands
MD22080 $MC_AUXFU_PREDEF_SPEC[9] = 'H0021' Output of
M19
to the PLC before
motion
Setting Data
Meaning
SD43240 $SA_M19_SPOS[AX5] = 260
Spindle position for
M19
= 260
SD43250 $SA_M19_SPOSMODE[AX5] = 4
Position approach mode for
M19:
"Approach in the positive direction
(ACP)"
Programming
Comment
PROC MAIN
...
N210 COUPON(S2,S1)
;
Activate synchronous spindle coupling
N220 SPOS[1]=100
;
Position leading spindle with SPOS
...
N310 G01 F1000 X100 M19
;
Position leading spindle with M19
Programming
Comment
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
; Start stop delay area
N2190 COUPOF(S2,S1)
; Open synchronous spindle coupling
N2200
; Position leading and following spindles
N2210 IF($P_SUB_SPOS==TRUE) OR ($P_SUB_SPOSA==TRUE)
N2220 ;SPOS and SPOSA are mapped to SPOS
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...