Siemens SINUMERIK 840D sl Function Manual page 749

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

Advertisement

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_GEAR
$P_SUB_AUTOGEAR
$P_SUB_LA
$P_SUB_CA
Example with call of the replacement subroutine for M41 to M45 at block start
The gear stage change M41 to M45 should be executed directly in the replacement
subroutine.
MD30465 $MA_AXIS_LANG_SUB_MASK[AX5] = 'H0001'
;M41 to M45 output to PLC before the movement
MD22080 $MC_AUXFU_PREDEF_SPEC[12] = 'H21' ;M41 Output
MD22080 $MC_AUXFU_PREDEF_SPEC[13] = 'H21' ;M42 Output
MD22080 $MC_AUXFU_PREDEF_SPEC[14] = 'H21' ;M43 Output
MD22080 $MC_AUXFU_PREDEF_SPEC[15] = 'H21' ;M44 Output
MD22080 $MC_AUXFU_PREDEF_SPEC[16] = 'H21' ;M45 Output
Main program:
PROC MAIN
...
N110 COUPON(S2,S1)
N120 G01 F100 X100 S5000 M3 M43
N130 M40
N140 M3 S1000
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
2.11 Subroutine call through NC language replacement
Signifcance
Query on the replacement type
delivers the value 1 of the gear stage change
Programmed gear stage
delivers the programmed or calculated gear stage of each spindle.
Outside the replacement program, these variables deliver the gear stage
of the leading spindle.
Automatic gear stage change is active.
Delivery to a spindle-specific replacement the information whether an
automatic gear stage change with M40 was active in the part program line
that triggered the replacement operation.
Outside the replacement operation, this variable delivers the current
setting in the interpreter.
leading spindle of the active coupling
delivers the axis identifier of the leading spindle of the active coupling that
triggered the replacement operation. Outside the replacement operation,
the variable terminates the program processing.
Following spindle of the active coupling
delivers the axis identifier of the following spindle of the active coupling
that triggered the replacement operation. Outside the replacement
operation, the variable terminates the program processing with
compensation block alarm.
; Activate synchronous spindle coupling
; Call of _N_LANG_SUB_SPF due to M43
; Automatic gear stage change on
; Call of _N_LANG_SUB_SPF in
; automatic gear stage change
; on the basis of S programming
Detailed description
191

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