EasyManuals Logo

Siemens MCP 398C Function Manual

Siemens MCP 398C
2184 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #756 background imageLoading...
Page #756 background image
Detailed description
2.11 Subroutine call through NC language replacement
Basic logic functions: Mode group, channel, program operation, reset response (K1)
198 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Sequence of a replacement program for a gear stage change at block end
The leading spindle is located in an active synchronous spindle coupling.
The part program line that leads to calling the replacement subroutine is executed first,
without the gear stage change. The replacement subroutine is called finally. The system
variable $P_SUB_STAT also delivers the value 2 for "replacement subroutine is active, call
at block end".
The other system variables are provided as described earlier. The further sequence of the
replacement subroutine corresponds to the sequence described earlier.
Sequence of a replacement program for a spindle positioning at block start
The leading spindle is located in an active synchronous spindle coupling and the leading
spindle is positioned while interpreting a part program line with SPOS, SPOSA or M19.
1. Calling replacement subroutine
The replacement subroutine is called through the earlier described machine data with set
names and the configured path.
The system variables $P_SUB_AXFCT delivers 2 for spindle positioning. $P_SUB_STAT
also delivers the value 1 for "replacement subroutine is active, call at block start".
2. Transfer of the required data in replacement subroutine
The positioning command to be replaced can be determined with $P_SUB_SPOS,
$P_SUB_SPOSA or $P_SUB_M19. System variables $P_SUBPOSIT or
$P_SUBPOSMODE are used to query the start position or path and the position travel
mode that must be used. $P_SUB_LA delivers the axis identifier of the leading spindle
and $P_SUB_CA delivers the axis identifier of the first following spindle involved in the
coupling.
3. Disengage coupling, positioning the spindles involved in the coupling
The coupling is deactivated in the replacement subroutine with the help of this information
and the gear stage change of the leading and following spindles involved in the coupling
are positioned accordingly.
4. Close the coupling again and continue the part program
The coupling is then closed again.
After the replacement subroutine has been executed, the part program line that controlled
the call of the subroutine is interpreted. In this case the SPOS, SPOSA or M19 command
used to trigger the replacement is no longer processed.
Sequence of a replacement program for a spindle positioning with M19 at block end
The leading spindle is located in an active synchronous spindle coupling.
The part program line that leads to calling the replacement subroutine is executed first,
without positioning the spindle. The replacement subroutine is called finally. The system
variable $P_SUB_STAT also delivers the value 2 for "replacement subroutine is active, call
at block end".
The other system variables are provided as described earlier. The further sequence of the
replacement subroutine corresponds to the sequence described earlier.

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals