Siemens SINUMERIK 840D sl Commissioning Manual page 716

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Programming commands
6.3 Functions
6.3.8
Select Program file function (SP)
Description
The SP (Select Program) function selects a file in the active NC file system for execution,
i.e., the file must be loaded into the NC beforehand.
Programming
Syntax:
Identifiers:
Parameters:
Example
The following data management syntax is used for this function:
• with return value
• Without return value:
//M(TestGC/"Code generation:")
DEF VAR1 = (R//1)
DEF VAR2 = (R//2)
DEF D_NAME
LOAD
VAR1 = 123
VAR2 = -6
END_LOAD
OUTPUT(CODE1)
"Cycle123(" VAR1 "," VAR2 ")"
"M30"
END_OUTPUT
PRESS(VS1)
D_NAME = "CF_CARD:/MPF.DIR/MESSEN.MPF"
GC("CODE1",D_NAME)
END_PRESS
98
("File")
SP
Selecting a program
"File"
SP("//NC/MPF.DIR/MYPROG.MPF", VAR1)
VAR1 = 0
File was loaded.
VAR1 = 1
File was not loaded without return value
SP("//NC/MPF.DIR/MYPROG.MPF")
Complete path name of NC file
; Write code from the OUTPUT method to file
CF_CARD:/MPF.DIR/MESSEN.MPF
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents