Programming commands
6.3 Functions
Icon
Desc_Text
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
See also
Generate code (GC) (Page 106)
122
(optional) icon for display in the machining step program, format
*.png
Screen size for corresponding resolution:
640 X 480 mm → 16 x 16 pixels
800 X 600 mm → 20 x 20 pixels
1024 X 768 mm → 26 x 26 pixels
1280 X 1024 mm → 26 x 26 pixels
1280 X 768 mm → 26 x 26 pixels
File loc.: /sinumerik/hmi/ico/ico<resolution>
Note:For resolutions of 1280, the folder for 1024 x 768 mm used
(only suitable for machining step programs).
(optional) Explanation text for display in the machining step
program, max. length of 17 character string (only suitable for
machining step programs)
;Write NC code from OUTPUT method to
file \MPF.DIR\MESSEN.MPF:
Cycle123(123, -6)
M30
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
SINUMERIK Integrate Run MyScreens (BE2)