Siemens Sinumerik 840D sl Programming Manual page 218

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.26 Macro technique (DEFINE ... AS)
Example 3: External macro file
The macro file must be downloaded into the NC after reading-in the external macro file into
the control. Only then can macros be used in the NC program.
Program code
%_N_UMAC_DEF
;$PATH=/_N_DEF_DIR
DEFINE PI AS 3.14
DEFINE TC1 AS M3 S1000
DEFINE M13 AS M3 M7
DEFINE M14 AS M4 M7
DEFINE M15 AS M5 M9
DEFINE M6 AS L6
DEFINE G80 AS MCALL
M30
218
Comments
; Customer-specific macros
; Spindle clockwise, coolant on
; Spindle counterclockwise, coolant on
; Spindle stop, coolant off
; Call tool change program
; Deselect drilling cycle
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents