Siemens SINUMERIK 840D sl Commissioning Manual page 725

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

Advertisement

Example
//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 = "\MPF.DIR\MESSEN.MPF"
GC("CODE1",D_NAME)
END_PRESS
Recompile
● No entry for target file:
● Entry for target file:
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
The GC function can only be used in the Programming Support system and writes the NC
code to the file currently open in the Editor. Recompilation of the NC code is possible. If
the GC function is configured without a target file being specified under
"Run MyScreens", an error message is output when it is executed.
The code generated from the OUTPUT block is transferred to the target file. If the target
file does not already exist, it is set up in the NC file system. If the target file is stored in
the HMI file system, it is stored on the hard disk. User comment lines (information
required to recompile code) are not set up, i.e. the code cannot be recompiled.
; Write code from OUTPUT method to file
\MPF.DIR\MESSEN.MPF:
Cycle123(123, -6)
M30
Programming commands
6.3 Functions
107

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents