Siemens sinumerik 840d Programming Manual page 542

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Tables
15
15.2 List of system variables
Identifier
Type
$P_SUBPAR
BOOL
$P_CTABDEF
BOOL
INT
$P_MC
INT
$P_REPINF
$P_SIM
BOOL
$P_DRYRUN
BOOL
REAL
$P_OFFN
REAL
$PI
$P_PROGPATH
STRIN
G
$P_PROG
STRIN
G
$P_STACK
INT
15-542
Description: System variable/value range/index
$P_SUBPAR[n]
Queries whether the subprogram with parameter transfer for
parameter n has actually been programmed (TRUE) or whether the
system has used a default parameter (FALSE).
n: Parameter number 1 to n according to definition in PROC
instruction
$P_CTABDEF
Definition of curve tables is active if TRUE (1)
$P_MC
Status of modal subprogram call
FALSE (0) -> Subprogram call not modal
TRUE (1) -> Subprogram call modal
$P_REPINF
Status info for repositioning with REPOS command
(0) -> Repositioning with REPOS not possible for following reasons
– Call is not executed in an ASUP
– Call is executed in an ASUP, which was started in the reset state
– Call is executed in an ASUP, which was started in Jog mode
(1) -> Repositioning with REPOS possible
$P_SIM
Simulation runs if TRUE (1)
$P_DRYRUN
Dry run on if TRUE, else FALSE
$P_OFFN
Programmed offset contour normal
$PI
Circle constant PI = 3.1415927
PCALL ($P_PROGPATH << _N_MYSUB_SPF)
Call a subprogram from the current directory
Example: The current directory is /_N_WCS_DIR/_N_SHAFT_DIR/.
The above call starts the subprogram
/_N_WCS_DIR/_N_SHAFT_DIR/_N_MYSUB_SPF.
mmcNum = 474
NAME = $P_PROG[0]
Returns the program name of the program in program level 0 = main
program name, in string variable NAME
defines the program level from which the program name is to be read
$P_STACK
Returns the program level in which a part program is active.
progLevel = $P_STACK , writes the number of the current program
level into the integer variable
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
04.00
15
Part pro
Sync O S
R
5
R
4
R
2
R
4
R
2
R
2
R
5
.
1
R
2
R
3
R
5
.
1
R
5
.
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents