Programming Principles; Fundamentals Of Programming; Program Names; Program Structure - Siemens SINUMERIK 808D ADVANCED Programming And Operating Manual

Computer numeric control
Hide thumbs Also See for SINUMERIK 808D ADVANCED:
Table of Contents

Advertisement

8

Programming principles

8.1

Fundamentals of programming

8.1.1

Program names

Each program must have a program name. The program name must follow the conventions below:
● Use a maximum of 24 letters or 12 Chinese characters for a program name (the character length of the file extension
excluded)
● Separate the file extension only with a decimal point
● Enter the file extension ".SPF" if the current default program type is MPF (main program) and you desire to create a
subprogram
● Enter the file extension ".MPF" if the current default program type is SPF (subprogram) and you desire to create a main
program
● Do not enter the file extension if you desire to take the current default program type
● Avoid using special characters for program names.
Example
WORKPIECE527
8.1.2

Program structure

Structure and content
The NC program consists of a sequence of blocks (see the table below). Each block represents a machining step.
Instructions are written in the blocks in the form of words. The last block in the execution sequence contains a special word
for the end of the program, for example, M2.
The following table shows you an example of the NC program structure.
Block
Word
Block
N10
Block
N20
Block
N30
Block
N40
Block
N50
8.2

Positional data

8.2.1

Programming dimensions

In this section you will find descriptions of the commands, with which you can directly program dimensions taken from a
drawing. This has the advantage that no extensive calculations have to be made for NC programming.
Note
The commands described in this section stand in most cases at the start of a NC program. The way, in which these
functions are combined, is not intended to be a patent remedy. For example, the choice of working plane may be made at
another point in the NC program. The real purpose of this and the following sections is to illustrate the conventional structure
of an NC program.
Programming and Operating Manual (Turning)
6FC5398-5DP10-0BA2, 06/2015
Word
Word
G0
X20
G2
Z37
G91
...
...
...
M2
...
; Comment
...
; First block
...
; Second block
...
; ...
...
; End of program
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents