15
Tables 04.00
15.2 List of s
stem variables
15
ï›™
Siemens AG 2000. All rights reserved
15-542
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
Identifier Type Description: System variable/value range/index Part pro Sync O S
$P_SUBPAR
BOOL $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
R5
$P_CTABDEF
BOOL $P_CTABDEF
Definition of curve tables is active if TRUE (1)
R4
$P_MC
INT $P_MC
Status of modal subprogram call
FALSE (0) -> Subprogram call not modal
TRUE (1) -> Subprogram call modal
R2
$P_REPINF
INT $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
R4
$P_SIM
BOOL $P_SIM
Simulation runs if TRUE (1)
R2
$P_DRYRUN
BOOL $P_DRYRUN
Dry run on if TRUE, else FALSE
R2
$P_OFFN
REAL $P_OFFN
Programmed offset contour normal
R5
.
1
$PI
REAL $PI
Circle constant PI = 3.1415927
R2
$P_PROGPATH
STRIN
G
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.
R3
$P_PROG
STRIN
G
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
R5
.
1
$P_STACK
INT $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
R5
.
1