9.15.3.3
Replacement of SPOS, SPOSA, M19 (spindle positioning)
Function
When a coupling is active, the positioning commands (SPOS, SPOSA or M19) of a leading spindle are replaced by
calling a user-specific subprogram (replacement subprogram).
Application example
When machining workpieces in parallel on a double-spindle machine, the spindles are coupled through a
coupling factor not equal to 1. When changing the tool, they must be brought to the same position. The
replacement subprogram opens the coupling, separately positions the spindles at the tool change position and
then recloses the coupling.
Parameterization
Activation
•
MD30465 $MA_AXIS_LANG_SUB_MASK, bit 1 = 1
Time that the replacement subprogram is called
•
SPOS, SPOSA
The time of the call cannot be set. The replacement subprogram is always called at the block start.
• M19
The call time depends on the configured output behavior of the auxiliary function to the PLC (see below
MD22080):
-
Output before or during motion: Subprogram call at the start of the block.
-
Output after motion: Subprogram call at the end of the block
MD22080 $MC_AUXFU_PREDEF_SPEC[9]
Bit
Value
Meaning
5
1
Output of the auxiliary function before the motion
6
1
Output of the auxiliary function during the motion
7
1
Output of the auxiliary function after the motion
System variable for transferring information
The replacement subroutine is provided with all of the information relevant to the functions programmed in the
block via system variables (see Chapter "System variable [Page 652]"). The data refer exclusively to the block, in
which the function to be replaced has been programmed.
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
651