Siemens SINUMERIK 840D sl Function Manual page 752

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

Advertisement

Detailed description
2.11 Subroutine call through NC language replacement
Transfer of the data required for the replacement to the replacement subroutine
The values required for the replacement can be read in the replacement subroutine through
the following system variable.
System variable
$P_SUB_AXFCT
$P_SUB_SPOS
$P_SUB_SPOSA
$P_SUB_M19
$P_SUB_SPOSIT
$P_SUB_SPOSMODE
Example with call of the replacement subroutine for SPOS, SPOSA and M19
The SPOS and SPOSA commands are handled in common in the replacement subroutine. In
other wrods SPOSA is mapped to the SPOS command.
MD30465 $MA_AXIS_LANG_SUB_MASK[AX5]='H0002'
MD22080 $MC_AUXFU_PREDEF_SPEC [9]='H0021' ;M19 output to PLC before the
movement
SD43240 $SA_M19_SPOS[AX5]=260
SD42890 $SA_M19_SPOSMODE[AX5]=4
Main program:
PROC MAIN
...
N210 COUPON(S2,S1
N220 SPOS[1]=100
...
N310 G01 F1000 X100 M19
194
Significance
Query on the replacement type
delivers the value 2 of the spindle positioning
Query whether spindle positioning with SPOS is active
Delivers TRUE, if the replacement was activated through SPOS.
Query whether spindle positioning with SPOSA is active
Delivers TRUE, if the replacement was activated through SPOSA.
Query whether spindle positioning with M19 is active
Delivers TRUE, if the replacement was activated through M19.
SPOS/SPOSA position
Delivers the the programmed position to the configured NC language
replacement. If this variable is called outside this replacement operation,
the program processing is cancelled with Alarm 14055.
Position travel mode
Delivers the position travel mode for the spindle position delivered by
$P_SUB_SOPSIT to the configured NC language replacement:
0: DC
1: AC
2: IC
3: DC
4: ACP
5: ACN.
If this variable is called outside this replacement operation, the program
processing is cancelled with Alarm 14055.
; Activate synchronous spindle coupling
; Position leading spindle with SPOS
; Position leading spindle with M19
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents