Siemens SINUMERIK 840D sl Programming Manual page 489

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Example 2: Macro definitions in a macro file
Program code
DEFINE M6 AS L6
DEFINE G81 AS DRILL(81)
DEFINE G33 AS M333 G333
Example 3: External macro file
After reading the external macro file into the control, the macro file must be downloaded into the
NC. 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
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Comment
; A subprogram is called at tool change to handle
the necessary data transfer. The actual tool change
M function is output in the subprogram (e.g. M106).
; Emulation of the DIN-G command.
; During thread cutting, synchronization is reques-
ted with the PLC. The original G command G33 was
renamed to G333 by machine data so that the program-
ming remains identical for the user.
Comment
; Customer-specific macros
; Spindle clockwise, coolant on
; Spindle counter-clockwise, coolant on
; Spindle stop, coolant off
; Call tool change program
; Deselect drilling cycle
Work preparation
3.1 Flexible NC programming
489

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents