EasyManuals Logo

Siemens SINUMERIK 802D sl Programming Manual

Siemens SINUMERIK 802D sl
251 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 #168 background imageLoading...
Page #168 background image
Enhanced Level Commands
4.12 Interrupt programm with M96 / M97 (ASUB)
04.07
4-168
Ā© Siemens AG 2007 All rights reserved
SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling (PGM) -- 04.07 Edition
4.12 Interrupt programm with M96 / M97 (ASUB)
M96
A subprogram can be defined as an interrupt routine with M96 P <program
number>.
This program is started by an external signal. The first high-speed NC input of the 8
inputs available in Siemens mode is always used to start the interrupt routine.
Machine data $MN_EXTERN_INTERRUPT_NUM_ASUP lets you select an other
fast input (1 -- 8).
The function is mapped onto standard syntax: SETINT(x) <CYCLE396> [PRIO=1].
In shell cycle CYCLE396, the interrupt program programmed with Pxxxx is called in
ISO mode. The program number is in $C_PI. At the end of the shell cycle, machine
data
10808: $MN_EXTERN_INTERRUPT_BITS_M96 BIT1 is evaluated, resulting either
in positioning at the interruption point with REPOSA or in continuation with the next
block. The new cycle variable $C_PI contains the value programmed with ā€œPā€
without leading zeroes. These must be added to fill out to four digits in the shell
cycle before the subprogram is called.
Example: N0020 M96 P5
Call in shell cycle
progName = ā€œ000ā€ << $C_PI
ISOCALLprogName
See treatment of 8-digit program numbers, if MD
$MC_EXTERN_FUNCTION_MASK, bit 6 is set.
M97
M97 is used to suppress starting of the interrupt routine. The interrupt routine can
then only be started by the external signal following activation with M96.
This corresponds to Standard syntax: ENABLE(x).
x = content of $MN_EXTERN_INTERRUPT_NUM_ASUP
If the interrupt program programmed with M96 Pxx is called up directly with the
interrupt signal (without the intermediate step with CYCLE396), machine data
20734: $MC_EXTERN_FUNCTION_MASK BIT10 must be s et. The subprogram
programmed with Pxx is then called on a 0 --> 1 signal transition in Siemens mode.
The M function numbers for the interrupt function are s et via machine data. With
machine data 10804: $MN_EXTERN_M_NO_SET_INT, the M number is used to
activate an interrupt routine and with MD 10806:
$MN_EXTERN_M_NO_DISABLE_INT the M number is used to suppress an
interrupt routine.
Only non-standard M functions are permitted to be set. M functions M96 and M97

Table of Contents

Other manuals for Siemens SINUMERIK 802D sl

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 802D sl and is the answer not in the manual?

Siemens SINUMERIK 802D sl Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 802D sl
CategoryController
LanguageEnglish

Related product manuals