; Windows directory
GC("Code","//NC/MPF.DIR/NC1.MPF")
MP("//NC/MPF.DIR/NC1.MPF","d:/tmp/WIN1.MPF")
; LOCAL_DRIVE
GC("Code","//NC/MPF.DIR/NC1.MPF")
MP("//NC/MPF.DIR/NC1.MPF","LOCAL_DRIVE:/WIN_LD1.MPF")
Recompile
● No entry for target file:
The GC function can only be used in the Programming Support 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.
● Entry for target file:
The code generated from the OUTPUT method is entered in 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.
Special features of recompilation
The GC function cannot be called in sub-dialogs because variables originating from master
dialogs can be used in sub-dialogs. These variables would not, however, be available in
response to a direct call.
When generated code is processed manually with the editor, the number of characters for
values created by the code generation program must not be changed. Changing these values
would make it impossible to recompile the code.
Remedy:
1. Recompile
2. Make change using the configured dialog (e.g. 99 → 101)
3. GC
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 161