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 #752 background imageLoading...
Page #752 background image
Detailed description
2.11 Subroutine call through NC language replacement
Basic logic functions: Mode group, channel, program operation, reset response (K1)
194 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
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 Significance
$P_SUB_AXFCT Query on the replacement type
delivers the value 2 of the spindle positioning
$P_SUB_SPOS Query whether spindle positioning with SPOS is active
Delivers TRUE, if the replacement was activated through SPOS.
$P_SUB_SPOSA Query whether spindle positioning with SPOSA is active
Delivers TRUE, if the replacement was activated through SPOSA.
$P_SUB_M19 Query whether spindle positioning with M19 is active
Delivers TRUE, if the replacement was activated through M19.
$P_SUB_SPOSIT 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.
$P_SUB_SPOSMODE 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.
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
;
Activate synchronous spindle coupling
N220 SPOS[1]=100
;
Position leading spindle with SPOS
...
N310 G01 F1000 X100 M19
;
Position leading spindle with M19

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