Example 2: Nc Program For Turning - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Fundamentals
2.3 Creating an NC program
Procedure
1. Create a new part program (name)
2. Edit the part program
3. Select the part program
4. Activate single block
5. Start the part program.
Note
In order that the program can run on the machine, the machine data must have been
appropriately set (→ see machine manufacturer's data!).
Note
When testing a program, alarms can occur, which must first be reset.
NC program
Program code
N10 MSG ("THIS IS MY NC PROGRAM")
N20 F200 S900 T1 D2 M3
N30 G0 X100 Y100
N40 G1 X150
N50 Y120
N60 X100
N70 Y100
N80 G0 X0 Y0
N100 M30
2.3.4.2

Example 2: NC program for turning

Program example 2 is intended for machining a workpiece on a lathe. It contains radius
programming and tool radius compensation.
54
Comment
; Message "THIS IS MY NC PROGRAM" dis-
played in the alarm line.
; Feedrate, spindle, tool, tool off-
set, spindle clockwise.
; Approach position in rapid traverse.
; Rectangle with feedrate, straight
line in X.
; Straight line in Y.
; Straight line in X.
; Straight line in Y.
; Retraction in rapid traverse.
; End of block.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents