Reading System Variables For A Block Search; Automatic Start Of An Asub After A Block Search - Siemens SINUMERIK 840D sl Function Manual

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

System variable
$P_SEARCH_SPOSMODE [ <n> ]
<n>: Spindle number
For later output of the spindle-specific auxiliary functions, the system variables can be read,
for example, in an ASUB, and output after output of the action blocks:
DB21, ... DBX32.6 == 1 (last action block active)
Note
The contents of the system variables $P_S, $P_DIR and $P_SGEAR may be lost after block
search due to synchronization operations.
For more detailed information on ASUB, block search and action blocks, see Sections "Output
suppression of spindle-specific auxiliary functions (Page 423)" and "Program test (Page 471)."
9.7.2.4

Reading system variables for a block search

In part programs, values can be read from the areas processing, main run, or servo/drive via
system variables:
$P_...
$A_...
$V_...
Because no blocks enter the main run during a block search of type 2 and type 4 (block search
with calculation to ...), main run and servo/drive-related system variables are not changed
during the block search. Where necessary, for these system variables, the block search must
specially handled in the NC program by querying whether a block search is active $P_SEARCH
(block search active).
Preprocessing-related system variables provide correct values in all search types.
9.7.3

Automatic start of an ASUB after a block search

Parameter assignment
Making the function effective
The automatic ASUB start after a block search is activated by the following MD setting:
MD11450 $MN_SEARCH_RUN_MODE, bit 1 = 1
Program to be activated
In the default setting, the program _N_PROG_EVENT_SPF is activated from the directory
_N_CMA_DIR as ASUB after the block search by changing the last action block. If another
program is to be activated, then the name of this user program must be entered in the following
machine data:
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
K1: Mode group, channel, program operation, reset response
Preprocessing-related system variables contain programmed values
Main-run-related system variables contain current values
Servo/drive-related system variables contain current values
Description
Position approach mode last programmed by means of M19,
SPOS, or SPOSA
9.7 Block search, types 1, 2, and 4:
485

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents