K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
Basic Functions
652
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
9.15.3.4
System variable
System variable
Meaning
$P_SUB_AXFCT
TRUE, if
M40
,
M41
...
M45
replacement is active
$P_SUB_GEAR
Programmed or calculated gear stage
Outside the replacement subprogram: Gear stage of the master spindle
$P_SUB_AUTOGEAR
TRUE, if M40 was active in the block that had initiated the replacement
operation.
Outside the replacement subprogram: actual setting in the interpreter
$P_SUB_LA
Contains the axis identifier of the leading spindle of the active coupling,
which had triggered the replacement operation.
Note
If the variable is used outside the replacement subprogram, program
processing is cancelled with an alarm.
$P_SUB_CA
Contains the axis identifier of the following spindle of the active coupling,
which had triggered the replacement operation.
Note
If the variable is called outside the replacement subprogram, program
processing is cancelled with an alarm.
$P_SUB_AXFCT
Contains the active replacement types corresponding to MD30465
$MA_AXIS_LANG_SUB_MASK
$P_SUB_SPOS
TRUE, if the
SPOS
replacement is active
$P_SUB_SPOSA
TRUE, if the
SPOSA
replacement is active
$P_SUB_M19
TRUE, if the
M19
replacement is active
$P_SUB_SPOSIT
Contains the programmed spindle position
Note
If the variable is called outside the replacement subprogram, program
processing is cancelled with an alarm.
$P_SUB_SPOSMODE
Contains the position approach mode for the prog. spindle position:
Value Meaning
0
No change of the position approach mode
1
AC
2
IC
3
DC
4
ACP
5
ACN
6
OC
7
PC
Note:
If the variable is called outside the replacement subprogram, program
processing is cancelled with an alarm.
$P_SUB_STAT
Block-related time that the replacement subprogram is called