Interrupt Programm With M96 / M97 (Asub) - Siemens SINUMERIK 802D sl Programming Manual

Iso milling
Hide thumbs Also See for SINUMERIK 802D sl:
Table of Contents

Advertisement

Enhanced Level Commands

4.12 Interrupt programm with M96 / M97 (ASUB)

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
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 set. 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 set 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
4-168
SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling (PGM) -- 04.07 Edition
Call in shell cycle
progName = "000" << $C_PI
ISOCALLprogName
© Siemens AG 2007 All rights reserved
04.07

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents