0% found this document useful (0 votes)
6 views146 pages

Wop PJ

The document is a planning guide for the SINUMERIK 840C Graphic Programming System, detailing its software version 6 and various components, including system overview, macros, screen forms, and configuration examples. It is intended for users responsible for making settings or expanding the system, providing comprehensive information on programming, configuration, and testing tools. The guide also outlines the interaction between system components and includes a table of contents for easy navigation.

Uploaded by

Marcelo Tafarelo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views146 pages

Wop PJ

The document is a planning guide for the SINUMERIK 840C Graphic Programming System, detailing its software version 6 and various components, including system overview, macros, screen forms, and configuration examples. It is intended for users responsible for making settings or expanding the system, providing comprehensive information on programming, configuration, and testing tools. The guide also outlines the interaction between system components and includes a table of contents for easy navigation.

Uploaded by

Marcelo Tafarelo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 146

SINUMERIK 840C

Graphic Programming System


Software Version 6
Planning Guide 09.96 Edition

Manufacturer Documentation
Target Group 0

SINUMERIK 840C System Overview 1

The Pocket Calculator 2

Screen Forms 3

Graphic Macros 4

Programming System Adaptation to the


Machine
5

Software Version 6 Configuring Example 6

Interface Description of 7
Planning Guide the Existing Configur-
ation
Tools for Testing 8
Manufacturer Documentation
Appendix A

Valid for

Control Software Version


SINUMERIK 840C/CE 6
(Standard/Export Version)

09.96 Edition
SINUMERIK® documentation
Printing history

Brief details of this edition and previous editions are listed below.

The status of each edition is shown by the code in the "Remarks"


column.

Status code in the "Remarks" column:

A .... New documentation.


B .... Unrevised reprint with new Order No.
C .... Revised edition with new status.
If factual changes have been made on the page since the last
edition, this is indicated by a new edition coding in the header on
that page.

Edition Order No. Remarks


12.93 6FC5-197-3AA70-0BP0 A
08.94 6FC5-197-4AA70-0BP0 C
04.95 6FC5-197-5AA70-0BP0 C
11.95 6FC5-197-6AA70-0BP0 C
09.96 6FC5-197-6AA70-0BP1 C

Siemens quality for software and training Other functions not described in this documentation might be executable in the
to DIN ISO 9001, Reg. No. 2160-01 control. This does not, however, represent an obligation to supply such functions
with a new control or when servicing.

This publication was produced with WinWord V 6.0 and Designer V 4.0. We have checked that the contents of this document correspond to the hardware
and Designer V 3.1. and software described. Nonetheless, differences might exist and therefore we
The reproduction, transmission or use of this document or its contents is not cannot guarantee that they are completely identical. The information contained in
permitted without express written authority. Offenders will be liable for damages. this document is, however, reviewed regularly and any necessary changes will
All rights, including rights created by patent grant or registration of a utility model or be included in the next edition. We welcome suggestions for improvement.
design, are reserved.
Subject to change without prior notice.
© Siemens AG 1993, 1994, 1995, 1996. All Rights Reserved.

Order No. 6FC5-197-6AA70-0BP1 Siemens-Aktiengesellschaft.


Printed in the Federal Republic of Germany
Table of Contents

0. Target Group ...................................................................................................................... 1

1. System Overview................................................................................................................ 2
1.1 Function of the programming system ................................................................................... 2
1.2 Individual components and the way they interact .................................................................. 2
1.3 Configuring WOP at the PC................................................................................................. 4
1.4 Configuring WOP at the SINUMERIK 840C control ............................................................... 7
1.4.1 Sequence of operation ..................................................................................................... 7
1.4.2 The operating system editor 'EDITOR' .............................................................................. 9

2. The Pocket Calculator ........................................................................................................ 11


2.1 Operation for calling the function from WOP......................................................................... 11
2.2 Syntax rules ....................................................................................................................... 12
2.2.1 The basic arithmetic operations ........................................................................................ 12
2.2.2 Other operators ............................................................................................................... 13
2.2.3 Signs............................................................................................................................... 13
2.2.4 Brackets.......................................................................................................................... 13
2.2.5 Functions ........................................................................................................................ 14
2.2.6 Variables ......................................................................................................................... 15
2.2.7 Priorities.......................................................................................................................... 16
2.2.8 Multiple calculations ......................................................................................................... 16
2.2.9 Character strings ............................................................................................................. 16
2.2.10 Character string variables as formulae ............................................................................ 19
2.2.11 Logic functions and operators ......................................................................................... 20
2.2.12 Further information......................................................................................................... 23

3. Screen Forms ..................................................................................................................... 24


3.1 Structure of a screen form file ............................................................................................. 24
3.1.1 Instruction for the fields .................................................................................................... 24
3.1.1.1 Serial number ............................................................................................................... 25
3.1.1.2 Field type...................................................................................................................... 25
3.1.1.3 Permissible instructions ................................................................................................. 26
3.1.1.4 Colour settings for the individual screen form fields ......................................................... 27
3.1.2 Screen form definition ...................................................................................................... 28
3.1.3 Repeat section................................................................................................................. 28
3.1.4 End section ..................................................................................................................... 28
3.1.5 End of screen form .......................................................................................................... 29
3.1.6 Text section..................................................................................................................... 29
3.2 Examples of instruction sequences ...................................................................................... 29
3.2.1 Variable scans ................................................................................................................. 30
3.2.2 Colour switchover ............................................................................................................ 30
3.2.3 Jump instructions............................................................................................................. 30
3.2.4 Text calls......................................................................................................................... 31
3.3 Special variables................................................................................................................. 32
Table of Contents 09.96

3.4 Screen form examples ........................................................................................................ 33


3.4.1 Introductory example ....................................................................................................... 33
3.4.2 Example following screen form/selection screen form......................................................... 34
3.5 Operating the screen forms................................................................................................. 37
3.6 Existing screen form files .................................................................................................... 38
3.6.1 Screen forms for milling.................................................................................................... 38
3.6.2 Screen forms for turning................................................................................................... 41
3.6.3 Help screens for milling .................................................................................................... 46
3.6.4 Help screens for turning ................................................................................................... 50

4. Macros................................................................................................................................ 53
4.1 The task of macros ............................................................................................................. 53
4.2 Macro syntax...................................................................................................................... 53
4.2.1 General rules................................................................................................................... 53
4.2.2 Jump/call......................................................................................................................... 55
4.2.3 Logical branches.............................................................................................................. 57
4.2.4 Loops.............................................................................................................................. 58
4.2.5 Input screen forms........................................................................................................... 60
4.2.6 Graphics macros ............................................................................................................. 60
4.2.7 NC macros ...................................................................................................................... 62
4.3 Example of a graphics macro/NC macro .............................................................................. 63

5. Adaptation to the Machine.................................................................................................. 65


5.1 Program for creating the machine file................................................................................... 65
5.1.1 General notes.................................................................................................................. 65
5.1.2 File commands ................................................................................................................ 67
5.1.3 Word............................................................................................................................... 67
5.1.4 Block............................................................................................................................... 69
5.1.5 Machine .......................................................................................................................... 69
5.1.7 Setup .............................................................................................................................. 70
5.1.7 Error messages ............................................................................................................... 71
5.2 Data in the machine file....................................................................................................... 72
5.2.1 Words for milling .............................................................................................................. 72
5.2.2 Words for turning............................................................................................................. 74
5.2.3 Blocks for milling.............................................................................................................. 76
5.2.4 Blocks for turning ............................................................................................................. 77
5.3 Adaptation to the machine with the machine file.................................................................... 78

6. Configuring Example .......................................................................................................... 80

7. Interface Description of the Existing Configuration ........................................................... 83


7.1 Overview of variable ranges ................................................................................................ 83
7.1.1 Existing data types........................................................................................................... 83
7.1.2 Division of the ranges....................................................................................................... 84
7.2 Variable assignment............................................................................................................ 84
7.2.1 Real/integer variables....................................................................................................... 85
7.1.2 String variables ................................................................................................................ 119
7.2.3 Variables for the end user ................................................................................................ 122
7.3 System variables ................................................................................................................ 123
7.3.1 Path machining ................................................................................................................ 123
7.3.2 Solid machining................................................................................................................ 128
7.3.3 Point machining ............................................................................................................... 130

ii  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 Table of Contents

7.3.4 Turning............................................................................................................................ 130


7.3.5 Approach and retraction ................................................................................................... 131
7.3.6 Variables for tool description............................................................................................. 134
7.3.7 Variables for technology data............................................................................................ 135
7.3.8 General system variables ................................................................................................. 135
7.4 The empirical value file........................................................................................................ 136
7.5 The configuration file........................................................................................................... 136

8. Tools for Testing ................................................................................................................ 137


8.1 Input screen forms during runtime ....................................................................................... 137
8.2 Text output in the NC code.................................................................................................. 138

A. Appendix............................................................................................................................ 140
A.1 Conversion table MF2 keyboard <-> operator panel ............................................................. 140

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 iii


SINUMERIK 840C (PJ)
09.96 0. Target Group

0. Target Group

This documentation has been produced for users responsible for making settings to or
expanding the system and who therefore have to make changes to screen forms, macros
and machine files.
The information that they contain is not required by the machine end user who uses the
system for programming.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 1


SINUMERIK 840C (PJ)
1. System Overview 09.96
1.1 Function of the programming system

1. System Overview

1.1 Function of the programming system

The NC programming system for the SINUMERIK 840C control is a graphics programming
system.
The job of the system is to create an NC program from a geometric description without the
user having to enter the machine commands himself. Company-specific machining methods
and the existing machine park along with its tools can be taken into account.
During the construction phase, it is not necessary to know on what machine the part is to be
manufactured. As long as the tool or machine data in the strict sense are not accessed, the
inputs are machine-independent. This concerns the internal geometry description and entry
of the machining processes. A geometric object can be described in a uniform way
regardless of whether it is to be turned or milled later.

You can find a more precise description of the G functions mentioned in this documentation
in the "SINUMERIK 840C Programmer's Guide".

Basic note: Throughout the entire documentation the key designations refer to the
MF2 keyboard!
The appendix contains a conversion table for the operator panel !

It is only possible to enter ASCII sequences or other characters not on the operator
panel by using the MF2 keyboard!

The MF2 keyboard must not be connected to the control via the operator panel but via a
direct interface because the operator panel <-> control interface cannot transfer all key
combinations.

ASCII sequences to the MF2 keyboard are entered via ALT + number, e.g. ALT + 179 => .

1.2 Individual components and the way they interact

The programming system comprises several components that can be subdivided as follows
from the point of view of the user:
On the one hand there is a permanently programmed basic system that controls and
manages the entire program run. On the other hand, accessible, configurable components
are available to the user that are available for data input/output and function expansions
(screen forms, macros, machine file).

To obtain an overview of the entire system, it is necessary to be familiar with the


functionality and the interaction of the system components described below.

2  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 1. System Overview
1.2 Individual components and the way they interact

Graphics macros: Calling graphics macros is managed by the basic system.


Screen forms are called from the graphics macro and graphic outputs are
made on the screen as certain variables are evaluated. The names of the
graphics macros are stored in the geometry file and during NC code
generation the NC macro of the same name is called.

Screen forms: Each screen form is described in a separate file. When a screen form is
displayed, values stored in the empirical value file or from previous
screen form calls. User inputs are taken over and converted into internal
variables.

Geometry file: In the geometry file, all entries required to create a workpiece are
recorded by the basic system in a special "geometric language".
When a workpiece is read in and calculated the entries of the geometry
file are interpreted step by step and displayed as graphic elements on the
screen using the basic system and graphics macros.
During NC block generation, too, the geometry file executed, only in this
case, the NC code is generated using the machine file and NC macros.

NC macros: The NC macros are used to generate NC code beyond that provided by
the basic system (e.g. approach and retraction movements, bridging of
discontinuities (gaps)). The internal variables assigned by the screen
forms are evaluated, the NC code is generated.

Machine file: Blocks and words are defined for NC block generation in the machine file.
Words can be activated by NC macros and by the basic system, blocks
only be the basic system.

Empirical value file:


Variable preassignment for basic settings and screen form outputs.

Configuration file:
Variable preassignment for machine-dependent data.

Pockets: The pocket calculator is used for all calculation that are required in the
screen forms, macros or geometries. But it can also be called directly
from the program.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 3


SINUMERIK 840C (PJ)
1. System Overview 09.96
1.3 Configuring WOP at the PC

The following diagram shows the interaction between the individual system components:

WOP
Data input/output
via Screens

call

Program- Graphics macros produce Screen graphics


ming

individual program steps


are also logged in Geometry file

processed in

NC block uses produces


generation Machine file
uses use
NC macros
produce NC code

Visualization :

Graphics macros are called and generate the screen graphics. The graphics macros are
used wherever approach and retraction paths (even motion within the infeed axis!) have to
be calculated to machine a contour.

NC code generation :

The system generates the NC code while evaluating the geometry files. During execution of
the geometry file, the NC words / NC blocks are either fetched directly from the machine file
(code generation by the basic system) or the NC code is generated by macro calls, where
words from the machine file are also accessed in the macro.

1.3 Configuring WOP at the PC

The user can configure screen forms, macros and the machine file, i.e. adapt them to his
special requirements and wishes.
The are two ways of doing this:

• Changing within the base system (SINUMERIK 840C). Description of the operating
sequence in Section 1.4.

• Changing external on PC
The following information about the path and names is required for this:

4  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 1. System Overview
1.3 Configuring WOP at the PC

FlexOS-PC (only screen forms, macros, empirical value and configuration file):

All original data are under the directory /mmc.001/siem.069/... :


Screen forms: /mmc.001/siem.069/wop.006/msks.007/deutsch.008/*.009
Empirical value file: /mmc.001/siem.069/wop.006/exam.033/erfahr.034
Configuration file: /mmc.001/siem.069/wop.006/exam.033/projekt.034
NC macros: /mmc.001/siem.069/wop.006/ncmac.032
Graphics macros: /mmc.001/siem.069/wop.006/grafik.035

To allow the user to make changes without original data being lost there is a separate
data tree under /mmc.001/user.005/... :
Screen forms: /mmc.001/user.005/wop.006/msks.007/deutsch.008/*.009
Empirical value file: /mmc.001/user.005/wop.006/exam.033/erfahr.034
Configuration file: /mmc.001/user.005/wop.006/exam.033/projekt.034
NC macros: /mmc.001/user.005/wop.006/oemncmac.032
Graphics macros: /mmc.001/user.005/wop.006/oemgrafik.035
Changes must only be made in this user area!

Directory structure:
 \
 mmc.001
 ...
 siem.069

 ...

 wop.006
 wkz.016

...
ncmac.032
Siemens turning or milling data
 exam.033
 erfahr.034
 projekt.034
 msks.007

 user.005

 ...

 wop.006
 wkz.016

...
ncmac.032
Adaptation machine user
 exam.033
 erfahr.034
 projekt.034
 msks.007

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 5


SINUMERIK 840C (PJ)
1. System Overview 09.96
1.3 Configuring WOP at the PC

DOS-PC:

All original data are under the directory \WOP\... :


Example turning system:
Screen forms: \wop\t.006\msks.007\deutsch.008/*.009
Empirical value file: \wop\t.006\exam.033\erfahr.034
Configuration file: \wop\t.006\exam.033\projekt.034
NC macros: \wop\t.006\ncmac.032
Graphics macros: \wop\t.006\grafik.035
Machine file: \wop\t.006\masch.036

To allow the user to make changes without original data being lost there is a
subdirectory for each machine in the directory \wop\t.006:
Screen forms: \wop\t.006\typ_a.006\msks.007\deutsch.008\*.009
Empirical value file: \wop\t.006\typ_a.006\exam.033\erfahr.034
Configuration file: \wop\t.006\typ_a.006\exam.033\projekt.034
NC macros: \wop\t.006\typ_a.006\oemncmac.032
Graphics macros: \wop\t.006\typ_a.006\oemgrafik.035
Machine file: \wop\t.006\typ_a.006\masch.036

Before you can make changes, you must copy the file in question into the user
directory "by hand".

Directory structure:
\
 ...
 wop
 m.006 (milling)

 t.006
 wkz.016

...
ncmac.032
Siemens turning data
 exam.033
 erfahr.034
 projekt.034
 msks.007

 typ_a.006
 wkz.016

...
ncmac.032

 exam.033 Adaptation machine A


 erfahr.034
 projekt.034
 msks.007

 typ_b.006
 wkz.016

...
ncmac.032

 exam.033 Adaptation machine B


 erfahr.034
 projekt.034
 msks.007

6  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 1. System Overview
1.4 Configuring WOP at the SINUMERIK 840C control

1.4 Configuring WOP at the SINUMERIK 840C control

The original Siemens data of the entire WOP configuration are in the directory
"/mmc.001/siem.069/wop.006". Parallel with this, there is a directory "/mmc.001/user.069/
wop.006" in which the user can make changes.
The following rule applies: The system first searches the USER path for a file and if it is not
found it used the SIEMENS file.

Exception: For the macro files (graphics macro/NC macro file), the empirical values and the
configuration file, the files from the USER and the SIEMENS branch are "fused", i.e. only the
changes are stored in the USER file. The USER file is read in after the SIEMENS file and
"overlays" the data defined there..

1.4.1 Sequence of operation

To be able to adapt the individual parts to the WOP configuration, the following operator
actions are necessary:

Via the menu items


• Diagnosis
• Set password
• Start-up
• Backup
• Start
you enter a DOS shell with a menu offering service functions:

1 Restore/Backup
2 Setup/Configure Options
3 DR DOS shell
4 MMC system check (service mode)
5 End (load MMC)

If you select menu item 2 you enter the following menu:

1 Setup WOP options


2 Set streamer type
3 Return to main menu

If you select menu item 1 the following menu is displayed from which it is possible to edit
parts of the WOP configuration.

Change on MMC base system Version 4.1 and higher:


On base system V4.1 and WOPT V5.1 and higher, graphics and NC macros, screen
forms and the configuration file can only be copied from this menu tree (if they do
not already exist). The files are edited using the editor of the MMC base system!

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 7


SINUMERIK 840C (PJ)
1. System Overview 09.96
1.4.1 Sequence of operation

1 Copy Siemens original system to user system


2 Edit machine adaptation
3 Edit graphics macro
4 Edit NC macro
5 Edit screen forms
6 Edit heuristics
7 Edit joblist
8 Clean user area (submenu)
9 Back to main menu

The number of the required function must be entered.

Description of the individual functions:

1 Copy Siemens original system to user system:

Another menu is displayed:

1 Do not copy Siemens original system


2 Do copy Siemens original system
Depending on what number you enter, the Siemens tree is copied to the user branch or not.
If you press RETURN without having entered a number nothing is copied.
This additional query exists to prevent unintentional copying of the Siemens tree.

2 Edit machine adaptation:

If the machine file does not yet exist in the user branch, it is copied to the user branch from
the Siemens tree.
The program for machine file adaptation is automatically called with the machine file in the
user branch.
For a description of operating the program see Section 5.1, "Program adapting the machine
file ".

3 Edit graphics macro:

If the graphics macro file does not yet exist in the user branch it is copied there from the
Siemens tree.
After this, the graphics macro file in the user branch is automatically called up in the
operating system editor "EDITOR" (=DR DOS editor). (No longer on MMC base system
V4.1!).
For a description of the macro syntax see Section 4.2, "Syntax of the macros".

4 Edit NC macro:

If the NC macro file does not yet exist in the user branch it is copied there from the Siemens
tree.
After this, the NC macro file in the user branch is automatically called up in the operating
system editor "EDITOR". (No longer on MMC base system V4.1!).
For a description of the macro syntax see Section 4.2, "Syntax of the macros".

8  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 1. System Overview
1.4.2 The operating system editor "EDITOR"

5 Edit screen forms:

The user must enter which screen form he wants to edit in what language.
The selected screen form file is copied from the Siemens tree to the user branch if it does
not already exist there and is then automatically called up in the "EDITOR". (No longer on
MMC base system V4.1 and higher!).
For a description of the screen form file syntax, see Section 3.1, "Building up a screen form
file".
For a list of all screen form files in the system see Section 3.6.

6 Edit heuristics:

If the configuration file does not yet exist in the user branch, it is copied there from the
Siemens tree. (No longer on MMC base system V4.1 and higher!).
The configuration file in the user branch is automatically called up in the "EDITOR".
The empirical value file can only be changed via the base system through the menu items
"Programming -> Empirical values".

7 Edit joblist:

If the joblist does not yet exist in the user branch, it is copied there from the Siemens tree.
The joblist in the user branch is automatically called up in the "EDITOR".

8 Clean user area (submenu):

A sub menu is displayed via which you can either delete the entire user area or individual
files.

1.4.2 The operating system editor "EDITOR"

To be able to use the operating system editor (=DR DOS editor), you require an MF2
keyboard because Ctrl sequences can be entered via the operator panel.
When the editor is called in insert mode, text input is possible immediately. The individual
commands are described in the following table:

Key Function

Help:
Ctrl + J Online help (exit with ESC)

Save file:
Ctrl + KX Save file and exit
Ctrl + KS Save file only
Ctrl + KD Save file and return to main menu
Ctrl + KQ Back to the main menu without saving

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 9


SINUMERIK 840C (PJ)
1. System Overview 09.96
1.4.2 The operating system editor "EDITOR"

Cursor motion:
Ctrl + D / Î Cursor 1 column to the right
Ctrl + S / Í Cursor 1 column to the left
Ctrl + E / Ï Cursor 1 line up
Ctrl + X / Ð Cursor 1 line down
Ctrl + A Cursor 1 word to the left
Ctrl + F Cursor 1 word to the right
Ctrl + R / PgUp Cursor 1 page up
Ctrl + C /PgDn Cursor 1 page down
Ctrl + QS Cursor to the beginning of the line
Ctrl + QD Cursor to the end of the line
Ctrl + QR / Home Cursor to the beginning of the file
Ctrl + QC / End Cursor to the end of the file

Delete text:
Ctrl + G / Del Delete character at cursor position
Ctrl + H / Backsp. Delete character to the left of cursor
Ctrl + T Cursor at the beginning of a word => delete whole word
Cursor within a word => delete word from cursor position
Ctrl + Y Delete line

Block operations:
Ctrl + KB Mark the beginning of a block
Ctrl + KK Mark the end of block
Ctrl + KV Move block:
The marked block is deleted at is original position and inserted
a the cursor position.
Ctrl + KY Delete marked block
Ctrl + KC Insert marked block at the cursor position
Ctrl + KW Write marked block to another file

Other commands:
ESC In the main menu => exit editor
Ctrl + R Display of the file edited previously
Ctrl + N Insert new line; cursor remains in the current line
Ctrl + P All subsequent Ctrl entries are interpreted as Ctrl characters
Ctrl + QN Entry in decimal or hexadecimal (0X...) code
Ctrl + V / Ins Switchover between insert mode / overwrite mode
Ctrl + KR Read in file

10  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.1 Operation for calling the function from WOP

2. The Pocket Calculator

With the pocket calculator it is possible to perform the most varied types of calculation from
certain points in the program without having to leave the screen form you have selected.
Intermediate results can be stored in the pocket calculator by assignment of a variable and
called up later. This saves you making and collecting written notes.
The calculator can be called up from any enter field with the key combination CTRL N or with
the " " key on the operator panel of the control.

The pocket calculator can also be user inside geometries and macros (formula interpreter).
Here it is used for calculations that are performed between two vertical lines ("|"). The results
of such calculations are then used and interpreted in the geometry of macro.

The pocket calculator works with the basic rules of mathematics as described below.

2.1 Operation for calling the function from WOP

After you have called the pocket calculator, an enter field appears at the beginning of which
there is a cursor. In this field you can make entries and therefore also perform calculations.
As many characters are displayed as the enter field can contain.
The option of entering long calculations is not limited by the length of the enter field:
When the beginning or the end of the enter field is reached, the text is scrolled behind the
enter field (window function). The current input is therefore always displayed, the numbers
and characters entered first disappear out of view but are still calculated.

Up to 80 characters can be entered!

The following keys are available for editing the enter field:

Key Function

Î: The cursor is moved one position to the right but not further than the first free
position after the input.

Í: The cursor is moved one position to the left but no further than the beginning of
the enter field.

Ï: The cursor is moved to the beginning of the line.

Ð: The cursor is put in the first free position after the text already entered.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 11


SINUMERIK 840C (PJ)
2. The Pocket Calculator 09.96
2.2 Syntax rules

Home/Pos1: The cursor is put in the first position in the window.

End : The cursor is put in the last character in the window. If the input is shorter than
the window, the cursor is put in the first free position behind the text.
Õ: With the backspace key, the character to the left of the cursor is deleted. If the
cursor is on the first character this key has no effect.

F8 : The entry is deleted (without confirmation !).

F9 : The text from the last time the calculator was called is brought up again.

↵: Entry is concluded with the RETURN key and calculation of the expression is
started.

ESC : Cancellation of the pocket calculator and return to the program or to the original
content of the enter field from which the calculator was called.

If no error occurs during calculation of the expression entered, the result is displayed when
the return key is pressed.
If the pocket calculator has been called from an enter field, the calculator is exited and the
result put in the enter field the second time you press return.
With the ESC key, the pocket calculator is cancelled without entering the result.

If an error occurs, the pocket calculator is not exited but the cursor automatically moves to
the position with the error.
The entry can then be corrected or the calculator can be cancelled with the ESC key.

2.2 Syntax rules

The mathematical rules described in this section apply both to the calculations with the
pocket calculator during work with WOP and to calculations in the screen form language and
screen form instructions.

2.2.1 The basic arithmetic operations

The symbols for the four basic arithmetic operations are:

Symbol Operation

+ Addition
- Subtraction
* Multiplication
/ Division

12  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.2.2 Other operators

Addition and subtraction have a lower priority than division and multiplication.

"Multiplication and division are performed before addition and subtraction!"

Example:

5+5*2

Result: 15; because 5*2 is calculated first. 5 is only added afterwards.

2.2.2 Other operators

Symbol Operation

^ Raise to the power of
% Percentage increase/decrease

Raising to powers has an even higher priority than division or multiplication, i.e.. the solution
of the expression

2*2^2

is 8; because multiplication is performed last.

Percentage increase or decrease has the highest priority of all the operators, i.e. this
operation is always executed first in an expression.

2*200%10

Increase of 10 percent, i.e. the result of this expression is 440.

For a decrease, a negative number must be used, i.e. a 20 per cent decrease is entered like
this: 200%-20.

2.2.3 Signs

The sign "+" or "-" can be placed in front of any number, variable or operation. Signs cannot
be used in front of functions and brackets.

2.2.4. Brackets

Brackets can be used to control execution of an expression. The round brackets are used as
bracket symbols for all levels.

2.5*(3+100)

In this expression, addition is performed first, and then multiplication.


Solution: 257.5

Nesting down to 10 levels of brackets is possible. This maximum is further reduced if an


expression contains many consecutive operations with different priorities.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 13


SINUMERIK 840C (PJ)
2. The Pocket Calculator 09.96
2.2.5 Functions

2.2.5 Functions

The function set includes the trigonometric functions and their reciprocals, logarithmic
functions and conversion functions with a technical significance.
In a functions the argument is placed in round brackets. The argument can also be a
mathematical expression comprising operations and further functions.

SIN(90)

calculated the sine of 90 degrees.

COS(SQR(4*4))

calculates the product of 4*4, the square root of this and then the cosine.

The angle unit for trigonometric functions is always degrees. The appropriate functions are
available for the conversion from and to radians.

List of the integrated functions in alphabetical order:

Name Function

ABS Absolute value.
ACS Arc cosine.
ASN Arc sine.
ATN Arc tangent.
CME Conversion of inches to cm.
COS Cosine.
DEC Conversion of sexagesimal division to decimal division.
The argument has the same format as the result of DMS.
DEG Conversion of radians to degrees.
DMS Conversion of decimal angle division to sexagesimal division.
The result has the following format: DD.MMSS
DD degrees
MM minutes
SS seconds
EXP Reciprocal function for natural logarithm.
FAC Faculty.
FMT Extended format: A value is only used if it is not "NL".
Example:
FMT("+07.30>")
+ with sign "+" ("-" is always output)
0 with leading zeroes
7 total integer places(incl. sign)
. separator integer.decimal (e.g. ",", "!")
3 total decimal places
0 with trailing zeroes
> output number right-justified (< left-justified)

14  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.2.6 Variables

FOR Format for representation of the result and conversion of numeric to string
variable.
Example:
FOR(10.4) sets the standard format of 10 places total length and 4 decimal
places. Specifying a negative format causes zeroes to be output.
The largest format that can be set is 20.9.
INC Conversion of cm to inches.
INT Integer component.
LEN Returns the length of a string.
LNA Natural logarithm with base e.
LOG Common logarithm with base 10.
MAC The content of the specified variables is used as a formula in the expression.
Conversion of string to numeric number: MAC("10") -> 10
RAD Conversion of degrees to radians.
SGN Sign. The result is -1, if the argument is less than 0 and 1, if the argument is
greater than 0. If the argument is equal to 0, the result is 0.
SIN Sine.
SQR Calculates the square root.
TAN Tangent.
TEN Reciprocal function for common logarithm.
TRU Removes all trailing blanks in the specified string.

2.2.6 Variables

Variables are used to store information in WOP. The variables are used by the basic
system, the macros, the screen forms and the machine file. Some information is also stored
in the form of variables in the geometry file. They form the interface between the screen
forms and macros.
Other variables serve as the interface between the basic system and the macros. One area
is also reserved for the user for his own configuration.
The variables are described in Section 7, "Interface description of the existing configuration".
Variables can be introduced anywhere where numbers are required.
A value is assigned to a variable by writing its name, an equal sign and an expression.

Example: V1=10+SIN(75)

The expression to the right of the equal sign is calculated and assigned to variable V1.

Variable V1 can now be used in further calculations.

3*V1^2

A variable can also appear in a value assignment to itself:

V1=V1+2

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 15


SINUMERIK 840C (PJ)
2. The Pocket Calculator 09.96
2.2.7 Priorities

A type of indexing can be used with the geometry variables:


For example, the expression

VV1

means that first the value of variable 1 is derived and this is then used as the variable
number.

Example: V1=5:VV1=100

The value 100 is stored in variable V5!

2.2.7 Priorities

Operators Priority

+,- Addition, subtraction Low priority
*,/ Multiplication, division ↑
^ Raising to power of
% Percentage increase/decrease ↓
( ), SIN, COS... Brackets and all functions High priority

If operations with the same priority appear in an expression, they are performed from left to
right. It is possible to influence the order in which operations are performed and therefore
the result by the use of brackets.

2+2*2
Solution: 6
(2+2)*2
Solution: 8

2.2.8. Multiple calculations

Several expressions can be calculated one after the other during one call if the expressions
are separated by colons. Only the final result, however, is displayed. This is especially
interesting with regard to variables because it is possible to assign values to variables and
then perform calculations with them.
Example:

V1=10:V2=2*PI:3*V1+SIN(DEG(V2))

2.2.9. Character strings

The formula interpreter handles character string variables and character string constants.

Ten character string variables are available (V51 to V60).

Character string variables can hold up to 40 characters.

16  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.2.9. Character strings

Character string constants take the form of "text". The quotation marks must never be
omitted. Any character (except for quotation marks!) can appear within the quotation marks.

Character string constants can be assigned to character string variables.

V51="text"

A so-called "zero string" can be assigned to a variable to delete the character string variable:

V52=""

When assigning a "zero string", never include a blank within the quotation marks!

Character string variables can also be assigned to one another:

V52=V51

In this way, V52 is assigned the contents of V51.

Character strings can be concatenated with a "+":

"Test-"+V51

Outputs: "Test-Text"

Any number of character strings up to a total length of 80 characters can be concatenated.

Concatenations can also be used to assign values to character string variables:

V53="Test-"+V51

When assigning values to character string variables remember that the character string
variables must not be more than 40 characters long.

"+" is the only operator that can be used in character strings!

To avoid errors it is important to differentiate between character string variables and


numerical variables. The expressions:

"2"+"2"
and
2+2

are very different! In the first expression, two character strings are concatenated. The result
is the character string "22". In the second expression, the numbers 2 and 2 are added. The
result of this expression is the number 4.

The first object (number, function or character string) determines the type of expression. If
the first object in an expression is a number (or a variable V1 to V50) or a function such as
SIN, the expression is numerical. This means that this expression must not contain any
character strings. An error will occur if a character string variable or character string
constant is included in the expression!

If the first object in an expression is a character string variable (V51 to V60) or a character
string constant, it is understood that only character strings are to be concatenated in this

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 17


SINUMERIK 840C (PJ)
2. The Pocket Calculator 09.96
2.2.9. Character strings

expression. If a number or a numerical variable or a memory is then inserted, it is converted


to a character string and concatenated.
Example:

V1=2.5 : "Result:"+V1

Sequence of operation:
Variable V1 is assigned the value 2.5. This expression is numerical.
In the second expression the first object is a character string constant. The second object is
a numerical memory. Its contents are converted to a character string. The result of the
second expression is the character string:

"Result: 2.5000"

There are four blanks in front of the number 2!

The four blanks are the result of conversion format 10.4.


10.4 means that the character string resulting from the conversion of the numerical variable
is 10 characters long. Of these, 4 characters are reserved for the places after the decimal
point. This format can be changed with the function FOR.
Example:

V1=2.5 : FOR(3.1) : "Result:"+V1

The last expression now produces:

"Result:2.5"

If a numerical variable no longer fits into this format, question marks appear. The "largest"
format is 20.9. Specifying "larger" formats restores the default format 10.4.

In this context it is also important to note:


The expression:

"Test"+2*V1

is not allowed because the operation "*" is incorrect in a concatenation of character strings.
In this case, the partial expression 2*V1 is not calculated!

The result of the expression:

"Test"+2+V1

is produced from the concatenation of the character string "Test" with the character string
resulting from the conversion of the number 2 and the character string that results from the
conversion of the contents of variable V1. This expression is allowed. But in this case, too,
the partial expression 2+V1 is not calculated but interpreted as a character string and
appended to "Test"!

18  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.2.10 Character string variables as formulae

Another function also exists for formatting a value:

FMT("+ 0 4 . 2 0 <")

"<": Number left-justified, maximum length maintained


">": Number right-justified, maximum number maintained
Missing: Number left-justified, blanks filtered

Filler characters at end


Missing: Fill up with blanks if left-justified

0-9: Number of places after decimal point, obligatory

Separator between numbers before and after decimal point


Missing: No separator exists
Illegal characters: 0-9

Number of places before decimal point incl. sign,


obligatory
Filler character between sign and numberl
Missing: Sign directly in front of numberl
Fill up with blanks if right-justified
Illegal characters: 1-9

"+": Plus sign is also output


"-", Missing: only minus sign output

Text variables V51 - V60 can be used for specifying the numerical format:
|V51 = "6.30":FMT(V51):"X"+V1|

2.2.10 Character string variables as formulae

With the function MAC it is possible to incorporate a formula in an expression.


Example:

V51="2*V1^2+4*V1"

Once this assignment has been made, this character string can be included in numerical
expressions as follows:

V1=8 : MAC(V51)+10

In the first expression the variable V1 is assigned the value 8.


In the next expression, |MAC(V51)| is replaced by the contents of V51 by the formula
interpreter before the calculation is performed. In the example this |2*V1^2+4*V1+10| .

The brackets behind the MAC function can also contain a concatenation of character strings:

MAC(V51+V52+"*4")

The result of the expression in the brackets is then inserted in the text. The rules for
character string concatenation apply to expressions inside the brackets!

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 19


SINUMERIK 840C (PJ)
2. The Pocket Calculator 09.96
2.2.11 Logic functions and operators

If an error exists in the text to be inserted this is shown in the input text.

The function MAC can be used several times in one expression. Please note that the
maximum input buffer length of 80 characters which includes substitutions must not be
exceeded!

2.2.11 Logic functions and operators

The formula interpreter provides the following logic operators:

LESS THAN
Symbol: <

If the value of the partial expression to the left of the operator is less than that of the partial
expression to the right of the operator, the result is 1. Otherwise, the result is zero.
Example:

V1=4 : V2=8 : V1 < (V2+2*5)

V1 is less than the expression in brackets. The result is therefore 1.

GREATER THAN
Symbol: >

If the value of the partial expression to the left of the operator is greater than that of the
partial expression to the right of the operator, the result is 1. Otherwise it is 0.
Example:

V1=4 : V2=8 : V1 > (V2+2*5)

The result is zero because V1 is not greater than the expression on the right.

LESS THAN OR EQUAL TO


Symbol: ≤ (ASCII: 243)

If the value of the partial expression to the left of the operator is less than or equal to the
partial expression to the right of the operator, the result is 1, otherwise it is 0.
Example:

V1=4 : V2=2 : V1 ≤ (V2+2)

The result is 1 because both expressions have the same value.

GREATER THAN OR EQUAL TO


Symbol: ≥ (ASCII: 242)

If the value of the partial expression to the left of the operator is greater than or equal to the
partial expression to the right of the operator, the result is 1, otherwise it is 0.
Example:

V1=4 : V2=2 : (V1/2) ≥ (2*V2)

The expression on the right is greater than the one on the left, therefore the result is zero.

20  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.2.11 Logic functions and operators

NOT EQUAL TO
Symbol: ≠ (ASCII: 216)

If the values of the two expressions to the right and the left of the operator are not equal the
result is 1. If the values are equal, the result is zero.
Example:

V1=4 : V2=4 : V1 ≠ V2

The result is zero because both variables have the same value.

EQUIVALENT TO
Symbol: ≡ (ASCII: 240)

If the values of the two partial expressions to the right and the left of the operator are equal
the result is 1. If the values are not equal the result is zero.
Example:

V1=4 : V2=4 : V1 ≡ V2

The result is 1.

≡" with "=" for value assignments!


Do not confuse "≡

OR
Symbol: !

If at least one of the values of the partial expressions to the left or right of the operator is not
equal to zero, the result is 1. If both values are equal to zero the result is also zero.
Example:

V1=9 : V2=0 : V1 ! V2

One of the two values is not equal to zero, the result is therefore 1.

AND
Symbol: &

If the values of both expressions to the right and the left of the operator are not equal to
zero the result is 1. If one of the two values is equal to zero the result is also zero.
Example:

V1=9 : V2=0 : V1 & V2

Both values are not equal to zero, the result is therefore zero.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 21


SINUMERIK 840C (PJ)
2. The Pocket Calculator 09.96
2.2.11 Logic functions and operators

NOT
Symbol: NOT( )

If the argument of the function is equal to zero, the result of the function is 1. If the
argument is not equal to zero, the result is zero.

V1=9 : V2=8 : NOT(V1-1-V2)

The result of the function is 1 because the argument has the value zero.

Notes on use:

The comparison operators have a higher priority than the arithmetic operators.

It is therefore nearly always necessary to place the partial expressions for comparison in
brackets.

The following priority for the comparison operators applies:

Operators Priority

<,> Less than, greater than Low priority
≤,≥ Less than or equal to, greater than or equal to ↑
≡,≠ Equivalent to, not equal to
&,! And, or ↓
NOT Not functions High priority

String calculations can also be performed with the comparison operators. Where operator
sequences have the same priority they are performed from left to right. In the following
example, one of the effects of this is explained.
We are given the following expression:

V1=3 : V2=3 : V3=3 : V1 ≡ V2 ≡ V3

The result of this expression is zero. First of all, V1 is compared with V2. As both variables
have the same value, the result of the partial expression is 1. This result is compared with
the contents of the variables V3 (3). The values are not equal, therefore the result is zero!

Always consider whether chain calculations using comparison operators are practical in the
problem at hand. The problem above in which three numbers are being tested for
equivalence has to be solved with AND operations:

V1=3 : V2=3 : V3=3 : (V1 ≡ V2) & (V1 ≡ V3) & (V2 ≡ V3)

In this expression V1 is first compared with V2. The result of the comparison is 1. Then V1 is
compared with V3. This result is also 1. ANDing with the first result produces 1. Then V2 is
compared with V3, here the result is also 1. Combining the result with 1 from the previous
result produces the final result 1. The comparison has been performed successfully.

In this expression the brackets are obligatory because "≡" has a lower priority than "&".

22  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 2. The Pocket Calculator
2.2.12 Further information

2.2.12 Further information

• The constant PI is available for the number pi ( = 3.141592654).

• The calculator contains the value "NL" = not assigned for resetting variables.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 23


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.1 Structure of a screen form file

3. Screen Forms

Extensive text and numerical entries that might be needed, for example, for a certain
process, are managed in screen forms that are displayed by the system when the user
selects a function. The values entered, undergo a plausibility check before they are
transferred to the system, which then recognizes incorrect entries and indicates any
modifications that have to be made by a change in colour of the screen form field in
question.
These screen forms are pure ASCII files and can be edited. It is, for example, possible to
skip certain entries and instead always use permanent values in calculations.

All original screen forms (Siemens) that already exist in the system have the extension "009"
and are to be found in the path "/mmc.001/siem.069/wop.006/msks.007/deutsch.008"
(FlexOS) or
"\wop\t.006\msks.007\deutsch.008" (DOS).

The description in the sections below explains the basic structure of a screen form file.

3.1 Structure of a screen form file

A screen form file consists of:

- Instruction for the fields in the order of the screen form fields
- Screen form definition
- Repeat section
- End section
- End of screen form
- Text section

The individual screen form file elements are described in more detail below.

3.1.1 Instruction for the fields

In the screen form file identified by "# FIELD DESCRIPTION"


The order of the instruction sequences corresponds to the order of the input/output fields in
the screen form from left to right and from top to bottom.
The field numbers, file links, calculations, assignments etc. appear after the 1st "#" sign.

Structure of an instruction sequence:

Serial number of the instruction sequence


=
Field type
[Instruction]
&
[Instruction to be executed for display and print]
&
[Instruction to be performed when this field is exited]
;
"&": Separator
";": End identifier

24  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.1.1.1 Serial number

Example:

Definition of field Execution on initialization of screenform Execution on exiting ...

1 = -3 =V2 & : V2 & : 1 : $ (0, 0, 12)

... when cursor is positioned to field

... the field with cursor

1 Field number
= Keyword
-3 Field type (-3 = decimal number)
=V2 Assignment of the field contents to variable V2
& Keyword
:V2 Output V2 when editing/printing
& Keyword
:1 Execute instruction 1 when field is exited
:$(0,0,12) Delete screen form on the screen when the field is exited

For more examples see Section 3.2.

3.1.1.1 Serial number

The serial number of the instruction sequences starts at 1 and is incremented. It refers to
the screen form fields in the order left to right and from top to bottom.

A maximum of 99 instructions can be defined in a screen form file.

3.1.1.2 Field type

One of the following field types must be specified:

-1 .... Alphanumeric input field


-2 .... Integer -32736 to +32737
-3 .... Decimal number
-6 .... Integer * 4

-11 to -16:
If V1249 is specified (value 2 => inch system) the internal value of the assigned variables is
converted to inches for output and the value entered is converted back to mm for internal
storage.
-11 .... Alphanumeric input field
-12 .... Integer -32736 to +32737
-13 .... Decimal number
-16 .... Integer * 4

0 .... End of instruction for the fields

Type 0 instructions are not assigned to any field but are called from other instructions.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 25


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.1.1.3 Permissible instructions

3.1.1.3 Permissible instructions

=Vxx ... Assignment to a variable


=V5
The assignment to a variable must appear immediately after the field number.

:Vxx ... Output of and writing back(=storage on a change) variables


:V5
Outputs the variable V5.

:xx ... CALL instruction xx, fixed instruction number.


:4
Execute instruction 4 and continue in the previous instruction.

:vxx ... CALL instruction whose number is in variable Vxx.


:v3
Instruction number in variable 3

>xx ... GOTO instruction, fixed instruction number.


>7
Jump to instruction 7, execute it and continue from there.

>vxx ... GOTO instruction, whose number is in variable Vxx.


>v6
Jump to instruction whose number is in V6, execute it and continue
from there.

The following applies to both jump types:


If the instruction number is not permissible, e.g. 0, this jump instruction is ignored and the
next instruction is executed.

:|...| Pocket calculator call


:|V2=3+V1| Calculate V2

?...? Call text from the text section or the text file
Syntax as bar selection menu:
?
Textnr1, Textnr2, Textnr3, .....
, Position when function is called
, Position when function is exited
, Line of the top left corner of the selection menu
, Column of the top left corner of the selection menu
?

In correct syntax a minimum of 5 items of information are always specified within the two
"?".
One screen form can have a maximum of 200 such items of information. A maximum of 40
fields can therefore be filled with text information (40 * 5 = 200).

:$(...) Screen form exit


Syntax:
(
Text number
, Text number for exit condition
, Screen saver
)

26  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.1.1.4 Colour settings for the individual screen form fields

Text number: 0 -> Absolute exit from the screen form


>0 -> Number in the text section or text file, the name
of the file/screen form to be jumped to must be
included here.
Exit condition: 0 -> Normal case
>0 -> Text number containing the condition.
Screen saver: 0 -> Do not delete screen form on exiting.
12 -> Delete screen form on exiting.

The screen form exit instruction can only be in a line that contains an input field and is
executed when the return key is pressed (see Section 3.3 "Special variables").

3.1.1.4 Colour settings for the individual screen form fields

Colour changes are introduced by the single character "^" in the screen form definition
followed by the colour number.
This switchover applies until it is expressly reset again.

Permissible colour numbers are:

Number Text colour Text background



1 black blue
2 yellow black
3 red dark grey
4 bright yellow green
5 bright yellow black
6 yellow dark grey
7 black red
8 black bright yellow
9 black white
10 white brown (highlighted output)
11 black cyan (standard output fields)
12 brown black
13 white violet
14 white black
15 violet white
16 white dark grey
17 black light grey (standard screen form colour)
18 light grey dark grey

(applies to VGA/EGA )

The number "0" and values greater than "30" are of special significance. ^0 means that the
field in question is reset to the standard colour on every field output.
^30 means that as from now no more colour changes are to be executed.

Example:
Screen form definition

# FIELD DESCRIPTION

1 = -1 &:1 &:35^6:1^30;
...
35 = 0 ^0:1:2:3:4:5:6:7:8^30;
...

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 27


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.1.2 Screen form definition

When the first field has been exited, the colours of fields 1...8 are reset to the default values
(^0) (instruction 35), the first field is output in colour 6 according to the above list.
The colour conversion function is then deactivated again (^30).

3.1.2 Screen form definition

Indicated in the screen form file by "# SCREEN FORM DEFINITION"

Here, a description of what is to appear when the screen form is called is given. The
following symbols are used for defining the screen form (=keywords):

@ = Input field, length shown by ________.___


? = Output field only, is skipped when entries are made
$ = Block number according to index
* = Current date
\ = Entry for file name, file is read into a field
! = Initial and final identifier graphic output with numbers

The screen form is surrounded by a frame. The following characters are required for setting
the frame.

 = ASCII 179
 = ASCII 196
= ASCII 191
= ASCII 192
= ASCII 217
= ASCII 218
= ASCII 195
= ASCII 180

Fields that are used for output only are described by ?__________,
fields for input and output are described by @__________.
The length of the field is defined by the number of "_" and the preceding character.

The total number of characters in the screen form part must not exceed 2560.
Illegal characters are ignored.

3.1.3 Repeat section

Identified in the screen form file by "# REPEAT SECTION"


Is not used. However, the keyword must not be left out of the screen form file because the
screen form interpreter requires the correct number of "#".

3.1.4 End section

Identified in the screen form file by "# END SECTION"


Is not used. However, the keyword must not be left out of the screen form file because the
screen form interpreter requires the correct number of "#".

28  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.1.5 End of screen form

3.1.5 End of screen form

Identified in the screen form file by "# END OF SCREEN FORM"

3.1.6 Text section

Identified in the screen form by "# TEXT SECTION"

The text section is structured in the same way and has the same function as the general text
file. The general text file (/mmc.001/siem.069/wop.006/msks.007/deutsch.008/mars.009
(FlexOS) or \wop\t.006\msks.007\deutsch.008\mars.009 (DOS)) is made available to the
user and contains texts that can be addressed from any screen form.

The following can be included in the text section:

In the file Meaning



001:"No"! Output text
002:" Yes "! Output text
003:"Confirmation" Output text
004:"Abort"! Output text
005:! not assigned
006:! not assigned
007:(V50≠0) & (V49≡0)! Condition
008:! not assigned
009:"1200"! Output text
010:"2400"! Output text
011:"4800"! Output text
012:V52! Contents of the text variables are executed
013:$DIR *.*! Call DIR function
014:"TEXTFARB.009" Name of another screen form
015:! not assigned
016:"9600"! Output text
017:! End of the text section

When a text number is called a distinction is made regarding where the text is to be taken
from. If the text number is smaller or equal to the maximum text number in the text section
of the file, then this text is used. If the number is larger, the general text file is used.

3.2 Examples of instruction sequences

The above text file is used for text calls and definitions.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 29


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.2.1 Variable scans

3.2.1 Variable scans

4 = -2 =V5 &:V5:4 &:4;



4 ... Sequence of instructions : 4
-2 ... Field number/type : Integer
=V5 ... The value entered in the input field is assigned to variable V5.
&:V5:4 ... The new contents of variable V5 are displayed.
&:4 ... Instruction 4 is executed when the field is exited.
; ... End of instruction.

8 = -1 =V55 &:V55:8 &:8;



8 ... Sequence of instructions : 8
-1 ... Field number/type : Alphanumeric
=V55 ... The string entered in the input field is assigned to variable V55.
&:V55:8 ... The new contents of variable V55 are displayed.
&:8 ... Instruction 8 is executed when the field is exited.
; ... End of instruction.

3.2.2 Colour switchover

7 = -1 =V51 &^3:7^30;

7 ... Sequence of instructions : 7
-1 ... Field number/type : Alphanumeric
=V51 ... The string entered in the entry field is assigned to variable V51.
&^3 ... Switch over the colour to number 3 (black/grey).
:7 ... Execute instruction 7.
^30 ... Deactivate colour switchover.
; ... End of instruction.

3.2.3 Jump instructions

22 = ...
23 = ...
24 = 0 : >v48;

24 ... Sequence of instructions : 24
0 ... Field number/type : End of instructions
>v48 ... Jump to the line whose number is in variable 48.
; ... End of instruction.

30  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.2.4 Text calls

1 = -2 = V20 &:1 &:1:|V1=0:1/(V20>2000):V1=10|:v1:5;



1 ... Sequence of instructions : 1
-2 ... Field number/type : Integer
=V20 ... The value entered in the entry field is assigned to variable V20.
&:1 ... Execute instruction 1.
&:1 ... Execute instruction 1 when field is exited.
:||:v1 ... If condition V20>2000 is not correct, i.e. the result is zero, division by 0 will
cause an abort, i.e. no further pocket calculator instructions are executed.
:5 ... Execute instruction 5.
; ... End of instruction.

3.2.4 Text calls

The above text file is used for text calls/definitions.

10 = -1 ?3,1,1,1,1? &:10 &:|V50=13|:$(0,0,12);



10 ... Sequence of instructions : 10
-1 ... Field number/type : Alphanumeric
? ? ... Text definition
Only 1 text is called, "Confirm" is output. Assignment of the last 4 parameters
with 1 is only obligatory when there is only one text.
&:10 ... Instruction 10 is to be executed.
& ... When the field is exited:
:|V50=13| Set variable V50 to 13.
:$(0,0,12) Exit the screen form and delete the screen form on the screen.
; ... End of instruction.

10 = -1 ?V49,1,1,1,1? &:10 &:|V50=27|:$(0,0,0);



10 ... Sequence of instructions : 10
-1 ... Field number/type : Alphanumeric
? ? ... Text definition. Only 1 text is called, the number is to be found in V49.
&:10 ... Instruction 10 is to be executed.
& ... When the field is exited:
:|V50=27| Set variable V50 to 27
:$(0,0,0) Exit the screen form and delete the screen form on the screen
; ... End of instruction.

10 = -1 ?V1,1,1,1,1? &:|1/(v1≠1):V1=2|:10 &:|V1=(v1≡1)+1|:1;



10 ... Sequence of instructions : 10
-1 ... Field number/type : Alphanumeric
? ? ... Text definition. Only one text is called, the number is to be found in V1.
& ... If V1 is not equal to 1, the condition in brackets is true.
1/1 is possible, the next condition is therefore executed and V1 set to 2. Then
instruction 10 is executed and "Yes" is output.
If V1 is 1 the condition has not been fulfilled. The pocket calculator function is
aborted and text 1, i.e. "No", is output.
& ... If the field has been changed:
V1 is set to the result of condition V1≡1 plus 1.
; ... End of instruction.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 31


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.3 Special variables

6 = -1 ?9,10,11,16,V3,V4,7,10? &:6 &:6;



6 ... Sequence of instructions : 6
-1 ... Field number/type : Alphanumeric
? ? ... Text definition
Outputs the text depending on the value in variable V3.
V3 = 1 then text 9
V3 = 2 then text 10
V3 = 3 then text 11
V3 = 4 then text 16
If the PageUp key is now pressed a new screen form appears whose top left
corner is located in line 7, column 10. All 4 texts are listed one after the other in
this screen form. A text can be selected by selecting a field and V4 is inserted
at the position of the text in the list.
&:6 ... Instruction 6 is to be executed.
&:6 ... Instruction 6 is executed when the field is exited.
; ... End of instruction.

3.3 Special variables

A screen form is always exited using the ESCAPE key. This action sets variable V127 to
1BH (=ESC). This variable can then be evaluated in the program.

The name of the help screen form that can be called with F8 is specified in variable V1975.

The values of variables V747 and V748 control the exit behaviour of a screen form.

V747 = 0: No follow-on screen form with PgUp key


V748 = 0: Return key => Exits the screen form
V748 = 1: Return key =>
If available, displays the next screen form;
If not available the screen form is exited.

V747 = 1: Follow-on screen form with PgUp key


V748 = 0: Return key => Exits the screen form
V748 = 1: Return key=>
If available, displays the next screen form;
If not available the screen form is exited.

V747 = 2: Follow-on screen form with PgUp key


V748 = 0: Return key => Screen form is not exited
V748 = 1: Return key =>
If available, displays the next screen form;
If not available the screen form is exited.

If a screen form is exited, a check is made for remaining instructions to be executed in the
screen form by evaluating the value of variable V749. If this value is not equal to 0 it is
interpreted as the line number of the instruction that still has to be executed.

32  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.4 Screen form examples

3.4 Screen form examples

3.4.1 Introductory example

This section shows the structure and elements of a screen form by way of a simple
example.

@ = Input field, length indicated by ____


? = Output field only, skipped when entries are being made, length indicated by ____
#... = Individual screen form elements, sequence permanently fixed

# FIELDS FROM DATABASE


Name 1st axis 1=-1:?3? &:1;
Value 1st axis 2=-3 =V91 &:V91:2 &:2:$(0,0,12);
Name 2nd axis 3=-1:?4?&:3;
Value 2nd axis 4=-3 =V92 &:V92:4 &:4:$(0,0,12);
Name 3rd axis 5=-1:?5? &:5;
Value 3rd axis 6=-3 =V93 &:V93:6 &:6:$(0,0,12);
7= 0;

# SCREEN FORM DEFINITION

?_-Value @____.____
?_-Value @____.____
?_-Value @____.____

#repeat section
#end section
#end of screen form
#TEXT SECTION
1:!
2:!
3:V381!Z
4:V382!X
5:V383!Y

Explanation:

# FIELDS FROM DATABASE

A comment can be written in the instruction line in front of the line number.

Line 1: Field type "-1"; "?" => Alphanumeric output field, length 2
?3? => Text from line 3 in text section = Contents of V381
Line 2: Field type "-3"; "@" => >Input field decimal number; 5 places before,
4 places after the decimal point
=V91 => output value = Contents of V91
Lines 3,5 same as line 1
Lines 4,6 same as line 2
Line 7 Line number = 0; always the last instruction!

Numbering the individual lines consecutively is not obligatory but improves clarity. Each line
number must only appear once.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 33


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.4.2 Example following screen form/selection screen form

# SCREEN FORM DEFINITION

The number of lines between "#..." and screen form corresponds to the position of the
screen form on the screen
@ = Input field, 5 places before, 4 places after the decimal point
? = Output field, length 2

#TEXT SECTION

The texts listed in the text section, here the contents of V381, V382, V383, can be
addressed from the screen form. They are assigned by specifying the line number )("?3?" in
line 1).
An exclamation mark must be placed at the end of each line; each subsequent text is
interpreted as a comment.

3.4.2 Example following screen form/selection screen form

This section explains how following screen forms and selection screen forms are called by
way of an example.
In the screen form for contour milling "bahnbea.009" in the existing programming system
both types are used. In the example below, only the parts of the screen form that are
relevant to configuring the following screen form and selection screen form are listed and
explained.

...

# Field description

Tool no. 1 = -2 =V1 &|V40=V161|:40:21:V1;


...

Cutt. val. form 3 = -1 ?1?:69 &:3 &:3:50:$(15,0,12);

...

Interpretation 7 = -1 ?8,9,10,11,V4,V4,5,2?:68 &:7 &:7:64:$(0,0,12);

...

Init 40= 0|V30=11:V31=11:V32=11|:41:|V25=42:1/V161:V25=43|:v25;


Basic init 41= 0 |FOR(8.02):V1=MAC(V399):FOR(3.02):V2=V826|:|V747=1:V748=0:V749=50|;

New 42=0|V981=V1100:V50=1:V161=1:V837=1:V1011=1:V3=V1115:V4=V1116|:|V25=1116+V4:V5=VV25:1/(V4ð4):
V5=V5+V1010|:64:44;

Edit 43= 0 |V3=V779:V4=V927:V5=V814|:64:55;

Init approach 44= 0 |V752=V1118:V870=V1125:V871=V1126*V401:V872=V1127*V401|:45;


45= 0 |V873=V1128:V874=V1129:V875=V1130|:46;
Init retract. 46= 0 |V760=V1119:V876=V1131:V877=V1132*V401:V878=V1133*V401|:47;
47= 0 |V879=V1134:V880=V1135:V881=V1136|:48;
Init machining 48= 0 |V6=V1001:V7=V1002:V8=0:V9=V419:V10=V1164:V11=0|:|V92=V1163*3-1:V97=V1160-1:V100=0|:49;
49= 0|V101=0:V105=0:V106=9*SGN(3-2*V1165):V108=V1161-1:V109=(V1162-1)*3:V110=0:V111=0:V112=0|:51;

Save 50= 0 |V779=V3:V927=V4:V814=V5:V30=22|:60;


Init machining 51= 0 |V113=0:V114=0:V115=0|;
52= 0;
53= 0;
54= 0;

34  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.4.2 Example following screen form/selection screen form

Edit 55= 0 |V6=V1001-V95|:|V7=V6-V96-V46|:|V8=V93|:|V9=V99|:|V10=V94+1|;


56= 0;
57= 0;
58= 0;
59= 0;
Save 60= 0;|V93=V8:V96=V6-V7-V46:V94=V10-1:V95=V1001-V6:V99=V9:V91=NL|:|1/(V96<V99):V99=V96|:61;
61= 0 |V100=V752:V105=V760|;
62= 0;
63= 0;
64= 0 |V61="####.####":1/(V4>2):FOR(9.4):V61=V5|:V61;
...
69= 0 |V1975="..\help\bild063.pcx"|;
...

# Screen form

Contour milling

T No?________ D No?___ @____________

Insert block: @____ / @____ Machining

Approach/Retract strategy
To 1st starting point: @___
@_________________ ? axis: @____.____
?____________ @_______________________
?____________ @_______________________

Starting plane PS @____.____


Final plane PE @____.____
Allowance contour AC @____.____
Allowance base AB @____.____
Infeed depth IF @____.____
Tool position TP @__________
@__________

# End of screen form


#
#
# Text section
001:"Cutting values"!

...

008:"Withdrawal dist. CR"!


009:"Safety clearance CT"!
010:"Approach dist. DS"!
011:"Safety plane SP"!
...

015: "..\masken\schnittw.009"!
...

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 35


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.4.2 Example following screen form/selection screen form

Initialization:

The first field is an output field and is relevant to the following screen forms in that it is from
here that the instructions for initializing the screen form are called. The variables that control
the exit behaviour are initialized from instruction 40, for example:
V747=1; V748=0 => Following screen form with PgUp, exit the screen form with RETURN.
V749=50 => Execute instruction 50 on exiting the screen form.

After these initializations a decision is made as to whether the screen form has been called
again, i.e. whether a new keyword is to be placed in the geometry or whether it is merely a
repeated call within a keyword that has already been placed.
For this, variable V161 is used: V161=0 => new keyword.

... |V25=42:1/V161:V25=43|:v25;

On division by 0 the pocket calculator is aborted. Depending on the value that V25 contains
after the pocket calculator call either instruction 42 (initialization for new call) or instruction
43 (initialization for editing) is called. The entire initialization is listed in small print so that it
can all be included but will not be explained in any more detail here.

Following screen form:

3 = -1 ?1?:69 &:3 &:3:50:$(15,0,12);

Field 3 is defined an alphanumeric input field ("-1") in which text 1 of the text section is
output ("?1?").

001:"Cutting values"!

The help screen form is defined in instruction 69.


Instruction 50 will definitely be executed when the field is exited (Save variables).
If the cursor is positioned in field 3 and the PgUp key is pressed the screen form that is
defined in the text section under 15 will be displayed ("$(15,0,12").

015: "..\screen_forms\cuttingv.009"!

If the same working variable is used in a following screen form for internal calculation as in
the screen form calling this screen form, the values of the calling screen form are
overwritten! The same of course applies to all other variables.

To ensure that no data are overwritten the following screen forms should contain
working variables different from those in the calling screen form.

RETURN exits the screen form

Selection screen form:

7 = -1 ?8,9,10,11,V4,V4,5,2?:68 &:7 &:7:64:$(0,0,12);

Field 7 is also defined as an alphanumeric input field ("-1"). However, a text which is
determined by the value in V4 is output in this field.

36  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.5 Operating the screen forms

V4 = 1 then text 8 of text section


V4 = 2 then text 9 of text section
V4 = 3 then text 10 of text section
V4 = 4 then text 11 of text section

If the cursor is now positioned in field 7 and the PageUp key is pressed, a selection screen
form whose top left corner lies in line 5, column 2. All 4 texts are listed one after the other in
this screen form. A text can be selected by selecting a field and V4 is placed on the position
of the text in the list.

RETURN exits the screen form.

3.5 Operating the screen forms

Help:
If a small green "i" is displayed in the menu item bottom left this means that a help screen
form can be called up with function key shift F1.

The menu items of the horizontal softkey bar can be selected with function keys F3 to F9,
the menu items of the vertical softkey bar can be selected with SHIFT F3 to SHIFT F9

The action of the keys when they are operated from a screen form are explained below. The
key designations refer to the MF2 keyboard, a conversion table for the operator panel is
given in the Appendix.

Key Function


PageUp: If a following screen form exists for the current field, it is displayed.

↵: With RETURN the contents of the screen form are stored and the screen form
is exited.

ESC: The function is aborted with ESCAPE, the screen form is exited without saving
any values that have already been entered

HOME: Jumps to the first input field in the screen form.

END: Selects the previous input field. If the first field is selected the cursor jumps
back to the last field in the screen form.

PageDown: Selects the next input field. If the last field is selected the cursor jumps to the
first field in the screen form.

Ð: Jump to next field.

Ï: Jump to previous field.

Í/Î: Within one input field: Cursor on column to the left/right.

Õ/DEL: Within one input field: Delete character to the left of cursor/delete character on
cursor position.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 37


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6 Existing screen form files

3.6 Existing screen form files

3.6.1 Screen forms for milling

The screen form files for the milling system that already exist are listed below:

File name Screen form




100.009 Tool description end mill


1000.009 Tool description circular mill
200.009 Tool description face cutter
600.009 Tool description centre drill
2700.009 Tool description drill
2800.009 Tool description regular thread drill
2900.009 Tool description counterbore
300.009 Tool description angle cutter
3000.009 Tool description countersink
3100.009 Tool description reamer
3200.009 Tool description boring rod 1
3300.009 Tool description boring rod 2
3400.009 Tool description boring rod 3
3500.009 Tool description boring rod 4
3600.009 Tool description twist drill
3700.009 Tool description solid drill
3800.009 Tool description fine thread drill
3900.009 Tool description Whitworth thread drill
400.009 Tool description face and circular milling cutter
4000.009 Tool description counterbore with pilot
500.009 Tool description 2-fluted end mill
600.009 Tool description T-slot mill
700.009 Tool description right-angle cutter ( 90 degrees )
800.009 Tool description angle cutter
900.009 Tool description side milling cutter

abf1.009 Approach for end milling


abf2.009 Lift for end milling
abk1.009 Approach to contour
abk2.009 Retract from contour

abskoor.009 Define coordinates (3 axes)


abspkt.009 Absolute point (X,Y)
abv1.009 Lower for solid milling
abv2.009 Lift for solid milling
afktm.009 Insertion blocks
awm.009 User screen form

b_ausb1.009 Boring 1 L85 (call from drilling)


b_ausb2.009 Boring 2 L86 (call from drilling)
b_ausb3.009 Boring 3 L87 (call from drilling)
b_ausb4.009 Boring 4 L88 (call from drilling)
b_ausb5.009 Boring 5 L89 (call from drilling)
b_senk.009 Drilling/sinking L82
b_tap.009 Tapping L84
b_tbohr.009 Deep hole drilling L83
b_zent.009 Drilling/centering L81

38  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.1 Screen forms for milling

bahnbea.009 Profiling
bahnstra.009 Strategy for path milling
beaman.009 Manual milling
bozyk.009 Drilling cycles
config.009 Select machine type, workpiece
eilo.009 Single-hole drilling (geometry)
ewm.009 Change plane
fase.009 Chamfer
fktpost.009 Functions after machining
fktpre.009 Functions before machining
flaebea.009 End milling parallel to contour
flaebeaa.009 End milling paraxial
fraes.009 Milling

info.009 General information


konueb.009 Global contour transitions
l81.009 Drilling/centering L81 (call from macro)
l82.009 Drilling/sinking L82 (call from macro)
l83.009 Deep hole drilling L83 (call from macro)
l84.009 Tapping L84 (call from macro)
l85.009 Boring 1 L85 (call from macro)
l86.009 Boring 2 L86 (call from macro)
l87.009 Boring 3 L87 (call from macro)
l88.009 Boring 4 L88 (call from macro)
l89.009 Boring 5 L89 (call from macro)
l901.009 Milling/slot L901
l902.009 Milling/elongated hole L902
l903.009 Rectangular pocket L903
l904.009 Milling/circular slot L904
l906.009 Drilling row of holes L906
l930.009 Circular pocket L930

laygenm1.009 Plane definition


laygenm2.009 Plane definition

magazin.009 Master data/load magazine


Macro.mks Macro variable

n3achsen.009 Axis designations


n3aeqein.009 Parallel contour
n3ansfen.009 Window views
n3cirein.009 Circle
n3cslein.009 Circular slot
n3eckein.009 n-corner
n3eldopp.009 Error message
n3error.009 Error message
n3fartxt.009 Colours for menus and screen forms
n3graauw.009 Graphics display
n3grafar.009 Colours for graphic output
n3gummas.009 Absolute scale transformation
n3gumpma.009 Scale transformation in percent
n3gumrov.009 Rotate and move
n3gumspi.009 Mirroring
n3gumusp.009 Reverse mirroring
n3input.009 General variable scan
n3jnfrag.009 General request
n3laytp1.009 Free plane definition
n3laytp2.009 Peripheral surface definition

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 39


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.1 Screen forms for milling

n3lloein.009 Elongated hole


n3mat.009 Material designations
n3nnpein.009 Zero offset
n3pfade.009 General setup
n3raster.009 Enter display grid
n3recein.009 Rectangle
n3remein.009 Enter comment text
n3rslein.009 Radial slot
n3simein.009 Simulation mode
n3syntax.009 Syntax error message
n3tool1.009 Tool description
n3vorlag.009 Search patterns for the file names
n3warnen.009 Error message
neuname.009 Name of new workpiece

pa.009 Program start


pausbl.009 Skip blocks
pe.009 End of program
pgbox.009 Point pattern
pgein.009 Single point
pgkrs.009 Point-circle
pglin.009 Point-line

radius.009 Absolute value radius

s3anfp.009 Cartesian starting point


s3bohrun.009 Holes (general data)
s3error.009 Error message
s3ganfp.009 Cartesian starting point
s3fenein.009 Window size
s3gera.009 Cartesian straight line
s3ggera.009 Cartesian straight line
s3gkreis.009 Cartesian arc
s3instie.009 Contour (general data)
s3instim.009 Contour
s3kreis.009 Cartesian arc
s3nutbre.009 Slot (general data)
s3panfp.009 Polar starting point
s3pganfp.009 Polar starting point
s3pgera.009 Polar straight line
s3pggera.009 Polar straight line
s3pgkrei.009 Polar arc
s3pkreis.009 Polar arc
s3punkte.009 Points (general data)
s3rohhoe.009 Blank (general data)
s3warnen.009 Error message
s3xy.009 New construction zero

schnittw.009 Cutting value screen form for all types of machining


techno.009 Cutting value screen form for tool input
trdat.009 Log file selection
v3filer.009 File access via DOS name
vari.009 Variable display
verklein.009 Decrease/increase cutout
volbea.009 Solid milling parallel to contour
volbeaa.009 Solid milling paraxial
volstra.009 Strategy for solid milling parallel to contour
volstraa.009 Strategy for solid milling paraxial

40  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.2 Screen forms for turning

winkel.009 Absolute value angle


wkzdat.009 General tool data
wkzm.009 Tool type

xgeo1.009 Cartesian/polar point definition


xgeo10.009 Message
xgeo2.009 Clearance
xgeo3.009 Cartesian/polar straight line definition
xgeo4.009 Clearance
xgeo5.009 Angle
xgeo6.009 Circle
xgeo7.009 Radius
xgeo8.009 Radius
Xgeo9.009 Radius difference

3.6.2 Screen forms for turning

File name Contents



100.009 Tool description end mill
1000.009 Tool description circular mill
200.009 Tool description face cutter
2650.009 Tool description centre drill
2750.009 Tool description drill
2850.009 Tool description regular thread drill
2950.009 Tool description counterbore
300.009 Tool description angle cutter
3050.009 Tool description countersink
3150.009 Tool description reamer
3250.009 Tool description boring rod 1
3350.009 Tool description boring rod 2
3450.009 Tool description boring rod 3
3550.009 Tool description boring rod 4
3650.009 Tool description twist drill
3750.009 Tool description drill
3850.009 Tool description fine thread drill
3950.009 Tool description Whitworth thread drill
400.009 Tool description face and circular milling cutter
4050.009 Tool description counterbore with pilot

408.009 Stock removal segment beginning


409.009 Stock removal segment end
413.009 Longitudinal roughing
414.009 Face roughing
417.009 Longitudinal finishing
418.009 Face finishing
423.009 Stock removal parameters longitudinal/face finishing paraxial
424.009 Stock removal parameters longit./face roughing parallel to contour
425.009 Stock removal parameters longitudinal/face roughing paraxial
427.009 Longitudinal thread
428.009 Face thread cutting
429.009 Taper thread cutting
431.009 Stock removal parameters threading
432.009 Longitudinal grooving
433.009 Face grooving

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 41


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.2 Screen forms for turning

434.009 Parting
435.009 Stock removal parameters felt-ring recess machining general
436.009 Stock removal parameters felt-ring recess machin. rough grooving
437.009 Stock removal parameters cut-off machining
438.009 Stock removal parameters groove machining general
439.009 Stock removal parameters groove machining rough grooving
440.009 Stock removal parameters thread undercutting general
441.009 Stock removal parameters thread undercutting rough grooving
445.009 Stock removal parameters finish countersinking
446.009 Stock removal parameters contour grooving longitudinal/face
447.009 Stock removal parameters contour grooving finish. longit./face

500.009 Tool description 2-fluted end mill


5000.009 Rough turning tool
5300.009 Copy turning tool
5600.009 Turning tool (button tool)
5900.009 Grooving tool offset
600.009 Tool description T-slot mill
6100.009 Grooving tool straight
6500.009 Thread cutting
700.009 Tool description right-angle cutter ( 90 degrees )
800.009 Tool description angle cutter
900.009 Tool description side milling cutter

abf1.009 Approach for end milling


abf2.009 Lift for end milling
abk1.009 Approach to the contour path machining
abk2.009 Retraction from the contour path machining
abk408.009 Approach to the contour threading
abk409.009 Retraction from the contour threading
abskoor.009 Define coordinates (3 axes)
abspkt.009 Absolute point (X,Y)
abv1.009 Lower for solid milling
abv2.009 Lift for solid milling
afktm.009 Insertion blocks milling
afktt.009 Insertion blocks turning

back1a.009 Chuck jaw 1 step outside


back1i.009 Chuck jaw 1 step inside
back2a.009 Chuck jaw 2 step outside
back2i.009 Chuck jaw 2 step inside
back3a.009 Chuck jaw 3 step outside
back3i.009 Chuck jaw 3 step inside

bahnbea.009 Profiling
bahnstra.009 Strategy for profiling
beaman.009 Manual milling
b_ausb1.009 Boring 1 L85 (call from drilling)
b_ausb2.009 Boring 2 L86 (call from drilling)
b_ausb3.009 Boring 3 L87 (call from drilling)
b_ausb4.009 Boring 4 L88 (call from drilling)
b_ausb5.009 Boring 5 L89 (call from drilling)
b_senk.009 Drilling/sinking L82
b_tap.009 Tapping L84
b_tbohr.009 Deep hole drilling L83
b_zent.009 Drilling/centering L81
cfrein.009 Blank from finished part
config.009 Select machine type, workpiece

42  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.2 Screen forms for turning

ebw.009 Plane selection


fang_rad.009 Catch radius for contour selection
fase.009 Chamfer
fktpostm.009 Functions after machining milling
fktpostt.009 Functions after machining turning
fktprem.009 Functions before machining milling
fktpret.009 Functions before machining turning
flaebea.009 End milling

fl_dia.009 Felt-ring recess diameter (geometry)


fl_diaf.009 Felt-ring recess diameter (geometry)
gew_cone.009 Thread cutting (geometry)
gew_geo.009 Thread cutting (geometry)
gwff_dia.009 Thread undercut (geometry)
gwfs_dia.009 Thread undercut (geometry)

info.009 General information


konueb.009 Global contour transitions
laygen1.009 Plane definition face end
laygen2.009 Plane definition peripheral surface
laygen3.009 Plane definition free
magazin.009 Load master data/magazine

n3achsen.009 Axis designations


n3aeqein.009 Parallel contour
n3ansfen.009 Window views
n3cirein.009 Circle
n3cslein.009 Circular slot
n3eckein.009 n-corner
n3eldopp.009 Error message
n3error.009 Error message
n3fartxt.009 Colours for menus and screen forms
n3graauw.009 Graphics display
n3grafar.009 Colours for graphic output
n3gummas.009 Absolute scale transformation
n3gumpma.009 Scale in percent transformation
n3gumrom.009 Offset and turning
n3gumrot.009 Copy and offset
n3gumrov.009 Rotate and move
n3gumspi.009 Mirroring
n3gumusp.009 Reverse mirroring
n3hohlzy.009 Hollow cylinder
n3input.009 General variable scan
n3jnfrag.009 General request
n3layei1.009 Layer input side selection
n3layei2.009 Layer input plane definition
n3layei3.009 Layer input plane definition
n3lloein.009 Elongated hole
n3mat.009 Material designations
n3nnpein.009 Zero offset
n3pfade.009 General setup
n3raster.009 Enter display grid
n3recein.009 Rectangle
n3remein.009 Enter comment text
n3rslein.009 Radial slot
n3simeic.009 Simulation mode C axis machining
n3simein.009 Simulation mode
n3simeit.009 Simulation mode

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 43


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.2 Screen forms for turning

n3syntax.009 Syntax error message


n3tool1.009 Tool description
n3vollzy.009 Solid cylinder
n3vorlag.009 Search patterns for the file names
n3warnen.009 Error message
n3xyfrag.009 Move chuck
n3zylein.009 Solid cylinder

neuname.009 Name of new workpiece


pa.009 Program start
pausbl.009 Skip blocks
pe.009 End of program
pgbox.009 Point pattern
pgein.009 Single point
pgkrs.009 Point-circle
pglin.009 Point-line
pinolel.009 Sleeve definition
radius.009 Absolute value radius

s3anfp.009 Cartesian starting point


s3bohrun.009 Holes (general data)
s3einst.009 Grooves without transitions (general data)
s3einst1.009 Grooves with transitions
s3einst2.009 Grooves with transitions
s3einstu.009 Grooves with transitions
s3error.009 Error message
s3fenein.009 Window size
s3freis1.009 Enter undercuts
s3freist.009 Enter undercuts
s3ganfp.009 Enter Cartesian starting point
s3geinst.009 Grooves
s3gera.009 Cartesian straight line
s3gewfr.009 Enter thread undercuts
s3gewin1.009 Enter threads
s3gewin2.009 Enter threads
s3ggera.009 Cartesian straight line
s3ggewfr.009 Enter thread undercuts
s3gkreis.009 Cartesian arc
s3instie.009 Contour (general data)
s3instim.009 Contour
s3instit.009 Contour
s3kreis.009 Cartesian arc
s3nutbre.009 Slot (general data)
s3panfp.009 Polar starting point
s3pganfp.009 Polar starting point
s3pgera.009 Polar straight line
s3pggera.009 Polar straight line
s3pgkrei.009 Polar arc
s3pkreis.009 Polar arc
s3punkte.009 Points (general data)
s3rohhoe.009 Blank (general data)
s3warnen.009 Error message
s3xy.009 New construction zero

schnwm.009 Cutting value screen form for all drilling/milling operations


schnwt.009 Cutting value screen form for all turning operations
spadat.009 General chucking data
stirnmit.009 Face driver

44  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.2 Screen forms for turning

strat419.009 Strategy for longitudinal/face finishing paraxial


strat424.009 Strategy for longitudinal/face roughing parallel to contour
strat425.009 Strategy for longitudinal/face roughing paraxial
strat431.009 Strategy for thread
strat435.009 Strategy for felt-ring recess
strat436.009 Strategy for felt-ring recess rough grooving
strat437.009 Strategy for parting
strat438.009 Strategy for groove
strat439.009 Strategy for groove rough grooving
strat440.009 Strategy for thread undercut
strat441.009 Strategy for thread undercut
strat446.009 Strategy for contour grooving
strat447.009 Strategy for longitudinal/face finishing parallel to contour

st_dia.009 Grooving diameter (geometry input)


st_diaf.009 Finish grooving diameter (geometry input)
st_plan.009 Face grooving (geometry input)
st_planf.009 Finish face grooving (geometry input)
techno.009 Cutting value screen form for tool input
trdat.009 Select log file
trdel.009 Delete log file
v3filer.009 File access via DOS name
vari.009 Variable display
verklein.009 Decrease/increase cutout
volbea.009 Solid milling
volstra.009 Strategy for Solid milling
winkel.009 Absolute value angle
wkzdat.009 General tool data
wkzt.009 Tool type
wwp.009 Tool change point
wwp_pe.009 Tool change point end of program

xgeo1.009 Cartesian/polar point definition


xgeo10.009 Message
xgeo2.009 Clearance
xgeo3.009 Cartesian/polar straight line definition
xgeo4.009 Clearance
xgeo5.009 Angle
xgeo6.009 Circle
xgeo7.009 Radius
xgeo8.009 Radius
xgeo9.009 Radius different

zb_ausb1.009 Boring 1 (concentric)


zb_ausb2.009 Boring 2 (concentric)
zb_ausb3.009 Boring 3 (concentric)
zb_ausb4.009 Boring 4 (concentric)
zb_ausb5.009 Boring 5 (concentric)
zb_senk.009 Drilling/sinking (concentric)
zb_tap.009 Tapping (concentric)
zb_tbohr.009 Deep hole drilling (concentric)
zb_zent.009 Drilling/centering (concentric)
zylein.009 Cylinder

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 45


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.3 Help screens for milling

3.6.3 Help screens for milling

Each screen form displays the menu (horizontal softkey bar) from which it is called.
The numbers in the file names indicate the softkeys in the basic menu that have to be
pressed to reach the stated menu.
Example:
h21.009 Pressing softkey 2 (geometry) and softkey 1 (Create new) takes you to menu:
Blank Contour Slot Holes Cycles
ref. pt.

h0.009
Tools Geometry Machining
material

h1.009
Master data Material
magazines data

h11.009
Load New Save Load Save Tool
magazine magazine magazine master dat. master dat.

h117.009
New Copy Modify Delete
tool tool tool tool

h14.009
Modify Save
workp. list workp. list

h2.009
Create Edit Delete Copy Part Curr. geo
new geometry ref. pt.

h21.009
Blank Contour Groove Holes Cycles
Ref pt.

h211.009
Rectangle Circle n-corner

h21111.009
Point Line Circle Row of Circle of Point Any point
points points box pattern

h211117.009
Edit New Delete
parameter element element

h2114.009
Const.geo Create Transition Modify Abort OK
elements cont. def. elements cont. def.

46  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.3 Help screens for milling

h21143.009
Chamfer Rounding Delete
transition

h212.009
Oriented Edit Form- Cylinder Abort OK
geometry elements elements

h2121.009
Line Line Line Line Line Arc Arc
right left up down any left ccw right cw

h2122.009
Modify Delete Select
element element variant

h213.009
Elong. hole Rectang. Annular n-corner Groove Radial slot C. groove
groove groove groove geo: Any

h214.009
Single Row of Circle of Hole Any
hole holes holes box pattern

h2145.009
Const. geo Define Edit Abort OK
elements pattern pattern

h215.009
Single Row of Circle of Point Any point
point points points box pattern

h24.009
Move Mirror Reverse Scale Parallel
Rotate mirror contour

h26.009
Store Load
part geo. part geo.

h4.009
Milling Drilling Machining Machine/ Insert Machining Create
cycles aux fct. block (DIN) Simulation NC prog.

h41.009
Tool Contour Solid Manual Surface
selection milling milling milling milling

h42.009
Centre Counter- Deep Thread Bore
Drill sink hole to DIN

h421.009
Tool Value
selection input

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 47


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.3 Help screens for milling

h422.009
Tool Value
selection input

h423.009
Tool Value
selection input

h424.009
Tool Value
selection input

h425.009
Bore 1 Bore 2 Bore 3 Bore 4 Bore 5

h4251.009
Tool Value
selection input

h4252.009
Tool Value
selection input

h4253.009
Tool Value
selection input

h4254.009
Tool Value
selection input

h4255.009
Tool Value
selection input

48  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.3 Help screens for milling

Following help screens:

Many of the help screens have additional help screens that provide more detailed
information. These help screens are listed below together with the help screens from which
they can be called.

Following help screen: Called from:



hf1.009 h0.009, h14.009
hf11.009 h1.009
hf111.009 h11.009
hf1114.009 h213.009
hf113.009 h11.009
hf114.009 h11.009
hf115.009 h11.009
hf117.009 h11.009
hf1171.009 h117.009
hf1172.009 h117.009, h11.009
hf1173.009 h117.009
hf14.009 h1.009
hf2.009 h0.009
hf21.009 h21.009
hf211.009 h21.009
hf211117.009 h21111.009
hf2114.009 h211.009
hf21141.009 h2145.009, h2114.009
hf213.009 h21.009
hf214.009 h21.009
hf2145.009 h214.009, h215.009
hf215.009 h21.009
hf2.009 h0.009, h14.009
hf24.009 h2.009
hf26.009 h2.009
hf3.009 h24.009
hf4.009 h0.009
hf41.009 h4.009
hf411.009 h43.009, h41.009
hf412.009 h41.009
hf413.009 h41.009
hf414.009 h41.009
hf415.009 h41.009
hf42.009 h4.009
hf421.009 h425.009, h42.009
hf425.009 h42.009
hf43.009 h4.009
hf432.009 h43.009
hf46.009 h4.009
hfgraf.009 h21111.009, h11111.009

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 49


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.4 Help screens for turning

3.6.4 Help screens for turning

Each screen form displays the menu (horizontal softkey bar) from which it can be called.
The letters in the file name indicate the softkeys that have to be pressed in the basic menu
to call up that menu.
Example:
h21.009 Pressing softkey 2 (Geometry) and softkey 1 (Create new) takes you to menu:
Blank Finished
part

h0.009
Tools Geometry Machining
material

h1.009
Master data Material
magazines data

h11.009
Load New Save Load Save Tool Workholder
magazine magazine magazine master dat. master data.

h116.009
New Copy Modify Delete
tool tool tool tool

h117.009
Workholder Copy Modify. Delete
new workholder workholder workholder
h14.009
Modify Save
mat. list mat. list

h2.009
Create Edit Delete Copy Curr. geo
new contour ref. pt.

h21.009
Blank Finished
part

h211.009
Oriented Edit Form Cylinder Abort OK
geometry elements elements

h2111.009
Line Line Line Line Line Arc Arc
right left up down any left ccw right cw

h2112.009
Modify Delete Select
element element variant

50  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 3. Screen Forms
3.6.4 Help screens for turning

h2113.009
Recess Undercut Thread Thread
undercut

h3.009
Clamping Turning Drill Fct. w/o Insert Machining Create
concentric ref. point block (DIN) simulation part prog.

h31.009
Chuck Move Deactivate
select.

h32.009
Roughing Finishing Thread Grooving
cutting

h321.009
Tool Longit. Face
selection roughing roughing

h322.009
Tool Longit. Face
selection fin. cut finishing

h323.009
Tool Longit. Facing Taper
selection thread thread thread

h324.009
Standard Thread Cut-
recess undercut off

h3241.009
Tool Rough Rough/fin. Finish
selection grooving grooving grooving

h3243.009
Tool Rough Rough/fin. Finish
selection grooving grooving grooving

h3244.009
Tool Value
selection input

h33.009
Centre Counter- Deep Thread Bore
sink hole to DIN

h335.009
Bore 1 Bore 2 Bore 3 Bore 4 Bore 5

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 51


SINUMERIK 840C (PJ)
3. Screen Forms 09.96
3.6.4 Help screens for turning

Following help screens:

Many of the help screens have additional help screens that provide more detailed
information. These help screens are listed below together with the help screens from which
they can be called.

Following help screen: Called from:



hf1.009 h0.009
hf11.009 h1.009
hf1116.009 h11.009
hf1117.009 h11.009
hf1161.009 h116.009
hf1162.009 h116.009
hf1163.009 h116.009
hf1171.009 h117.009
hf1172.009 h117.009
hf1173.009 h117.009
hf14.009 h1.009

hf2.009 h0.009
hf21.009 h2.009
hf211.009 h21.009
hf2111.009 h211.009
hf21118.009 h2111.009
hf2112.009 h211.009
hf2113.009 h211.009

hf3.009 h0.009
hf31.009 h3.009
hf311.009 h31.009
hf32.009 h3.009
hf321.009 h32.009
hf3212.009 h321.009
hf3213.009 h321.009
hf322.009 h32.009
hf3222.009 h322.009
hf3223.009 h322.009
hf323.009 h32.009
hf324.009 h32.009
hf3241.009 h324.009
hf32412.009 h3241.009
hf32413.009 h3241.009
hf32414.009 h3241.009
hf3242.009 h324.009
hf3243.009 h324.009
hf3244.009 h324.009
hf33.009 h3.009
hf331.009 h335.009, h33.009
hf335.009 h33.009

52  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 4. Macros
4.1 The task of macros

4. Macros
4.1 The task of macros

The user can modify macros defined by Siemens to suit his own requirements and generate
user-defined macros that perform is own functions.
Macros are triggered by two different program branches, Program creation/Graphics and NC
block generation. They therefore also have to fulfil different requirements: visualization on
the screen (graphics macros) and the generation of NC blocks (NC macros).
All macros of the same type are combined in one file. There is therefore one graphics file
(grafik.035 or oemgrafik.032) and one NC macro file (ncmac.032 or oemncmac.032).
Separate macro files exist for the milling and turning systems. The macro from the graphics
file is used for visualization on the screen and the macro of the same name in the NC file is
used for NC block generation.
For example, a tapping cycle can be called in the NC macro for a thread and the
corresponding graphics macro either generates a simple line or a "screw" with the correct
diameter and required depth.
The current data of the current travel movement are made available to the macros when
they are to be executed via variables by the basic system.
Screen forms can also be called up from the macros.

4.2 Macro syntax

4.2.1 General rules

The macros (graphics macros and NC macros) are stored in ASCII files. These files can be
edited. The operating system editor "EDITOR" is described in Section 1.3.2.

Macro names:

Each macro is given a name by which it is identified. This name consists of three characters
plus one end character.

The following end characters can be used:

: (colon) Macro displayed in selection requester


(in the case of WOP: Selection display for
functions with reference point),
Macro can be edited in program steps
(contour selection necessary).
E.g.: customized pocket milling cycle

; (semicolon) Macro not displayed in selection requester,


Macros must not be edited.
=> for macros that perform calculations only

. (full stop) Macro not displayed in selection requester,


Macro can be edited.

' (single quotation mark) Macro displayed in selection requester,


Macros without geometry can be edited.
E.g.: user-defined switching function

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 53


SINUMERIK 840C (PJ)
4. Macros 09.96
4.2.1 General rules

A name can only occur once in a macro file.

Both macro files must contain the same name!

To avoid using the same name twice for macros, the end user should start every new macro
name for any expansions with X, Y or Z as these letters have not yet been used.

The end of a macro is


• the beginning of a new macro (i.e. the next line with a name) or
the end of the file.

Selection requester:

A selection requester is a selection screen form that can be called in the program and which
lists the various macros (e.g. different drilling cycles).

Triple macro:

A triple macro consists of a starting macro, jump macro and end macro. A triple macro must
only be defined for machining operations. The starting macro is used to defined the
approach movement to the point where the machining operation is to be performed, the
jump macro bridges any gaps and the end macro defines the retraction movement.

018:Approach to contour
starting macro
018;Bridging of any discontinuities
jump macro
018;Retraction from contour
End macro

The system detects which part of the triple macro has to be called. The macros are
assigned values for the current approach, retraction and jump points by the basic system via
the system interface.

If the macros are defined in this way in the macro file only the starting macro is displayed in
the selection requester.

A macro file can contain up to 500 macros.

A macro can contain a calculation which is always located between 2 vertical lines. When the
calculation has been successfully completed the calculation is replaced by the result in the
text. The syntax for calculations is described in Section 2, "The Pocket Calculator".

If a ''!'' appears in a block this means that the block is ignored from this point.

Comments can therefore be inserted in macros using exclamation marks.

54  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 4. Macros
4.2.2 Jump/call

Indented instructions

The macro name must be written in the 1st line


Instructions that start with the following characters "\", IF, ELSE, END and FOR can either
be written in the 1st line or indented on the left.
All other instructions must be written in the 5th line onwards but can also be indented on the
left.

4.2.2 Jump/call

Macros can be linked for more involved applications.


A link is always associated with a condition that consists of an arithmetic expression. There
are three basic types of link:

• Jump

A conditional jump is written as follows:

\ |condition| macro name

"Backslash" (ASCII 92) to indicate a jump.


The "\ " must always be located in the first column!

Condition:
The jump goes to the macro named as the destination if the result of the arithmetic
expression is not equal to 0.
The condition like a calculation must be written between vertical lines.

Macro name:
The name of the macro that is the destination of the jump.

Conditional jumps can be converted to unconditional jumps by omitting the condition.

Example:

MA1:!FIRST MACRO
NC block 1
NC block 2
\ |V6>10| MA2
NC block 3
MA2:!SECOND MACRO
NC block 4

Explanation:

Variable V6 is scanned.
The two NC blocks (1 and 2) in MA1 are output.
Branching.
If the value of V6 is greater than 10 the jump goes to MA2 and the NC block in MA2 is
output. In this case, the last NC block in MA1 is not output! The NC program looks like
this:

NC block 1
NC block 2
NC block 4

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 55


SINUMERIK 840C (PJ)
4. Macros 09.96
4.2.2 Jump/call

If the value of V6 is less than or equal to 10 the last NC block of MA1 is generated. In
this case, macro MA2 is not used! The NC program looks like this:

NC block 1
NC block 2
NC block 3

• Call

In addition to the jumps there are the so-called calls. A call is written as follows:

\\ |condition| macro name

Two "backslashes" (ASCII 92) indicate a call.


The first "backslash" must be written in the first column!

Condition:
The jump goes to the macro named as the destination if the result of the arithmetic
expression is not equal to 0.
The condition like a calculation must be written between vertical lines.

Macro name:
The name of the macro that is the destination of the jump.

Conditional jumps can be converted to unconditional jumps by omitting the condition.

The difference between this and the jump is that when the called macro is completed
it returns to the calling macro.
"Return" means that execution is continued in the line following the call.

Example:

MA1:!FIRST MACRO
NC block 1
NC block 2
\\ |V6>10| MA2
NC block 3
MA2:!SECOND MACRO
NC block 4

If V6 is less than or equal to 10 the following NC program is output:

NC block 1
NC block 2
NC block 3

If V6 is greater than 10, the following NC program is output:

NC block 1
NC block 2
NC block 4
NC block 3

The nesting depth for calls is 10.

56  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 4. Macros
4.2.3 Logical branches

• Conditional end of a macro

If a jump is defined without a macro name as the destination of the jump the macro is
aborted.
Example:

MA3:NC block 1
NC block 2
\ |(V7+V1)>5|
NC block 3
NC block 4

If the condition in line 3 is true the macro is stopped. The last two NC blocks are not
generated!
Only the current macro is aborted. If the macro in question was called by another
macro (two "\") execution of the calling macro is continued.

4.2.3 Logical branches

The following instructions can be used for logical branching:

• IF
A branch has the general form:
IF |condition| THEN
...
ENDIF
or
IF |condition| instruction

condition:
The condition is fulfilled if the arithmetic expression returns a result not equal to 0.
The condition must be placed between vertical lines.

THEN:
The expressions to be evaluated if the instructions are fulfilled are placed in the
following lines until the next ENDIF, ELSEIF or ELSE.

instruction:
The instruction in this line after the condition is evaluated if the condition is fulfilled.
This IF instruction is not followed by an ENDIF.

• ELSEIF

Definition of a further condition. The conditions has the general form:


ELSEIF |condition| THEN
...
ENDIF
or
ELSEIF |condition| instruction

This is executed like an IF instruction.


Several consecutive ELSEIF conditions can be specified.
If one of the preceding IF or ELSEIF conditions has been fulfilled, the ELSEIF
condition is no longer examined.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 57


SINUMERIK 840C (PJ)
4. Macros 09.96
4.2.4 Loops

• ELSE

The instruction has the general form:


ELSE
...
ENDIF

If none of the preceding IF or ELSIF conditions has been fulfilled, the instructions
between ELSE and ENDIF are executed.
If one of the preceding IF or ELSEIF conditions has been fulfilled, the ELSE block is
not executed.
Apart from a comment, no additional information must be placed in the ELSE.

• ENDIF

End of a logical branch.

Example:

MA1:!FIRST MACRO
NC block 1
IF |V6<0| THEN
NC block 2
ELSEIF |V6>0| NC-BLOCK 3
ELSE
NC block 4
ENDIF
NC block 5

If V6 is less than 0, the following NC program is generated:

NC block 1
NC block 2
NC block 5

If V6 is greater than 0, the following NC program is generated:

NC block 1
NC block 3
NC block 5

If V6 is equal to 0, you obtain the following NC program:

NC block 1
NC block 4
NC block 5

The maximum nesting depth for IF calls is 10.

4.2.4 Loops

The following instructions can be used for loop operations:

58  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 4. Macros
4.2.4 Loops

• FOR

A loop has the general form:


FOR V1=|beg_condition| TO |end_condition| [ STEP |step_condition| ]
...
END

beg_condition:
The arithmetic expression of the beginning condition is calculated.
The condition must be placed between vertical lines like a calculation.
The loop variable is placed in front of the beginning condition.
The value of the beginning condition is assigned to the loop variable.

end_condition:
The arithmetic expression of the end condition is calculated.
The condition must be placed between vertical lines like a calculation.
If the value of the loop variable is greater than the end condition, the loop is aborted.

STEP:
step_condition:
Specification of the loop increment is optional. If no STEP is specified, the loop
increment is set to 1.
The arithmetic expression of the step condition is calculated.
The condition must be placed between vertical lines like a calculation.

• END

End of the loop range. The loop variable is incremented by the loop increment. After
that, the FOR line is repositioned and the abort condition checked.
Example:

MA1:!FIRST MACRO
NC block 1
FOR V1=|1| TO |3|
NC block 2 (V1=|V1|)
FOR V2=|3| TO |5| STEP |2|
NC block 3 ( V2=|V2|)
END
END
NC block 4

The following NC program is generated:

NC block 1
NC block 2 (V1=1)
NC block 3 ( V2=3)
NC block 3 ( V2=5)
NC block 2 (V1=2)
NC block 3 ( V2=3)
NC block 3 ( V2=5)
NC block 2 (V1=3)
NC block 3 ( V2=3)
NC block 3 ( V2=5)
NC block 4

The maximum nesting depth for FOR calls is 10.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 59


SINUMERIK 840C (PJ)
4. Macros 09.96
4.2.5 Input screen forms

4.2.5 Input screen forms

Calling an input screen form during runtime

A screen form can be called from a macro while the macro is being executed. This is not a
good way of assigning values to the macro. It is better to user "\I".
The purpose of this feature is for debugging when testing macros.

Syntax:
\M |condition| name1 [name2]

condition:
The call can be prevent by suitable conditions but the condition can also be omitted. In this
case the screen form is always called.

name1:
Name of the screen form. Or name of the screen form file if name2 is also specified.

name2:
Name of the screen form in the screen form file called name1.

Calling an input screen form during creation or editing of machining operations

This call has no function during execution of the macro!


It is used to supply macros with data via screen form entries. The call is placed at the
beginning of the graphics macros. The values entered are stored in variables and can be
evaluated in the macro.
If a macro is selected by requester, this line is searched for in the macro and the screen
form specified there is called.

Syntax:
\I name1 [name2]

name1:
Name of screen form. Or name of the screen form file if name2 is also specified.

name2:
Name of the screen form in the screen form file called name1.

4.2.6 Graphics macros

All graphics macros provided by Siemens are located in the macro file
/mmc.001/siem.069/wop.006/grafik.035 (FlexOS) or
\wop\t.006\grafik.035 (DOS).
Modifications or additional functions by the user are in the macro file
/mmc.001/user.005/wop.006/oemgrafik.035 (FlexOS) or
\wop\t.006\typ_a.006\oemgrafik.035 (DOS).

60  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 4. Macros
4.2.6 Graphics macros

A simple "NC language" is used in the drawing macros. This is interpreted and displayed by
the NC system.

There are preparatory functions for straight lines and arcs that can be drawn only, drawn
and simulated or simulated only.
The following "G functions" are defined:

Code Motion Rapid Draw Simulate



G00 linear - - -
G01 linear - -
G02 circular - -
G03 circular - -
G10 linear - -
G11 linear -
G12 circular -
G13 circular -
G20 linear - -
G21 linear -
G22 circular -
G23 circular -
G30 jump

The following functions prevent conversion of the specified point onto the current plane. The
point is always output on the turning plane. This is necessary during approach of the plane
or tool changing point during active C-axis machining for example C axis machining.

Code Motion Rapid Draw Simulate



G1000 linear - - -
G1001 linear - -
G1002 circular - -
G1003 circular - -
G1010 linear - -
G1011 linear -
G1012 circular -
G1013 circular -
G1020 linear - -
G1021 linear -
G1022 circular -
G1023 circular -
G1030 jump

A "-" in the centre column indicates that this motion is executed with rapid traverse (drawn
as a broken line).
A "-" in the second to last column indicates that this motion is drawn. A "-" in the last
column indicates that this motion is simulated.

These "G functions" must not be confused with identical machine words!

The addresses for the coordinates are X, Y, Z and the addresses for the circle parameters
are I, J. All addresses are absolute.
The addresses X, Y and Z are modal.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 61


SINUMERIK 840C (PJ)
4. Macros 09.96
4.2.7 NC macros

4.2.7 NC macros

All NC macros provided by Siemens are located in macro file


/mmc.001/siem.069/wop.006/ncmac.032 (FlexOS) or
\wop\t.006\ncmac.032 (DOS).
Modifications and additional functions of the user are located in macro file
/mmc.001/user.005/wop.006/oemncmac.035 (FlexOS) or
\wop\t.006\typ_a.006\oemncmac.035 (DOS).

The result of an NC macro is a sequence of NC blocks in the format of the machine.

Format of a macro:

MAC:NC block 1
NC block 2

Four columns are required for the macro name plus an end character. The fifth column
contains the first NC block.

Because all the NC blocks must be placed in the same column,


always begin in the fifth column!

For a blank line in the NC program, the line in the macro file must contain at least four
blanks.

In macros, words (but not complete blocks!) can be used from the machine file.
In a macro, the word call is specified by writing the name of the word between quotation
marks.
Example:

MAC:"N" ( block number )


NC block 2

When the first NC block in this macro is generated, the string "N" (including quotation
marks) is replaced by the word specified by N.
Text not place between "|" (=pocket calculator call) or interpreted as a macro call in
accordance with the syntax, is also output into the NC code file. In this example, the text "(
block number )" is output.

If words from the machine file are used in macros, macros can be made a little less
machine-specific:
The more machine-specific data is contained in the machine file and the less machine-
specific data is written in the NC macros, the easier it is to generate programs for different
machines with the same macros by substituting the machine file.
Moreover it is easier and more flexible to specify formats and modalities for different values
in the machine file.

One example is the user of machine words for block numbering. If word is output with the
variable V181, it is automatically incremented by the system.

62  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 4. Macros
4.3 Example of a graphics macro/NC macro

4.3 Example of a graphics macro/NC macro

The program beginning macro from the graphics and the NC macro files of the programming
system for the SINUMERIK 840C control is listed below to demonstrate the basic difference
between graphics and NC macros.

Graphics macro:

1!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXMakroXXXXXXXXXXXXXXXXX
2
3 101.!Program beginning
4 \I pa.009
5 G30 X|V864| Y|V865| Z|V866+V928|
6 !Plane
7 |V950=(V812-1)*4+900:V840=VV950:V950=V950+1:V841=VV950|
8 |V950=V950+1:V842=VV950:V950=V950+1:V843=VV950|
9 |V838=V840+4:V839=V841+4|
10 |V827=0|! Tool number

NC macro:

1 !XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXMakroXXXXXXXXXXXXXXXXX
2 !
3 ! Program beginning
4 101:
5 |V827=0:V1952="N":V1953=""|! Tool number skip block number.
6 |V1989="MPF"|
7 \ |V810≡1|PRT
8 |V1989="SPF"|
9 \ PRT
10 PRT;( |V1989||V1978| )
11 ( Drawing no.: |TRU(V1979):V1979| )
12 ( Date of creation: |TRU(V1980):V1980| )
13 ( Machine: |TRU(V1981):V1981| )
14 ( By: |TRU(V1982):V1982| )
15 ( |TRU(V1983):V1983| )
16 |V950=(V812-1)*4+900:V840=VV950:V950=V950+1:V841=VV950|
17 |V950=V950+1:V842=VV950:V950=V950+1:V843=VV950|
18 |V838=V840+4:V839=V841+4:V916=0:V917=1:V918=2:V919=3|
19 |V221=V926|! Activate G function from empirical data
20 \ |V846≡1|EB1
21 |V918=3:V919=2|
22 \ EB1
23
24 EB1;|V950=16|
25 \ |V812<4|EB2
26 |V51="":V52="":V53=""|! Plane G16
27 \\ |V924≡-1|EM1
28 \ |V923<1990|EAU
29 |V53=VV923|
30 \\ |V925≡-1|EM2
31 \ EAU
32
33 EM1;|V51="-"|! Minus for length offset
34
35 EM2;|V52="-"|! Minus for length offset
36
37 EAU;! Plane output
38 |V51=VV922+V51|
39 |V52=V53+V52|
40 "N"G|V950| |VV912| |VV913| |V51| |V52|
41 \ EA1
42

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 63


SINUMERIK 840C (PJ)
4. Macros 09.96
4.3 Example of a graphics macro/NC macro

43 EA1;! Zero offset


44 \ |V848<2|EA2
45 |V831=1+V812|! ZO dependent on plane
46 \ EA2
47
48 EA2;
49 "N""ZO""GF"|V1997|
50
51 EB2;|V950=V950+V812|! Plane G17-G19
52 \ |V848<2|EB3
53 |V831=1+V812|
54 \ EB3
55
56 EB3;
57 "N"G|V950| "ZO""GF"|V1997|

Brief explanation:

In the graphics macro, the reference point on the screen is approached (G30 ...). After this,
the variables are initialized with the axis names of the current plane.

Of course in the NC macro the "G function" for screen display is omitted. Output to the NC
file is specified here instead:
General information about the NC program is given in lines ten to fifteen as a comment. This
information can be specified in the program beginning screen form.
In planes G17 to G19, the plane selection and output of the zero offset in macro "EB3;" (line
56) are specified.
For plane G16 the plane selection is output in macro "EAU;", line 37, via variables previously
set in the empirical value file/program beginning screen form. The zero offset is output in
macro "EA2;", line 48.

The NC code of the program beginning macro generated then looks this, for example:

( MPF1 )
( Drawing no.: 1 )
( Date of creation: 20.11.93 )
( Machine: 840C )
( )
N10 G17 G54 G00 G90 G80

64  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.1 Program for creating the machine file

5. Adaptation to the Machine

5.1 Program for creating the machine file

Words and blocks are defined in the machine file which generate the NC code when
activated. Words can be activated by NC macros and by the programming system, blocks
only by the programming system.
A program exists to create and modify the machine files that can be started from the FlexOS
system (see operating sequence in Section 1.4) or directly under MS-DOS.

5.1.1 General notes

Basis:

A word consists of an address letter and a sequence of figures with or without a sign.
A block consists of several words.
This is the proper basis of all NC languages ( see DIN 66025, part 1).
The machine file program is based on this lowest common denominator.

The following can be defined:


- Words
- Blocks
- Control parameters
- Parameters for the machine file program

Keyboard operation of the screen forms:

All interaction with the machine file program is performed via screen forms. The keys in a
screen form have the following meaning:

Ð: Jump to the field of the next line. If several fields exist in the lines, the same
column is selected in each line, if possible.
Toggle field: Display of selection screen form

Ï: Jump to the field of the previous line. If several fields exist in the lines, the
same column is selected in each line, if possible.

Í: All fields in the row are selected from bottom to top.


If the cursor arrives at an enter field, the cursor is moved within the field
character by character from right to left before jumping to the next field. But if it
is a toggle field the cursor jumps straight to the next field.

Î: All fields in the row are selected from top to bottom.


If the cursor arrives at an enter field, the cursor is moved within the field
character by character from left to right before jumping to the next field. But if it
is a toggle field the cursor jumps straight to the next field.

END: Jump to the last field of the screen form.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 65


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.1.1 General notes

HOME: Jump to the first field of the screen form.

↵: In input fields
• a following screen form is displayed if there is one.
• if there is no following screen form, the cursor jumps to the next field.
In the cancel field, the screen form is exited without saving.
In the confirmation field, the screen form is exited and the changes stored.
Toggle field: Display of the selection screen form

It is only possible to exit a screen form with the cancel or confirmation field!

The main menu items can be activated with function keys F1 to F7, i.e. the corresponding
submenu is displayed. The required submenu item is selected using the cursor keys. With
RETURN, the associated screen form is displayed.

Structure of the pull-down menu:

Main menu item: Submenu items:

Files Read in
Display
Save

Initialize
System info
End

Word Create
Copy
Edit
Display
Delete
Standard formats

Block Create
Copy
Edit
Delete
Stand. blocks

Machine Gen info 1


Gen info 2
Paths NC3
NC block number
Layer horizontal
Layer vertical

Subroutines

Setup Read in
Colours
Letters
Filenames
Save

66  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.1.2 File commands

5.1.2 File commands

Read in:

The read-in function is used to read the specified machine file into the machine file program.
All parameters in the machine file program are than set as specified in the machine file.
The file is read in without message display.

Display:

This function lists all entries, both words and blocks, that have already been defined. The
letters in front of the entries displayed are intended to make it easier to assign identifiers to
the words or blocks.
The letters themselves can be set in Setup/Letters {F6}{F3}.

Save:

So that no data is lost if an unforeseen event occurs, this function can be used to buffer the
current state of the machine file.
It is not necessary to exit the running program.

Initialize:

The machine file currently read in is "deleted".

System info:

When this function is selected, information about the current version of the machine file
program is output.

End:

This function is used to exit the machine file program.


If you do not want to save the current state of the program, you can prevent it using cancel.

5.1.3 Word

Create :

To define a new word, select "Word" from the main menu bar and "Create" from the pull-
down menu.

Each word contains an identifier by which it is addressed in blocks.


The address text, normally a letter, is the string in front of the numeric value.

If a variable is entered, its value is output in the format of the word (integer/decimal places).
A standard format can be specified that is defined under menu item "Standard formats".
If zero is specified in the position for tabulated NC blocks, the words in the block are written
consecutively. Where values are not equal to zero, the first address letter of the word is
output at the appropriate position.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 67


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.1.3 Word

If a word is set modally, it is only output if its value has changed. The following trick (NC
macro) can be used to force output of the value:
E.g.: machine word = TST; assigned variable = V10=100; address letter = F :
TST Output in NC code F100
|V1=V10| Variable buffered
|V10=NL| Set variable to NL => no output
TST Value = NL =>no output in NC code
|V10=V1|
TST Output in NC code F100

Copy :

If you want to define a new word that is the same as an existing word except for a few
points, it is possible to copy the word and modify it (see Edit).

The identifier of the new word must be changed,


otherwise it is not saved.

Edit :

During editing, the identifiers of the existing words are displayed first. The selected word is
then loaded into the same screen form as was used to define a word. You must click the
field to be changed and enter the new content.
With "Confirm" the new content of the field is accepted, and with "Cancel" a change to the
machine file is prevented.

Displays :

This function only displays the format of a word already defined.


The positions in front of and after the decimal point, the address letter(s) and the decimal
point are displayed.
The word is displayed in the specified format.
If the format is not correct, it must be changed in "Edit word" {F2}{F2}.
The characters for the integer and decimal places can be set in Setup/Letters {F7}{F3}.

Delete :

The word selected from the list is deleted.

If the deleted word has been used in a block, you must delete it their too because
otherwise the block is not stored.

Standard formats :

A table is displayed in which 10 different standard formats with 10 different integer and
decimal places each can be defined. Using the variable V1403 you can specify in the system
which index of a standard format is to be accessed.

68  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.1.4 Block

5.1.4 Block

Create :

The components of a block can be: words, texts, other blocks or macros. The option of
specifying other blocks allows a number of simplifications. For example, the word for X, Y
and Z can be grouped together in one block and in every other block in which XYZ is
required, the block must be called.
During creation of a block component, a component entered is only a complete string when
it is assigned an identifier (word, text, block, etc.).

\ Text => new line within the block

When editing blocks, you can select an element from the list using the cursor keys as
follows.
Now it is only possible to exit the list by pressing the END key (jump to the last field) leaving
a element that is not in the last position selected. In all other operations, the cursor and
therefore the selection is cancelled and assignment of an identifier is no longer possible.
If you press the END key, you can select the cancel field. Then you can move up again with
the cursor keys and select any function.

All standard blocks that the system accesses must be entered in the standard block table
using {F3}{F5}.

Copy:

When copying a block it is necessary to change the identifier of the new block,
otherwise the new block will not be saved.

Edit block and delete block :

See "Create block" and Section 5.3.3, "Edit/delete word"

Standard blocks :

All standard blocks that have been defined in the machine file must be entered here. The
unchangeable texts are read from the text file of the machine file program. Any name can be
selected for each block but it must correspond to the name defined when the block was
created.
The blocks entered here are assigned to the system via a further table in the system where
all blocks must be listed in the same sequence.

5.1.5 Machine

Under the heading machine, you will find items that are required to support NC control but
are not written in NC blocks.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 69


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.1.6 Setup

General info 1

General settings and setting of the modes for each machining operation (e.g. for radius
correction, pocket milling, etc.).

General info 2

Settings for circle calculation and for rotary table.

Paths NC3

If macros are used for NC block generation, the file name under which the macros are
stored must also be specified here.
An interpreter file is required for the NC block display. The name specified here is stored as
a standard in the NC system.

NC block number

In the screen form displayed here you can change the format specifications for outputting
the block number in NC code.

Layer horizontal

Setting for the type of calculation for each horizontal plane.

Layer vertical

Setting for the type of calculation for each vertical plane.

Subroutines

Settings for calling subroutines.

5.1.6 Setup

Read in file:

The current switch-on state is taken from the file MF3.SET.


In Setup all settings are made that affect the machine file program itself.

Change colours:

Number Text colour Background colour



1 green black
2 yellow black
3 black grey
4 blue cyan
5 blue black
6 white red
7 white green
8 white blue
9 white brown
10 white violet
11 red black
12 cyan black

70  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.1.7 Error messages

13 violet black
14 violet black
15 white black
22 black violet
23 green violet
24 yellow red
25 green cyan
26 black green
27 cyan red

Change letters

Settings for the letters for displaying information.

File names

General Setup.

Save

If you want these settings to be available again later on, you can save them in a file.
If you want to use them every time the machine file program is used, you must store them in
the file MF3.SET.

5.1.7 Error messages

Error numbers Meaning



003 Word identifier not found
004 Word identifier duplicated
005 Component identifier duplicated
006 Component identifier missing
008 No word exists
009 No block exists
010 No entry exists
011 Wrong file read in
012 Block identifier not found
013 Point must be active
015 Error in screen form
017 Error on system call
018 HLP file missing or with error
019 Wrong job number

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 71


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.2 Data in the machine file

5.2 Data in the machine file

There is one machine file each for the milling and turning systems in which existing data is
already defined. The user can make additions to the machine file.

5.2.1 Words for milling

The following machine words are already available in the machine file "Milling":

MSF word Meaning



C Name 1st rotary axis
CUM Rotary axis on/off
DRZ Spindle speed
FRK Cutter radius path compensation off/on
G64 Continuous-path mode
G74 Approach reference point
GF Current preparatory function
KÜHL Coolant off/on
MHE Horizontal axis peripheral surface
MKR Circle output peripheral surface
MRA Rotary axis peripheral surface
MSE Infeed axis peripheral surface
MVE Rotary axis peripheral surface
N NC block numbering
ZO Settable zero offset
NVA Zero offset off; non-modal
POS0 No output
POS4 Position 4th axis (1st rotary axis)
POS5 Position 5th axis (2nd rotary axis)
SHE Axis 1 of the machine plane
SVE Axis 2 of the machine plane
SSE Axis 3, ordinate on the machine plane
SIPH Interpolation parameter for axis 1
SIPV Interpolation parameter for axis 2
SPDL M function for spindle direction
VE G function for feedrate
VORS feedrate in output unit
WKOR Tool offset number
WKZN Tool number
WVKR Tool offset as R parameter

72  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.2.1 Words for milling

These machine words are used in the macros that already exist and are also available for
new NC macros.

The following additional words are used in the blocks defined in the machine file:

MSF word Meaning



GFZ Cycle number G8
LFZ Cycle number L8
R0 Dwell time at starting point
R1 1st drilling depth, absolute
R2 Reference plane
R3 Final drilling depth
R4 Dwell time at drilling depth
R5 Amount of degression (incremental)
R6 Direction of rotation retraction
R7 Direction of rotation
R8 Tapping with/without encoder
R9 Thread pitch (for encoder only)
R10 Retraction plane
R11 Deep hole drilling chip breaking/stock removal
R12 Retraction path (horizontal)
R13 Retraction path (perpendicular)
R16 Feedrate
R17 Retraction feedrate
R7G Direction of rotation
VZ Dwell time
WKZ Tool change M06
WSPR Angle of oriented spindle

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 73


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.2.2 Words for turning

5.2.2 Words for turning

The following words already exist in the machine file "Turning:

MSF word Meaning



C Address letter "C" for G36
COF Rotary axis off
CON Rotary axis on
CPOS Angle of rotary axis for tapping
CUM Rotary axis on/off
DB Limit speed for const. cutting speed
DRZ Spindle speed
DZR M function speed series
G63 G63 for tapping G63
G97 Freeze spindle speed
GEW G function thread cutting G33
GF Current preparatory function
KS Constant cutting speed
KÜHL Coolant off/on
N NC block numbering
ZO Settable zero offset
NVA Zero offset off; non-modal
POS0 No output
SHE Axis 1 of the machine plane
SRK Tool nose radius compensation off/on
ST Pitch tapping
SVE Axis 2 of the machine plane
SIPH Interpolation parameter for axis 1
SIPV Interpolation parameter for axis 2
SPDL M function for spindle direction
VE G function for feedrate
VORS Feedrate in output unit
VZ Dwell time
WKOR Tool offset number
WKZ Tool change M06
WKZN Tool number
WSPR Angle of oriented spindle
WVKR Tool offset as R parameter

74  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.2.2 Words for turning

The following machine words are required for the miscellaneous functions for C axis
operation:

MSF word Meaning



FRK Cutter radius path compensation
G64 Continuous-path mode
G74 Approach reference point
KOP Engage/disengage rotating tool
MHE Horiz. axis peripheral surface fct. before/after machin. + insert blocks
MKR Circle output peripheral surface
MRA Rotary axis peripheral surface
MSA Infeed axis peripheral surface
MSN Infeed axis peripheral surface fct. before/after machin. + insert blocks
SHA Horizontal axis face end
SKRH Horizontal interpolation axis face end
SKRV Vertical interpolation axis face end
SSA Infeed axis face end
SVA Vertical axis face end
TRM Transmit on/off
MHE Peripheral surface horizontal axis

The following machine words are required for the miscellaneous functions for Y axis
operation:

MSF word Meaning



SSE Output Y axis

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 75


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.2.3 Blocks for milling

5.2.3 Blocks for milling

The standard blocks for milling are defined in the following machine words:

Standard block Block Macro Words



G00 N GF SHE SVE SSE SPDL
G01 URF N GF VE SHE SVE SSE VORS SPDL
G03 EZO URF N GF VE SHE SVE SSE SIPH SIPV VORS SPDL
G02 G03 (block G02 refers to block G03)

In addition to the standard blocks additional blocks are defined for the programming system:

Block Contains words Explanation



G04 N G04 VZ Dwell time
DRR N SPDL Spindle direction
M00 N SPDL M00 Stop
G80 N GFZ Deselect cycle
G81 N GFZ R2 R3 R10 Drilling/centering
G82 N GFZ R2 R3 R4 R10 Drilling/sinking
G83 N GFZ R0 R1 R2 R3 R4 R5 R10 R11 Deep hole drilling
G84 N GFZ R2 R3 R4 R6 R7G R8 R9 R10 Tapping
G85 N GFZ R0 R2 R3 R4 R10 R16 R17 Boring 1
G86 N GFZ R2 R3 R4 R7 R10 R12 R13 Boring 2
G87 N GFZ R2 R3 R7 R10 Boring 3
G88 N GFZ R2 R3 R4 R7 R10 Boring 4
G89 N GFZ R2 R3 R4 R10 Boring 5
L81 N R2 R3 R10 LFZ P1 Drilling/centering
L82 N R2 R3 R4 R10 LFZ P1 Drilling/sinking
L83 N R0 R1 R2 R3 R4 R5 R10 R11 LFZ P1 Drilling/sinking
L84 N R2 R3 R4 R6 R7G R8 R9 R10 LFZ P1 Deep hole drilling
L85 N R0 R2 R3 R4 R10 R16 R17 LFZ P1 Tapping
L86 N R2 R3 R4 R7 R10 R13 LFZ P1 Boring 1
L87 N R2 R3 R7 R10 LFZ P1 Boring 2
L88 N R2 R3 R4 R7 R10 LFZ P1 Boring 4
L89 N R2 R3 R4 R10 LFZ P1 Boring 5

76  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.2.4 Blocks for turning

5.2.4 Blocks for turning

The following blocks are defined in the machine file for milling:

Standard block Block Macro Words



G00 N GF SRK WKOR VE SVE SHE SPDL
G01 URF N GF SRK WKOR VE SVE SHE VORS SPDL
G03 EZO URF N GF WKOR VE SVE SHE SIPV SIPH
VORS SPDL
G02 G03 (block G02 refers to block G03)
G04 (dwell time) N G04 VZ

Block Block Macro Words



DRR (spindle dir. of rotation) N SPDL
M00 (spindle stop) N SPDL M00
GEW (thread cutting) G33 N GF SHE SVE ST SPDL
G36 (tapping) G36 N GF C SHE SVE ST VORS
CPO (angle rotary axis) N GF CPOS SVE SHE
G63 (tapping) G63 N GF G63 WKOR VE SVE SHE VORS SPDL
BDR (traversing axes) SVE SHE

The following blocks are required for the miscellaneous functions for C axis operation:

Block Block Macro Words



ZKS (ST on) 131
ZKM (MF on) MON
SOF(ST off) SOF
MOF(MF off) MOF
BST (axes ST) SHA SVA SSA
BMF (axes MF) MRA SHE MSA
SG0 (G00 ST) BST RKU N GF FRK WKOR SPDL
SG1 (G01 ST) BST URF RKU N GF FRK WKOR VE VORS SPDL
SG3 (G03 ST) BST EZ0 URF RKU N GF WKOR VE SKRH SKRV VORS SPDL
SG2 (G02 ST) SG3
MG0 (G00 MF) BMF RKU N GF FRK WKOR SPDL
MG1 (G01 MF) BMF URF RKU N GF FRK WKOR VE VORS SPDL
MG3 (G03 MF) BMF EZ0 URF RKU N GF WKOR VE MKR VORS SPDL
MG2 (G02 MF) MG3
SCP (angle ST) N GF CPOS SSA
MCP (angle MF) N GF CPOS MSA
S33 (thread ST) G33 N GF SSA ST SPDL
S36 " G36 N GF C SSA ST VORS
S63 " G63 N GF G63 WKOR VE SSA VORS SPDL
M33 (thread MF) G33 N GF MSA ST SPDL
M36 " G36 N GF C MSA ST VORS
M63 " G63 N GF G63 WKOR VE MSA VORS SPDL

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 77


SINUMERIK 840C (PJ)
5. Adaptation to the Machine 09.96
5.3 Adaptation to the machine with the machine file

5.3 Adaptation to the machine with the machine file

Machine dependence is not established until the NC program has been generated.
The machine parameters required for this which range from the address letters and number
formats of the NC blocks to information about the cycles and subroutine options available in
the control (via macro calls in words) are taken from the machine file.
The machine file is generated with a program for this specific purpose (Section 5.1).

Before the NC blocks are generated, the machine file is read in so that the system knows
how the NC blocks must look for this specific machine.

Macro file <-> machine file link:

The diagram below shows that mechanism by which the NC macro file is handled between
the NC programming system and the machine file program.
When a machine file is created the full name of the NC macro file is entered in this file.

File Word Block Machine Setup

Read in

Read in file
...

Confirmation Abort

NC paths

...

Name of the macro file:

...

Confirmation Abort

The link between the machine file and the NC macro file is established by entering the macro
file name in the control description screen form.

78  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 5. Adaptation to the Machine
5.3 Adaptation to the machine with the machine file

The file names of the graphics macro file and of the machine file etc. are permanently
entered in the setup file. The machine file contains the definitions of the NC blocks and
machine words as well as the name of the NC macro file.
The circle is then complete and all the necessary conditions for using macros in NC block
generation have been fulfilled.

The NC blocks in the machine file are standard blocks which essentially cover the traversing
movements. All other NC blocks have to be generated by using the available macros when
programs are created.
It is also possible to insert NC code subsequently using the editor. However, this technique
should only be used in exceptional cases.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 79


SINUMERIK 840C (PJ)
6. Configuring Example 09.96

6. Configuring Example

The example below illustrates the interaction between the individual system components that
can be configured by the user. The screen forms and macros used are provided in a list. To
make changes in these screen forms or macros select and edit them as described in
Sections 1.3/1.4.

In the example, a decimal value and a string are to be output in NC code. The user must be
able to select both values by entries in screen forms.

First of all a graphics macro in graphics macro file "oemgrafik.035" is required which is
listed in the selection requester and can therefore by selected by the user via menu items
MACHINING - MACHINES AUX FCT.:

!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXMakroXXXXXXXXXXXXXXXXX

X01:!auxiliary function
\I awm.009

As the macro name ends in ":" it appears together with the text after the name in the
selection requester and can be selected. Once it has been selected the screen form
specified in the macro is displayed.
This function appears as a separate program step in the work schedule and can be changed
again at a later stage via "Edit program steps".

The screen form description is listed below:

! awm.msk 23.10.92
V1968:V1969:V966:V967:V968:V969:V970:V971:V972:V973:V974:V975
# Field description
1 = -3 =V1 &:14:22:V1 &:1:$(0,0,12);
2 = -3 =V2 &:V2 &:2:$(0,0,12);
3 = -3 =V3 &:V3 &:3:$(0,0,12);
4 = -3 =V4 &:V4 &:4:$(0,0,12);
5 = -3 =V5 &:V5 &:5:$(0,0,12);
6 = -3 =V6 &:V6 &:6:$(0,0,12);
7 = -3 =V7 &:V7 &:7:$(0,0,12);
8 = -3 =V8 &:V8 &:8:$(0,0,12);
9 = -3 =V9 &:V9 &:9:$(0,0,12);
10= -3 =V10 &:V10 &:10:$(0,0,12);
11= -1 =V51 &:V51 &:11:$(0,0,12);
12= -1 =V52 &:V52 &:12:$(0,0,12);
13= 0;
14= 0 :|V1=V966:V2=V967:V3=V968:V4=V969:V5=V970:V6=V971:V7=V972|:15;
15= 0 :|V8=V973:V9=V974:V10=V975:V51=V1968:V52=V1969|;
16= 0;
17= 0 :|V966=V1:V967=V2:V968=V3:V969=V4:V970=V5:V971=V6:V972=V7|:18;
18= 0 :|V973=V8:V974=V9:V975=V10:V1968=V51:V1969=V52|;
19= 0;
20= 0;
21= 0;
22= 0 :|V747=0:V748=0:V749=17|;
23= 0;

80  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 6. Configuring Example

# Screen form definition

User screen form

Value for aux. funct. V966 @___.___


____________________ V967 @___.___
____________________ V968 @___.___
____________________ V969 @___.___
____________________ V970 @___.___
____________________ V971 @___.___
____________________ V972 @___.___
____________________ V973 @___.___
____________________ V974 @___.___
____________________ V975 @___.___
V1968
@__________________________________
V1969
@__________________________________

#repeat section
#end section
#end of screen form
#
01:!

For historical reasons, all screen forms specified in a screen form file must be given the
extension "msk". In the example, the screen form name "awm.msk" is in the first line of the
file.
All variables that are to be written into the geometry file by the system are specified in the
second line of the screen form.

Several values can be entered in the screen form but in the example only the variables V966
and V1968 have been assigned values:

User screen form

Value for aux. funct. V966 1000.___


____________________ V967 ____.___
____________________ V968 ____.___
____________________ V969 ____.___
____________________ V970 ____.___
____________________ V971 ____.___
____________________ V972 ____.___
____________________ V973 ____.___
____________________ V974 ____.___
____________________ V975 ____.___
V1968
( Value H = 1000 )__________________
V1969
___________________________________

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 81


SINUMERIK 840C (PJ)
6. Configuring Example 09.96

When the screen form is displayed on the screen the cursor is positioned in the first field so
that the sequence of instructions for the first field is executed: The instructions after the first
"&", i.e. 14 and 22 are executed (":14:22" in the instruction line of field 1). Instruction 14
causes all current values of the user variables to be transferred to the working variables of
the screen form so that they are output in the screen form. Instruction 22 defines the exit
behaviour of the screen form: V747=0; V748=0 means that there is no following screen form
when PgUp is pressed and the screen form is exited with RETURN. Variable V749 is
assigned the value 20, i.e. instruction 20 is executed when the screen form is exited.
In addition, variable V1 is output in field 1 (":V1").
The value in field 1 is interpreted as a decimal value and is assigned to variable V1
("1=3=V1").

If 1000 is now entered in the first input field this value is stored in variable V1. If string "(
value H = 1000 )" is entered in the penultimate field it is stored in variable V51. Exiting the
screen form with RETURN (V748=0) calls instruction 17 (because V749=17) where all the
user variables are written back, i.e. V966=1000, V1968="( value H = 1000 )".
All the variables located at the beginning of the screen form (in this case in the second line)
are stored in the geometry file when the screen form is exited with RETURN. Here, they can
be accessed by the graphics macro for "Edit program steps" and by the NC macro for
"Generate part program".

If, as a next step menu item GENERATE NC PROGRAM is selected in the programming
system, the NC macro (must exist in the NC macro file oemncmac.032) is called:

!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXMakroXXXXXXXXXXXXXXXXX

X01:!auxiliary function
( output by auxiliary function macro )
"N"H|INT(V966)|
"N"|TRU(V1968):V1968|

As a result of the second line of the NC macro only one line of text is output which is
interpreted as a comment by the NC code because of the brackets. A blank must be written
after the opening bracket and before the closing bracket! "N" is defined in the machine file,
the current block number is output.
The pocket calculator instructions are executed:
Output of the variable V966 via the function INT() will convert any real number that has been
entered (e.g. 1000.45, is possible according to the screen form definition) into a decimal
number. The value which is rounded up or down (in the example 1000) is then output in NC
code.
The function TRU() deletes all subsequent blanks in variable V1968 (because of
preassignment).

The following NC code is output:

( output by auxiliary function macro )


N15 H1000
N20 ( Value H = 1000 )

82  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.1 Overview of variable ranges

7. Interface Description of the Existing Configuration

The entire system consists of a basic system which contains a limited range of functions and
an "application" that expands this range of functions.
The basic system uses a certain amount of the available variables (=system variables). The
application that already exists itself uses some of the remaining variables but can also
access the system variables simultaneously.
This means that only a few variables remain free for the user to use (for a description see
Section 7.2.3). However, he can fetch information from the variables assigned to the system
and the application. The variable assignment of the application is listed below (Section 7.2)
and an explanation of the required system variables (Section 7.3) is also given).

Some of the variables are preassigned in the empirical value file or the configuration file and
set during screen form execution.

The variables can contain different data types. There are variables for reals and integers and
strings. The data type is defined by the system and the user of the variables is bound by this
convention.

7.1 Overview of variable ranges

7.1.1 Existing data types

Integers / reals:
In the case of this data type the type definition in the screen form determines whether the
variable is to be interpreted as a real or integer value. Every variable is large enough to store
a real.
An integer is always a whole number. The value range is from -32768 to +32767.
A real variable contains a floating point and the number of places before and after the point
is user definable. For more detailed information refer to Section 2 "The Pocket Calculator".

String:
This data type contains a character string. I.e. a variable of data type "string" consists of one
or several characters that together form the character string.
The character string is always written in quotation marks in an assignment. Any characters
except for quotation marks can be placed between the quotation marks.

Example of an assignment:
V1981="SINUMERIK 840C"

A string variable can contain up to 40 characters!

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 83


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.1.2 Division of the ranges

7.1.2 Division of the ranges

Free working variables screen forms:

V1-V50 real / integer


V51-V90 string

System interface screen forms:

V91-V127 real / integer

System variables:

V161-V360 real / integer


V381-V400 string
V401-V450 real / integer

Variables assigned by Siemens:

V747-V1450 real / integer


V1950-V2049 string

Only the variable numbers listed here have been assigned. It is not possible to access
numbers that are not named here.

7.2 Variable assignment

Only the variables created for Siemens are described in this Section. System variables are
not mentioned. However, the system variables are used by WOP configuration where
necessary.

Variable range for WOP configuration:

V750-V1450 data type real / integer

V1950-V2049 data type character (string)

Variables within these ranges which are merely listed but not explained are reserved for
Siemens applications and must not be used by the end user. The end user should only use
variables which are explicitly defined as user variables.

84  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

7.2.1 Real/integer variables

Variables for screen form control:

V747 1, 2 -> Call a following screen form with PgUp


0 -> No following screen form with PgUp
V748 Possible values: 0, 1.
Response depends on V747
Description in Section 3.3, "Special variables"
V749 Instruction number to be executed when the screen form is exited

V750

For V751-V779 the following applies:


The variables are assigned values by making entries in screen forms (preassignment from
variables from the empirical value file) and then stored in the geometry work file from where they
can then be accessed by the macros.

V751 Deep hole drilling


b-tbohr.msk
2b-tbohr-msk = V17 Working variable
V98 Store and read out on editing
First drilling depth V751 Assigned only for storing
Preassignment: V1184 From empirical value file
V752 Safety clearance for all milling operations / drilling operations and concentric drilling
operations set in screen forms, evaluated in approach macros milling
V753 Drilling depth for all drilling operations set in screen forms
evaluated in NC macro, graphics macro
V754 Dwell time for drilling operations
V755 Deep hole drilling
b-tap.msk
2b-tap.msk
Amount of degression
V756 Tapping
b-tap.msk
2b-tap.msk
Direction of retraction
V757 Tapping
b-tap.msk
2b-tap.msk
Direction of machining
V758 Tapping
b-tap.msk evaluated in NC macro
2b-tap.msk
1->with encoder
0->without encoder
V759
V760 Withdrawal distance for all milling operations set in screen forms,
evaluated in retraction macros, milling
V761 Deep hole drilling 1->chip breaking
2->stock removal

V762 Boring 2
Retraction path horizontal
V763 Boring 2
Retraction path perpendicular

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 85


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V764
V765
V766
V767
V768
V769
V770 Deep hole drilling
Dwell time at starting point
V771
V772 All drilling operations:
Call as 1->G function
2->subprogram

V776
V777
V778 Drilling operations cycle numbers 81-89
evaluated in NC macro
V779 Approach strategy WOPM 1->1st movement plane/2nd movement infeed axis
2->1st movement infeed axis/2nd movement plane
3->3-axis movement
4->Movement in plane only

86  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

Measuring cycles:

The measuring cycles have not yet been implemented. However, the variable assignment
required for implementation is already defined and listed below:

Variable Explanation

V780 Extended T address
V781 T number
V782 Automatic tool offset
V783 Empirical value memory number
V784 Select reference hole
V785 Offset angle position for mono probe
V786 Infeed offset axis/drilling axis
V787 Centre point of abscissa
V788 Centre point of ordinate
V789 Sensor no./type number of measuring points

V790 Select cycle


V791 Number of measuring points / angles
V792 Variable Measuring velocity
V793 Starting or indexing angle
V794 Number of measurements at the same position
V795 Factor for multiplying the measuring value
V796 Weighting factor k for mean value calculation
V797 Number of the measuring axis
V798 No. of the rotary axis/ velocity for circular interpolation
V799 Setpoint diameter/slot width/ web width
V800 Zero offset range
V801 Offset range with mean value calculation
V802 Safe area
V803 Dimensional difference check
V804 Tolerance upper limit
V805 Tolerance lower limit
V806 Setpoint diameter/slot/web
V807
V808
V809

V810 Program type


pe.msk
pa.msk
set in the program start screen form
evaluation in NC macro
1->main program
2->subprogram

V811 set in the program start screen form


1->plane
2->inclinable head
pa.msk
V812 Current plane
pa.msk
preassignment in empirical value file
set in program start screen form
evaluation in NC macro
1->G17
2->G18

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 87


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

3->G19 Preassignment in empirical value file


4->G16
V813 Feedrate unit 94/95 NC macro
set in NC macro
evaluation in machine file
94->G94 feedrate /min
95->G95 feedrate /rev

V814 Safety plane in all machining screen forms


set in machining screen forms
evaluation in graphics and NC macros

V815 Feedrate calculated in unit of output NC macro


Calculation in NC macro
Output by machine file

V816 Sequence positioning 1st axis


Function before machining
insert blocks
V817 Sequence positioning 2nd axis
Function before machining
insert blocks
V818 Sequence positioning 3rd axis
Function before machining
insert blocks
V819 Sequence positioning 4th axis
Function before machining
insert blocks
V820 Position axis 1
Function before machining
insert blocks
V821 Position axis 2
Function before machining
insert blocks
V822 Position axis 3
Function before machining
insert blocks
V823 Position axis 4
Function before machining
insert blocks

For V816 - V819 the following applies: 0 -> undefined


otherwise up to max. 4 for the sequence
For V816 - V823 the following applies:
for use with functions before/after machining; insert blocks
set in screen forms
evaluation in graphics and NC macros

V824 Speed
set directly for functions before machining; insert blocks
from catalog for machining
set in macros from data in the geometry work file
evaluation in machine file

V825 Angle for oriented spindle stop


Function before machining
insert blocks
set directly for functions before machining; insert blocks

88  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

evaluation in NC macro/machine file

V826 Cutting value screen form/machining screen forms


D no. (offset value memory of tool)
set via machining/cutting value screen form
evaluation in NC macro/machine file

V827 NC macro/graphics macro


erfahr.dat V827=0
T no. (tool number)
preassignment in configuration file
set in screen forms on tool creation or tool change
evaluation in NC macro/machine file

V828 >Identifier for skippable blocks


pausbl.msk 0->do not skip NC blocks
1->skip NC blocks

V829 Coolant on 1->M08


off 2->M09
Function before machining
insert blocks
erfahr.dat V829=2
preassignment in configuration file
set via machining/cutting value screen form; functions; insert blocks
evaluation in NC macro/machine file

V830 Machining/cutting value screen form


WOPM: Index D no. (1-4)
evaluation in NC macro

V831 settable zero offset 1->G53


2->G54
3->G55
4->G56
5->G57
Function before machining;
insert blocks
erfahr.dat V831=2
preassignment in empirical value file
set via machining/cutting value screen form
evaluation in NC macro/machine file

V832 Memory for preparatory function in macro 0->rapid traverse


1->feedrate
set via functions before machining; insert blocks
evaluation in graphics and NC macros

V833 Tool change with/without auxiliary function


preassignment in configuration file
evaluation in NC macro
projekt.dat V833=0
0->no function
1->tool change with M06

V834 Direction of rotation

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 89


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

preassignment in configuration file


set via machining/cutting value screen form; functions before machining; insert blocks
evaluation in NC macro/graphics macro
1->M03
2->M04
3->M05
17->M19
projekt.dat V834=3
V835 Feedrate value in input unit
the input unit is defined during tool creation, the output unit can be selected in
the cutting value screen form for each machining type
feedrate value set via machining/cutting value form;
functions before machining; insert blocks
evaluation in NC macro

V836 Machining screen forms WOPM


System WOPT Init value
Time of technology output in NC code
preassignment in configuration file 1->immediately after tool change
2->after approaching starting point
projekt.dat V836=2

V837 Function output 1->none


2->immediately
3->after starting point
functions before machining
insert blocks
evaluation in graphics and NC macro

V838 Curr. pointer to variable for interpolation parameter: horizontal NC macro


V839 Curr. pointer to variable for interpolation parameter: vertical NC macro
V840 Curr. pointer to variable for axis name: horizontal NC macro
V841 Curr. pointer to variable for axis name: vertical NC macro
V842 Curr. pointer to variable for axis name: perpendicular NC macro
V843 Curr. pointer to variable for axis name: axis 4 NC macro

90  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

For V838-V843 the following applies:


Initialization of variables in NC macro, evaluation in machine file

V844 Sign for axis horizontal


V845 Sign for axis vertical
V846 Sign for axis perpendicular
V847 Sign for axis axis 4

For V844 - V847 the following applies:


Initialization in empirical value file
evaluation in NC macro/machine file
1 -> positive direction
-1 -> negative direction

V848 Assignment of override switch and settable zero


offset (ZO) as function of the machine plane
0->no effect
1->override switch dependent
with G17 1st switch/tool edge
with G18 2nd switch/tool edge
with G19 3rd switch/tool edge
with G16 4th switch/tool edge
2->settable ZO dependent
with G17 G54
with G18 G55
with G19 G56
with G16 G57
3->settable ZO and override switch dependent
with G17 G54 with G17 1st switch/tool edge
with G18 G55 with G18 2nd switch/tool edge
with G19 G56 with G19 3rd switch/tool edge
with G16 G57 with G16 4th switch/tool edge

V849 Return tool at end of program preassignment erfahr.dat


preassignment in empirical value file
set in the end of program screen form
evaluation in graphics/NC macro
0->no
1->M06 if V833=1

(WZW=Tool change)
V850 Sequence for approach WZW position axis 1 global
V851 Sequence for approach WZW position axis 2 global
V852 Sequence for approach WZW position axis 3 global
V853 Sequence for approach WZW position axis 4 global
V854 Sequence for approach reference point position axis 1 global
V855 Sequence for approach reference point position axis 2 global
V856 Sequence for approach reference point position axis 3 global
V857 Sequence for approach reference point position axis 4 global

For V850 - V857 the following applies:


preassignment in configuration file
0 -> undefined
otherwise up to max. 4 for the sequence

V858 Approach WZW position at end of program 0->no preassignment erfahr.dat


1->yes
preassignment in empirical value file

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 91


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V859 Approach reference point at end of program 0->no preassignment erfahr.dat


1->yes
preassignment in empirical value file

V860 Tool change position axis 1


V861 Tool change position axis 2
V862 Tool change position axis 3
V863 Tool change position axis 4
V864 Reference position axis 1
V865 Reference position axis 2
V866 Reference position axis 3
V867 Reference position axis 4

For V860-V867 the following applies:


Preassignment in configuration file

V868 WOPM: D no. for additional override switch output


V869 used in NC macro

Contour/surface machining:

V870 Approach strategy 1->direct


2->along contour
3->tangential to contour
4->tangential over quadrant
5->tangential from arc centre
6->tangential over semicircle
V871 Approach distance
V872 Approach radius
V873 Lower 1->before approach
2->after approach

V874 Lower with 1->rapid traverse (G00)


2->feedrate (G01)

Contour machining:

V875 Cutter radius path compensation: 1->during approach position


2->during lowering
3->during approach

V876 Retract strategy 1->no movement


2->along contour
3->tangential to contour
4->tangential over quadrant
5->tangential over arc centre
V877 Retract distance
V878 Retract radius
V879 Lift 1->before retraction movement
2->after retraction movement

V880 Lift with 1->rapid traverse


2->feedrate

V881 Cutter radius path compensation off: 1->during retraction movement


2->during lifting movement
3->after retract position

92  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

Solid machining:

V882 Lowering strategy 1->direct


2->inclined
3->spiral
V883 Lowering length
V884 Radius of spiral
V885 Pitch of spiral
V886 Lowering 1->rapid traverse
2->feedrate

Solid/surface machining:

V887 Lifting strategy 1->direct


2->inclined
V888 Lifting length
V889 Lift with 1->rapid traverse
2->feedrate
V890 Angle of inclination when lowering
V891 Angle of inclination when lifting
V892 Direction of rotation of spiral 1->right
2->left

For V870-V892 the following applies:


set via machining/approach/retract screen forms
evaluation in graphics/NC macro

V893
V894 intended for hole diameter
V895 intended for pos. hole axis 1
V896 intended for pos. hole axis 2
V897 intended for pos. hole axis 3
V898
V899 Save last feed setting

V900 G17 plane pointer to axis names: axis horizontal


V901 G17 plane pointer to axis names: axis vertical
V902 G17 plane pointer to axis names: axis perpendicular
V903 G17 plane pointer to axis names: axis 4

V904 G18 plane pointer to axis names: axis horizontal


V905 G18 plane pointer to axis names: axis vertical
V906 G18 plane pointer to axis names: axis perpendicular
V907 G18 plane pointer to axis names: axis 4

V908 G19 plane pointer to axis names: axis horizontal


V909 G19 plane pointer to axis names: axis vertical
V910 G19 plane pointer to axis names: axis perpendicular
V911 G19 plane pointer to axis names: axis 4

V912 G16 plane pointer to axis names: axis horizontal


V913 G16 plane pointer to axis names: axis vertical
V914 G16 plane pointer to axis names: axis perpendicular
V915 G16 plane pointer to axis names: axis 4

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 93


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

For V900 - V915 the following applies:


preassignment in configuration file
evaluation NC macro

V904 - V915 Unassigned


V916 Preparatory function for MS word output GF
V917 Preparatory function for MS word output GF
V918 Preparatory function for MS word output GF
V919 Preparatory function for MS word output GF

For V916 - V919 the following applies:


Initialization in NC macro 0->G00
Evaluation NC macro/machine file 1->G01
2->G02
3->G03

V920 Pointer for preparatory function for MS word output


use in NC macro/machine file

V921 Equidistant output by system (WOPM) 0->no


1->yes
preassignment in empirical value file

V922 Angle tool pointer to axis names for tool length comp. 1
preassignment in empirical value file (WOPM)
V923 Angle tool pointer to axis names for tool length comp. 2
preassignment in empirical value file (WOPM)

V924 Angle tool sign for axis names of L1


V925 Angle tool sign for axis names of L2

For V924 and V925 the following applies:


preassignment in empirical value file (WOPM)
1-> positive direction
-1-> negative direction
3-> deactivated

V926 Preparatory function for program start 0->G00


1->G01
preassignment in empirical value file

V927 Interpretation of approach distance 1->withdrawal distance


2->safety clearance
3->distance
4->plane
set in machining screen forms
evaluation NC macro

V928 Addition constant for graphics macro for reference and tool change point
(WOPM) not required for WOPT!
set in empirical value file
evaluation in graphics macro

V929 Factor for A dimension calculation for cycles 0->yes


(A dimension = tool centre point length) 1->no
set in machining screen forms
evaluation NC macro

94  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V930 Macro: approach distance / radius for internal calculations


V931 Macro: length of approach element in X
V932 Macro: length of approach element in Y
V933 Macro: length of approach element absolute
V934 Macro: X value approach point straight line or arc centre if circle
V935 Macro: Y value approach point straight line or arc centre if circle
V936 Macro: X value starting point approach arc
V937 Macro: Y value starting point approach arc
V938 Macro: arc direction
V939 Macro: arc strategy; X value starting point approach line

V940 Macro: arc strategy; Y value starting point approach line


V941 Macro: sign radius
V942 Macro: starting side of path for machining
V943 Macro-internal temporary memory
V944 Macro-internal temporary memory
V945 Macro-internal temporary memory
V946 Macro: interpretation approach distance
V947 Macro-internal temporary memory
V948 Preparatory function for MS word output GF 0->G00
1->G01
2->G02
3->G03
V949 Function output flag for several machining operations
V950 Macro: auxiliary variable for indexed output machine word Axis 1
V951 Macro: auxiliary variable for indexed output machine word Axis 2
V952 Macro: auxiliary variable for indexed output machine word Axis 3
V953 Macro: auxiliary variable for indexed output machine word Axis 4
V954 Macro: auxiliary variable for any selectable sequence of axes
V955 Macro: auxiliary variable for indexed output machine word GF
V956 Macro: auxiliary variable for indexed output machine word ZO
V957 Macro: auxiliary variable for indexed output machine word VE
V958 Macro: auxiliary variable for indexed output machine word VORS
V959 Macro: auxiliary variable for indexed output machine word SPDL

V960 Macro: store number zero offset


V961 Macro: auxiliary variable for indexed output machine word DRZ
V962 Macro: auxiliary variable for indexed output machine word KÜHL
V963 Macro: auxiliary variable for indexed output machine word WSPR
V964 Macro: output memory approach point horizontal axis
V965 Macro: output memory approach point vertical axis

V966 Free for user


V967 Free for user
V968 Free for user
V969 Free for user
V970 Free for user
V971 Free for user
V972 Free for user
V973 Free for user
V974 Free for user
V975 Free for user

V976 33 for output G33


initialization in program start macro
evaluation in machine file
NC macro

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 95


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V977 36 for output G36


initialization in program start macro
evaluation in machine file
NC macro
V978
V979
V980
V981 Feedrate output unit 1 -> mm/min
2 -> mm/rev
3 -> inch/min
4 -> inch/rev
set in machining/cutting value screen forms
evaluation in NC macro
V982
V983
V984
V985
V986 Function after machining zero offset
V987 Function after machining preparatory function
V988 Function after machining feedrate
V989 Function after machining axis 1
V990 Function after machining axis 2
V991 Function after machining axis 3
V992 Function after machining axis 4
V993 Function after machining sequence axis 1
V994 Function after machining sequence axis 2
V995 Function after machining sequence axis 3
V996 Function after machining sequence axis 4
V997 Function after machining spindle direction of rotation
V998 Function after machining angle for oriented spindle
V999 Function after machining coolant
V1000 Function after machining speed
V1001 Starting plane
set by system
evaluation in screen forms and macros
V1002 Final plane
set by system
evaluation in screen forms and macros
V1003 Drilling depth geometry
V1004 Drilling diameter geometry
V1005 Groove width geometry
V1006 Serial number islands
V1007 Serial number grooves
V1008 Serial number holes
V1009 Serial number points
V1010 Blank surface
For V1003 - V1010 the following applies:
use in geometry creation

V1011 Flag for "function output after machining" 1->no output macro
2->output
V1012 Offset in the infeed axis when machining holes
set in machining screen forms
evaluation in macros

96  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1013 Macro internal


V1014 Macro internal
V1015 Type of hole machining
V1016 Drilling depth, depends on V1015
V1017 Drilling depth, depends on V1015

For V1015 - V1017 the following applies:


set in machining screen forms
evaluation in macros

V1018 WOPT: Direction of rotation for "functions before machining"


(V834 is overwritten in graphics macro)

WOPM: Tool preselection: 0-> without preselection of next tool


1-> with preselection of next tool
2-> manual tool change

V1019 WOPT: No. of the active offset memory (1-4)


set in machining screen forms
evaluation in macros

V1020 Contour 1->open


2->closed
V1021 1st Contour element/last contour element 1->straight line/straight line
2->straight line/circle
3->circle/straight line
4->circle/circle
V1022 Length 1st contour element
V1023 Angle 1st contour element
V1024 Length last contour element
V1025 Angle last contour element
V1026 Angle = angle 1st element - angle last element
V1027 Approach 0->switch-on position
1->substitute strategy
2->as programmed
V1028 Delta to starting level

For V1020 - V1028 the following applies:


use in internal calculation in macros

V1029 Output ZO yes/no


V1030 Output GF yes/no
V1031 Output VE,VORS yes/no
V1032 Output SPDL yes/no
V1033 Output WSPR yes/no
V1034 Output DRZ yes/no

V1035 Backup V870


V1036 Backup V871
V1037 Backup V872

V1038 Output KÜHL yes/no

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 97


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

For V1029 - V1034, V1038 the following applies:


set in screen forms functions before machining; insert blocks
evaluation in NC macro
1->no output
2->output
V1039 Output ZO yes/no
V1040 Cycle control 0->macro
1->DIN code
2->cycles
V1041 Output GF yes/no
V1042 Output VE,VORS yes/no
V1043 Output SPDL yes/no
V1044 Output WSPR yes/no
V1045 Backup V876
V1046 Backup V877
V1047 Backup V878
V1048 Output DRZ yes/no
V1049 Output KÜHL yes/no

For V1039, V1041 - V1044, V1048,V1049 the following applies:


set in screen forms functions after machining
evaluation in NC macro
1->no output
2->output

V1050 Catalog feedrate unit


V1051 Catalog spindle direction of rotation
V1052 Catalog feedrate infeed
V1053 Catalog feedrate plane
V1054 Catalog feedrate retraction
V1055 Catalog feedrate (currently not used)
V1056 Catalog cutting speed / constant cutting speed
V1057 Catalog coolant
V1058 Constant cutting speed (milling)
Speed / limit speed (turning)
V1059 Interpretation cutting speed
1->cutting speed
2->constant cutting speed

For V1050 - V1059 the following applies:


set in machining/cutting value screen forms, macros
evaluation in NC macro

V1060 Buffer circle direction offset position


V1061 Buffer for V221
V1062 Buffer for V222
V1063 Buffer for V223
V1064 Buffer for V224
V1065 Buffer for V225
V1066 Buffer for V226
V1067 Buffer for V227
V1068 Buffer for V228
V1069 Buffer for V229
V1070 Buffer for V230
V1071 Buffer for V1216
V1072
V1073
V1074 Temporary buffer for different variables

98  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1075 Temporary buffer for different variables


V1076 Temporary buffer for different variables
V1077 Temporary buffer for different variables
V1078 Temporary buffer for different variables
V1079 Temporary buffer for different variables
V1080
V1081 Buffer for V201
V1082 Buffer for V202
V1083 Buffer for V203

For V1060 - V1083 the following applies:


Use in internal calculation in macros

V1084 Sign G17 1st axis


V1085 Sign G17 2nd axis
V1086 Sign G17 3rd axis
V1087 Sign G17 4th axis
V1088 Sign G18 1st axis
V1089 Sign G18 2nd axis
V1090 Sign G18 3rd axis
V1091 Sign G18 4th axis
V1092 Sign G19 1st axis
V1093 Sign G19 2nd axis
V1094 Sign G19 3rd axis
V1095 Sign G19 4th axis
V1096 Sign G16 1st axis
V1097 Sign G16 2nd axis
V1098 Sign G16 3rd axis
V1099 Sign G16 4th axis
For V1084 - V1099 the following applies:
Initialization in (WOPT:G18) configuring file
V1100
V1101
V1102
V1103
V1104

Functions before machining (preassignment in empirical value file):

V1105 Positioning velocity 1->rapid traverse


2->feedrate
preassignment from erfahr.dat
V1106
V1107 Time of function output 1->no output
2->before approach
3->at starting point
preassignment from erfahr.dat

V1108 Preassignment ZO 1->off


(ZO=zero offset) 2->1st ZO
3->2nd ZO
4->3rd ZO
5->4th ZO
preassignment from erfahr.dat
V1109

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 99


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

Functions after machining (preassignment in empirical value file):


V1110 Positioning velocity 1->rapid traverse
2->feedrate
preassignment from erfahr.dat
V1111
V1112 Time of function output 1->no output
2->before approach
3->at starting point
preassignment from erfahr.dat
V1113 Preassignment ZO 1->off
2->1st ZO
3->2nd ZO
4->3rd ZO
5->4th ZO
preassignment from erfahr.dat
V1114
Basic approach strategy (preassignment in empirical value file):
V1115 Movement at starting point 1->1st movement plane/2nd movement infeed axis
2->1st movement infeed axis/2nd movement plane
3->3-axis movement
4->Movement in plane only
V1116 Interpretation of defined distance
1->withdrawal distance
2->safety clearance
3->approach distance
4->safety plane
V1117 Withdrawal distance incremental to machining
V1118 Safety clearance incremental to machining
V1119 Approach distance
V1120 Allowance on blank surface for safety plane
V1121
V1122
V1123 Interpolation parameter horizontal, calculated in macro RKR
V1124 Interpolation parameter vertical, calculated in macro RKR
Approach to contour (preassignment in empirical value file):
V1125 Approach strategy 1->direct
2->along contour
3->tangential to contour
4->tangential over quadrant
5->tangential from arc centre
6->tangential over semicircle
V1126 Factor on tool radius for approach distance
V1127 Factor on tool radius for approach radius
V1128 Lowering time 1->before approach
2->after approach
V1129 Lowering velocity 1->rapid traverse
2->feedrate
V1130 Time "switch on cutter radius path compensation "
1->during approach position
2->while lowering
3->during approach

100  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

Retraction from contour (preassignment in empirical value file):

V1131 Retract strategy 1->no movement


2->along contour
3->tangential to contour
4->tangential over quadrant
5->tangential on arc centre

V1132 Factor on tool radius for retract distance


V1133 Factor on tool radius for retract radius

V1134 Lifting time 1->before retraction


2->after retraction
V1135 Lifting velocity 1->rapid traverse
2->feedrate

V1136 Time "switch off cutter radius path compensation"


1->during approach
2->while lifting
3->after retract position
V1137
V1138
V1139

Lowering for solid milling (preassignment in empirical value file):

V1140 Lowering strategy 1->direct


2->inclined
3->spiral
V1141 Factor on tool diameter for inclination length
V1142 Oblique angle in degrees
V1143 Factor on tool diameter for spiral radius
V1144 Spiral pitch in mm/rev
V1145 Direction of rotation of spiral 1->right
2->left

V1146 Lowering velocity 1->rapid traverse


2->feedrate
Lifting for solid milling (preassignment in empirical value file):

V1147 Lift strategy 1->direct


2->inclined
V1148 Factor on tool diameter for inclination length
V1149 Inclined angle in degrees

V1150 Lifting velocity 1->rapid traverse


2->feedrate
Approach for end milling (preassignment in empirical value file):
V1151 Approach strategy 1->direct
2->along contour
3->tangential to contour
4->tangential over quadrant
V1152 Factor on tool diameter for approach distance
V1153 Factor on tool diameter for approach radius

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 101


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

Lifting from end milling (preassignment in empirical value file):

V1154 Lift strategy 1->direct


2->inclined

V1155 Factor on tool diameter for inclination length


V1156 Angle of inclination in degrees
V1157 Lifting velocity 1->rapid traverse
2->feedrate
V1158
V1159

Strategy for contour machining (preassignment in empirical value file):

V1160 Direction of machining 1->in direction of contour definition


2->against direction of contour definition

V1161 Infeed division 1->maximal (specified infeed)


2->equal (calculated infeed <=
specified infeed )
V1162 Machining sequence 1->circulatory
2->reciprocating

V1163 Control of path compensation by the programming system for bottleneck problems
and decreasing radii.
1->yes
2->no
V1164 Machining side contour machining (in direction of travel)
1->centre
2->right
3->left
4->inside
5->outside

V1165 Element transitions rounding 1->yes


2->no

Strategy for solid milling (preassignment in empirical value file):

V1166 Machining side 1->outside


2->inside

V1167 Degree of overlap of milling paths in percent


V1168 Number of paths (0->complete solid machining
V1169 Draught in degrees

V1170 Maximum positioning path in feedrate in mm


V1171 Division of infeed 1->maximum
2->equal
V1172 Direction of machining (direction of circulation)
1->clockwise
2->counterclockwise

V1173 Stock removal direction 1->from the outside to the inside


2->from the inside to the outside

102  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1174 Treatment of contour starting levels for stock removal


1->ignore
2->observe

V1175 Element transitions rounding 1->yes


2->no

Strategy for end milling (preassignment in empirical value file):

V1176 Degree of overlap of milling paths in percent


V1177 Direction of circulation 1->clockwise
2->counterclockwise
V1178

Output control drilling (preassignment in empirical value file):

V1179 Output control 1->DIN code single blocks


2->control cycle

V1180 Output control cycle 1->as G function


2->as subroutine

Drilling/centering L81 (preassignment in empirical value file):

V1181 A dimension calculation 0->no


1->yes

Drilling/sinking L82 (preassignment in empirical value file):

V1182 A dimension calculation 0->no


1->yes
V1183 Dwell time in seconds

Deep hole drilling L83 (preassignment in empirical value file):

V1184 First drilling depth


V1185 Dwell time at starting point in seconds
V1186 Dwell time depth in seconds
V1187 Degression
V1188 Drilling strategy 1->chip breaking
2->stock removal

Tapping L84 (preassignment in empirical value file):

V1189 Allowance safety plane


V1190 Dwell depth in seconds
V1191 Direction of rotation retraction 1->automatic
2->right
3->left

V1192 Direction of rotation after cycle 1->automatic


2->right
3->left

V1193 Tapping 1->without encoder


2->with encoder

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 103


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1194 A dimension calculation 0->no


1->yes

Boring 1 L85 (preassignment in empirical value file):

V1195 Dwell time in seconds


V1196 A dimension calculation 0->no
1->yes
Boring 2 L86 (preassignment in empirical value file):

V1197 Dwell time in seconds


V1198 A dimension calculation 0->no
1->yes
Boring 3 L87 (preassignment in empirical value file):

V1199 A dimension calculation 0->no


1->yes
Boring 4 L88 (preassignment in empirical value file):

V1200 A dimension calculation 0->no


1->yes
V1201
V1202
V1203 Dwell time depth

Boring 5 L89 (preassignment in empirical value file):

V1204 A dimension calculation 0->no


1->yes
V1205 Dwell time depth

Deep hole drilling L83 (preassignment in empirical value file):


V1206 A dimension calculation 0->no
1->yes

Rectangular pocket (preassignment in empirical value file):


V1207 milling direction 1->right
2->left

Rectangular pocket (preassignment in empirical value file):


V1208 milling direction 1->right
2->left
V1209

V1210 Manual milling, system internal


1->circulatory
2->reciprocating

V1211 WOPM: Rigid tapping; switch on rotary axis


V1212 WOPM: Rigid tapping; switch off rotary axis
V1213 WOPM: Rigid tapping; number rotary axis
V1214 WOPM: Rigid tapping; starting position

V1215 Speed for threading (assigned by the system)


if assigned output in NC macro, then reset

104  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1216 Value constant cutting speed


set in NC macro (from data of geometry work file)
evaluation in machine file

V1217 Identifier thread cutting 1->longitudinal


2->face
set by system
evaluation in NC macro

V1218 Value pitch thread cutting


set by system
evaluation in NC macro/machine file

V1219 Macro debugger 0->off


1->on

V1220 Tool change position X axis


preassignment in empirical value file
V1221 Tool change position Z axis
preassignment in empirical value file

V1222 Approach strategy for machining 1->X/Z


set by system 2->Z/X
evaluation in machining screen forms 3->XZ

V1223
V1224 Approach strategy tool change point 1->X/Z
set by system 2->Z/X
evaluation in machining screen forms 3->XZ
4->X
5->Z

V1225 Flag for G41/G42 exchange on negative axis sign


set in program start macro
evaluation in NC macro/machine file

V1226 Reserved for turning system


V1227 Reserved for turning system
V1228 Reserved for turning system
V1229 Reserved for turning system

V1230 Maximum speed of machine


preassignment in configuration file
evaluation in NC macro

V1231 Minimum speed of machine


preassignment in configuration file
evaluation in NC macro

V1232 Thread cutting: pointer to current axis names


set in NC macro, depends on V1217
evaluation in machine file

V1233 G function tapping


set by system 63-> output G63 (tapping)
evaluation in machine file

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 105


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1234 Diameter output 1->no


2->yes
preassignment in configuration file
evaluation in machine file

V1235 Radius compensation, to be assigned before machine word "SRK" is called


(memory for system variable V191)
evaluation in machine file 0->no compensation
1->compensation left
2->compensation right

V1236 Buffer V1234 for face end/peripheral surface


for switching from diameter output to radius output

V1237 Offset machine zero -> workholder zero


V1238 reserved for workholder
V1239 reserved for workholder

V1240 Tool change point X axis


V1241 Tool change point Z axis
V1242 Approach strategy for machining 1->X/Z
2->Z/X
3->XZ
For V1240-V1242 the following applies:
set in tool change screen form
evaluation in macros

V1243 M function rotary axis on/off


set in NC macro
evaluation in machine file

V1244 Flag for G02/G03 exchange


set in program start macro
evaluation in NC macro/machine file

V1245 Macro-internal: flag for const. cutting speed <=> cutting speed switchover
necessary where several mach. operations performed with same tool; 1-> previous
Machining performed at constant cutting speed

V1246 Screen form internal: flag for output unit (constant


cutting speed <=> cutting speed) switchover for same tool

V1247 Control technology output


1-> Technology output on tool change
2-> Technology output after starting position approach
3-> 1 + additional technology output for machining
(cutting value screen form called)
4-> 2 (cutting value screen form called)
initialization (with V836) in machining screen forms (milling) or by
system (turning/drilling)
evaluation in NC macro

V1248 Approach strategy tool change point 1->X/Z


set in machining screen forms 2->Z/X
evaluation in macros 3->XZ
4->X
5->Z

106  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1249 1-> metric system


2-> inch system
preassignment in empirical value file

V1250 - V1310: Reserved for turning system


preassignments in empirical value or configuration file
evaluation in system

V1250 Roughing: output of the tool path


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1251 Grooving: Safety clearance outside CLD


V1252 Grooving: Safety clearance inside CLD
V1253
V1254 Minimum overlap for rough grooving MO
MO = tool nose radius * V1254

V1255 Height to leave for chamfer/fillet on slot base


during rough grooving (thread recess)
Value = tool nose radius * V1255

V1256 Finish turning: display traverse contour on contour output (V1364 = 0)


0->no
1->yes

V1257 Roughing: tool wear compensation in %


tool nose radius += (tool nose radius * V1257) / 100.0

V1258 Finishing: tool wear compensation in %


tool nose radius += (tool nose radius * V1258) / 100.0

V1259 Safety clearance from the shoulder during finish grooving


CLD1 = tool nose radius * V1259

V1260 Lifting dimension in the groove during rough grooving DV


DV = tool nose radius * V1260

V1261 Shoulder chamfers < chamfer value not rough grooved


Chamfer value = tool width * V1261

V1262 Shoulder fillets < radius not rough grooved


Radius = tool width * V1262

V1263 Chamfers and fillets on the base are rough grooved in steps
0->no
1->yes

V1264 Retraction always to maximum diameter


0->no
1->yes

V1265 Dwell time during backing off

V1266 Feedrate factor during retraction


0->rapid traverse
>0->feedrate

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 107


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1267 Below relative permissible overlap tolerance:


Value = (1.0 - V1267) * overlap

V1268 Parting: output of the tool path


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1269 Thread cutting: output of the tool path


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1270 Blank update groove


0->no
1->yes

V1271-V1280: THREAD CUTTING

V1271 Safety clearance outside/face CLD

V1272 Safety clearance inside CLD

V1273 Arc-in section AD

V1274 Arc-out section OD

V1275 Standard number of turns NOT

V1276 Thread cut sequence multiturn thread


0->finish per turn
1->alternating
V1277 Cut segmentation
2->const. cutting depth
3->const. stock removal volume

V1278 Return travel


0->no
1->yes
V1279 Infeed
0->rapid traverse
1->feedrate
V1280 Edge angle

V1281-V1286: ROUGH TURNING / FINISH TURNING:

V1281 Factor for calculating outside threads

V1282 Factor for calculating inside threads

V1283 Safety clearance outside CLD

V1284 Safety clearance inside CLD

V1285 Diameter allowance OX

V1286 End face allowance OZ

108  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1287 Rough turning: retraction from contour (last cut)


0 -> Lift rapid traverse, do not exit (SM1)
1 -> Lift feedrate, do not exit (SM2)
2 -> Lift rapid traverse and exit (SM3)
3 -> Lift feedrate and exit (SM4)
4 -> Exit without lift (SM5)

V1288 Rough turning: angle for allowance calculation on the taper


Taper angle <= value -> allowance = diameter,
Taper angle > Value -> allowance = end face

V1289 Roughing depth CT


CT = V1289 * max. cutting depth of the tool

V1290 Finish turning: factor for radius calculation during approach via circle
circle radius = V1290 * RS (tool nose radius on tool)
if RS = 0.0 substitute value taken as RS (V1291)

V1291 Finish turning: substitute value for RS on tool

V1292 Tool nose position at starting point:


1->before programmed point TO
2->at programmed point ON
3->after programmed point PAST

V1293 Rough turning: lift angle DA

V1294 Finish turning: approach strategy at corner


0 -> from machining direction (1)
1 -> tangential (2)
2 -> round arc (3)

V1295 Offset value during approach round circle

V1296 Rough turning: angle for switchover from face feedrate to diameter feedrate

V1297 Length of end straight line between beginning and end point
on finished part contour and blank during generation of the stock removal segments

V1298 Grooving: tool wear compensation in %


tool nose radius += (tool nose radius * V1298) / 100.0

V1299 Finish turning: Retraction from contour (last cut)


0 -> Lift rapid traverse, do not exit (SM1)
1 -> Lift feedrate, do not exit (SM2)
2 -> Lift rapid traverse and exit (SM3)
3 -> Lift feedrate and exit (SM4)
4 -> Exit without lift (SM5)

V1300 Decision value for conditional follow-up


V1300>Angle between main tool nose and follow-up object -> follow-up

V1301 Lift dimension after the cut DV


DV = tool nose radius * V1301

V1302 Offset direction


0->in cutting direction
1->tangential

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 109


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1303-V1309: PARTING:

V1303 Dwell time during backing off

V1304 Lift dimension during parting DV


DV = tool nose radius * V1304

V1305 Retraction factor for feedrate RFF


factor for feedrate reduction during retraction
0->rapid traverse

V1306 Substitute value for RS during parting, if rs = 0.0

V1307 Diameter from which the feedrate reduction is to apply DR

V1308 Diameter steps for feedrate reduction DI

V1309 Value of the feedrate reduction

V1310 Thread cutting: degression calculation for const. stock removal volume by
0->Siemens formula
1->Böhringer formula

V1311-V1340 Tool data (preassignment in empirical value file):

V1311 Length tool holder


V1312 Width tool holder
V1313 Depth tool holder
V1314 Tool holder dimension longit./trans.
V1315 Tool holder dimension Depth
V1316
V1317 Width shank
V1318 Depth shank
V1319 Shank dimension width

V1320 Shank dimension depth


V1321 Width cutting tip
V1322 Insert position
V1323 Tool holder type 1->longit.
2->trans./left
3->trans./right
V1324 Minimum cutting depth for turning tools
V1325 Maximum cutting depth for turning tools
V1326 Length tool holder
V1327 Diameter tool holder
V1328 Diameter shank
V1329

V1330
V1331 Length chuck body
V1332 Inside diameter chuck body
V1333 Outside diameter chuck body
V1334 Longit. dimension
V1335
V1336 Maximum speed
V1337
V1338

110  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1339
V1340
V1341 Control variable speed series, empirical value file:
1->no speed series
2->speed series, automatic
3->fixed speed series, M[V1351]
4->fixed speed series, M[V1352]
5->fixed speed series, M[V1353]
6->fixed speed series, M[V1354]
V1342 As for V1341, runtime
V1343 Speed series 1, minimum
V1344 Speed series 1, maximum
V1345 Speed series 2, minimum
V1346 Speed series 2, maximum
V1347 Speed series 3, minimum
V1348 Speed series 3, maximum
V1349 Speed series 4, minimum
V1350 Speed series 4, maximum
V1351 M function, speed series 1
V1352 M function, speed series 2
V1353 M function, speed series 3
V1354 M function, speed series 4

For V1341 - V1354 the following applies:


Preassignment in Configuration file
evaluation in NC macro

V1355 M function speed series for current speed


set in NC macro
evaluation in machine file

V1356
V1357
V1358
V1359

V1360 System internal test variable


10 => screen form debugger on
V1361 System internal trace variable
V1362 Blank orientation (preassignment empirical value file)
V1363 Blank offset (preassignment empirical value file)

V1364 Finishing (configuration file)


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1365 Rough grooving (configuration file)


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1366 Output tool path (configuration file)


0->behind turning centre
1->in front of the turning centre

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 111


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1367 Display kinematics screen form during editing (empirical value file)
0->no
1->yes

V1368 System variable, important for C axis


1->Milling
2->Turning

V1369 M function rotary axis on


set in configuration file
evaluation in NC macro

V1370 M function rotary axis off


set in configuration file
evaluation in NC macro

V1371 Starting value simulation during turning (empirical value file)


0->continuous
1->block by block

V1372 Safety clearance for automatic calculation of the drilling depth


(empirical value file)
V1373 Sign 3rd axis (V846)
V1374 Pointer to address letters speed output
set in NC macro
evaluation in machine file

V1375 Current plane (NC macro) 0->turning plane


1->face end
2->peripheral surface

V1376 Option C axis (configuration file) 1->with C axis


2->without C axis

V1377 Interpolation parameter SIPH


V1378 Interpolation parameter SIPV

V1379 Spindle stop for tool change


set in configuration file 0->no
evaluation in NC macro 1->with M05

V1380 Offset deselection on tool change


set in configuration file 0->no
evaluation in graphics and NC macro 1->yes

V1381 Maximum speed of the machine


set in configuration file
evaluation in program beginning screen form

V1382 Reference variable transmit on/off


evaluation in machine file

V1383 Tool selection from magazine (empirical value file)


set in empirical value file 0->two-step
evaluation in system 1->single-step

112  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1384 Rough turning: approach to contour (empirical value file)


1 -> in machining direction (SM1)
2 -> perpendicular to mach. dir. (SM2)
3 -> perpendicular to contour (SM3)

V1385 Thread cutting: tool wear compensation in % (empirical value file)


tool nose radius += (tool nose radius * V1385) / 100.0

V1386 Spindle number rotating tool


set in configuration file
evaluation in NC macro

V1387 Pointer to address letters direction of rotation


set in NC macro
evaluation in machine file

V1388 WOPM: CRC control


V1389 WOPM: CRC control

V1390 Type of dwell time output during backing off (empirical value file):
0->in seconds
1->in revolutions

V1391 G function transmit selection (configuration file)


131->G131
231->G231
331->G331

V1392 G function transmit deselection (configuration file)


130->G130
230->G230
330->G330

V1393 Infeed offset for face end (V185) and peripheral surface (V271), macro internal

V1394 Finish grooving (configuration file)


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1395 NC_trace output (for DIN_code generation) (configuration file):


0->no
1->yes

V1396 Modal memory G60/G64


set in NC macro
evaluation in machine file

V1397 M function output for powered tool (configuration file)


0->no
1->yes

V1398 Cutting position at the end point (empirical value file):


1->before programmed point TO
2->at programmed point ON
3->behind programmed point PAST

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 113


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1399 M function "Engage rotating tool" (configuration file)


V1400 M function "Disengage rotating tool" (configuration file)
V1401 M function (V1399 or V1400) for machine word "KOP"
set in NC macro
evaluation in machine file

V1402 97 for output G97


Evaluation in machine file
V1403 Index standard format
1 -> 3 decimal places
2 -> 4 decimal places
3 -> 5 decimal places
V1404-V1406:
Sequence of the axes for functions before/after machining; insertion blocks (NC macro)

V1407 Level form elements; sum of the place values (empirical value file)

V1408 Roughing parallel with the contour: tool wear compensation in %


(empirical value file)
tool nose radius += (tool nose radius * V1408) / 100.0

V1409 Roughing parallel with the contour (configuration file)


0 -> contour is output
1 -> tool nose centre point: equidistant
2 -> theoretical tool tip P point output

V1410 Length contour element programmable undercut (empirical value file)


V1411 Width contour element programmable undercut (empirical value file)

V1412 Output system inch/metric (empirical value file)


evaluation in screen forms(cutting values), NC macros and in machine file
1 -> metric
25.4 -> inch

V1413 Output of general speed limitation G26 (configuration file)


evaluation in NC macro
0 -> yes
1 -> no

V1414 Current plane for creation of a work schedule (assigned by system)


evaluation in graphics and NC macros
0 -> turning plane
1 -> face end
2 -> peripheral surface

V1415 Tool nose radius of old tool on tool change


V1416 Customer ID of old tool on tool change
V1417 Tool change point X axis corrected by tool nose radius
V1418 Tool change point Z axis corrected by tool nose radius

For V1415 - V1418 the following applies:


set by system
evaluation in graphics and NC macros

V1419 - V1421:
Zero offset face end/peripheral surface for simulation
equivalent to V185-V187 during NC generation

114  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

V1422 Tapping Face end/peripheral surface (empirical value file)


1 -> without encoder
2 -> with encoder
V1423
V1424 XS of old tool on tool change
V1425 ZS of old tool on tool change

V1426 Speed factor for mach./insertion blocks for turning


set in screen forms
evaluation in NC macros

V1427 Tool type 0-9 of old tool on tool change


V1428 Tool type 0-9 of current tool on tool change
V1429 Insert length of old tool on tool change
V1430 Minimum drilling diameter of old tool on tool change

For V1424, V1425, V1427 - V1430 the following applies:


set by system
evaluation in graphics and NC macros

V1431 Y axis/face end (planned)

V1432 Collision check (empirical value file)


0->no
1->yes

V1433 Size of protection zone for collision


V1434 Traverse to minimum drilling diameter
0->no
1->yes
V1435 WOPT/WOPM
1-> Milling system (WOPM)
2-> Turning system (WOPT)

V1436 - V1438: Change plane point WOPM


V1436 Horizontal axis X
V1437 Vertical axis Y
V1438 Perpendicular axis Z

V1439 Approach strategy change plane point WOPM

V1440 Inclinable table lower limitation (degrees)


V1441 Inclinable table upper limitation (degrees)

V1442 Pointer to machine word "C"

V1443 Unassigned

V1444 Control value change plane point WOPM


0->Screen form not yet called => preassignment from V860ff
1->Screen form called at least once => preassignment from V1436ff

V1445 Machine type


1->Vertical machine
2->Horizontal machine

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 115


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1446 Angle 2nd rotary axis (inclinable table) for output in machine file

V1447 Offset X for eccentric clamping (planned)


V1448 Offset Y for eccentric clamping (planned)

V1449 Plane flags (16-19) for WOPM peripheral surface


V1450 Peripheral surface WOPM: value rotary axis
V1451 Control
1->840C
2->840D

V1452 Auxiliary factor for graphics macro for machining in front of the machining centre
1->behind the machining centre
2->in front of the machining centre
set in the program beginning macro (101)
evaluation on all outputs of the X axis

V1453 Automatic
0->no
1->step 1

V1454 Auxiliary variable screen forms

V1455 Offset peripheral surface planes (WOPM)


V1456 Infeed side machining operations (WOPM)
V1457 Type of change plane
1-> Machine surface after rotating rotary table
2-> Machine surface after swivelling millhead

V1458 Sign 1st axis (WOPM)


V1459 Sign 2nd axis (WOPM)
V1460 Sign 3rd axis (WOPM)

V1461 ZO rotary table centre -> workpiece zero 1st axis (program beginning screen form)
V1462 ZO rotary table centre -> workpiece zero 2nd axis (program beginning screen form)
V1463 ZO rotary table centre -> workpiece zero 3rd axis (program beginning screen form)

V1464 ZO rotary table centre -> workpiece zero 1st axis (by the system for each plane)
V1465 ZO rotary table centre -> workpiece zero 2nd axis (by the system for each plane)
V1466 ZO rotary table centre -> workpiece zero 3rd axis (by the system for each plane)

V1467 Flag initial state G41/G42 (equivalent to V1225)

V1468 Flag initial state G02/G03 (equivalent to V918)


V1469 Flag initial state G02/G03 (equivalent to V919)

V1470 1st axis output on change plane


V1471 2nd axis output on change plane
V1472 3rd axis output on change plane
V1470 - V1472: 1 -> yes
2 -> no

V1473 Drilling cycles R2


V1474 Drilling cycles R3
V1475 Drilling cycles R10
V1473 - V1475: Absolute values
Calculation different for face end and peripheral surface

116  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.1 Real/integer variables

Calculation in the macro


Call from G81-G89, L81-L89

V1476 Relief cutting during rough turning/finish turning


V1477 Clearance angle during relief cutting
V1478 Retraction path rough grooving
V1479 Retraction path
0 -> rapid traverse
1 -> feedrate
V1480 Factor for offset value for all turning operations

V1481 Rotary axis (WOPM)


1 -> X axis
2 -> Y axis
3 -> Z axis

V1482 - V1485 Attributes: assignment table symbol <-> value

V1486 Generate flag for part program indicating that no PA has been called.
evaluation in B01: only output if PA first
reset to 0 in PE

V1487 Set if B01 called before PA, i.e. in B01 no DIN code
output, output before PA.
reset to 0 in PE

V1488 Preassignment for “simple input” in the GP


1 -> simple screen forms
2 -> full screen forms

V1489 Automatic display of auxiliary screen forms


1 -> yes
2 -> no

V1490 Reserved
V1491 Reserved

V1492 ZO functions before machining

V1493 0 -> normal SLY


1 -> SLY before PE

V1494 Memory V827 on tool change (required for calculation of offset)

V1495 Direction of rotation rotary table


1 -> counterclockwise
-1 -> clockwise

V1496 Surface geometry input


0 -> conventional
1 -> quick input (1 softkey, PCX image and cursor keys)

V1497 Position feed axis to rotary table

V1498 Machine type


0 -> horizontal
1 -> vertical

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 117


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.1 Real/integer variables

V1499 Number of V variable to be monitored

V1500 Position-correct entry of geometry for vertical machines


0 -> horizontal
1 -> vertical

V1501 Peripheral surface unit


1 -> mm
2 -> degrees

V1502 - V1515 Rotary axis for insert blocks

V1516 1st rotary axis for change plane procedure


V1517 2nd rotary axis for change plane procedure
V1518 3rd rotary axis for change plane procedure

V1520 - V1521 UP for NC blocks

V1522 - 1524 X-Y-Z coordinates for change plane;


preassignment of V1522 - V1524
is executed with V1436 - V1438,
if necessary, this end point is modified
for multi-side machining.

V1525 - V1526 Pointer to axis names 5th and 6th axis

V1527 G90/G91

V1528 Flag of ZO for reclamping

V1529 Variable number to be monitored

V1530 Axis types rotary axis 0 -> not available


V1531 Axis types rotary axis 1 -> table
V1532 Axis types rotary axis 2 -> head

V1533 Angle rotary axis for plane selection


V1534 Angle rotary axis for plane selection
V1535 Angle rotary axis for plane selection

V1536 Flag for program end


V1537 Flag for macro EEB to be executed
V1538 for control of output of "➙"
V1543 for control of output of "➙"

V1539 Free angle input for 1st rotary axes


V1540 Free angle input for 2nd rotary axes
V1541 Free angle input for 3rd rotary axes

118  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.2 String variables

7.2.2 String variables

V1950 End of program M30/M02/M17


set in the end of program screen form
evaluation in NC macro

V1951 Content can be output on tool change


set in empirical value file
evaluation in NC macro

V1952 Address for block number ":" or "N" or "/N", macro internal

V1953 Memory for BLANK or "/", macro internal

V1954 Memory for ":" or "N", macro internal

V1955 Macro debugger: content = macro name, at which stop occurs

V1956 T no. of last tool, set by system, for editing

V1957 Address letter speed of powered tool


set by the NC macro
evaluation in machine file

V1958 Address letter speed turning


set by the NC macro
evaluation in machine file

V1959 "WSPR" for indexed output, macro internal


V1960 assigned in macro
V1961 "GF" for indexed output, macro internal
V1962 "ZO" for indexed output, macro internal
V1963 "VE" for indexed output, macro internal
V1964 "VORS" for indexed output, macro internal
V1965 "SPDL" for indexed output, macro internal
V1966 "DRZ" for indexed output, macro internal
V1967 "KÜHL" for indexed output, macro internal

V1968 Free for user


V1969 Free for user

V1970 Axis name horizontal face end


set in configuration file
evaluation in machine file

V1971 Axis name vertical face end


set in configuration file
evaluation in machine file
V1972 Axis name feed face end
V1973 Axis name 2nd rotary axis
V1974 Address letter dwell time
S -> dwell time in revolutions
F -> dwell time in seconds

V1975 For help window


V1976 Function before machining line 1
V1977 Function before machining line 2

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 119


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.2 String variables

V1978 Beginning of program program no. , preassignment empirical value file


V1979 Beginning of program drawing number
V1980 Beginning of program date of creation
V1981 Beginning of program machine name, preassignment empirical value file
V1982 Beginning of program handled by
V1983 Beginning of program comment

V1978 - V1983:
Set in the program beginning screen form
evaluation in NC macro

V1984 "POSO" for indexed output, macro internal


V1985 "SHE" for indexed output, macro internal
V1986 "SVE" for indexed output, macro internal
V1987 "SSE" for indexed output, macro internal
V1988 "POS4" for indexed output, macro internal

V1989 Memory for MPF or SPF, macro internal

V1990 Axis name Axis 1


V1991 Axis name Axis 2
V1992 Axis name Axis 3
V1993 Axis name Axis 4
V1994 Name of interpolation parameter for axis 1
V1995 Name of interpolation parameter for axis 2
V1996 Name of interpolation parameter for axis 3
V1997 Content can be output at beginning of program

V1990 - V1997:
Set in the configuration file
evaluation in machine file

V1998 Function after machining Line 1


V1999 Function after machining Line 2

V2000ff

V2000 WOPT: address letter direction of rotation for normal turning


set by the NC macro
evaluation in machine file

V2001 WOPT: address letter direction of rotation for powered tools


set by the NC macro
evaluation in machine file
V2002
V2003 Address letter circle output peripheral surface
set in the configuration file
evaluation in machine file

V2004 Axis name 6th axis

120  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.2.2 String variables

SINUMERIK 840D

V2005 - V2007 Axis designation face end

V2005 Horizontal axis X1


V2006 Vertical axis Y1
V2007 Perpendicular axis Z1

V2008 - V2010 Axis designation peripheral surface

V2008 Horizontal axis X2


V2009 Vertical axis Y2
V2010 Perpendicular axis Z2

V2011 Control comment character


set in the program beginning macro (101)
evaluation on each comment output
";" for 840D
NL for 840C

V2012 DIN code swivel angle head WOPM


V2013 DIN code screen-form internal for preassignment
V2014 Tool change code replaces "V1106"

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 121


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.2.3 Variables for the end user

7.2.3 Variables for the end user


Variable range for the end user:

V966-975 Data type real / integer

V966 Free for user


V967 Free for user
V968 Free for user
V969 Free for user
V970 Free for user
V971 Free for user
V972 Free for user
V973 Free for user
V974 Free for user
V975 Free for user

V1968-V1969 Data type character (string)


character length per string max. 40
V1968 Free for user
V1969 Free for user

122  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.3 System variables

7.3 System variables

This section describes the system variables that are required for applications when
configuring screen forms and macros.
System variables that are only used in the geometry file or in other hidden parts of the
system are not listed here.

7.3.1 Path machining

The following features are taken over by the basic system for path machining:

• Infeed depth
• Milling against contour direction
• Radius compensation

Infeed depth:

A depth must be specified for path machining ( = starting level minus end level ). So that this
depth can be reached it is necessary to specify an infeed ( = height that is removed in one
machining operation).

Machining of the contour is repeated with increasing Z level until the specified end level is
reached. There are two ways of reaching the Z level of the specified end level in the last
machining operation:

Maximum infeed:

If the value for the depth is not an integer multiple of the value for the infeed, another infeed
is used in the last machining operation.
This infeed is smaller than that specified with the parameter Z.

Constant infeed:

Starting from the specified infeed, a new infeed is calculated with which an integer number of
infeeds can reach the specified depth.
This infeed calculated by the system is always less than that specified by the user.

If the contour contains gaps, they are avoided with the use of macros.

In "reciprocating" mode, the tools is moved perpendicularly to the next infeed level at
feedrate at the end of a machining operation (in the simplest case). From there the
operation is performed backwards.
The radius compensation is reversed before this operation of course.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 123


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
Radius compensation:

Radius compensation:

By specifying the position of the tool with respect to the machining operation (central, left,
right, inside, outside) it is possible to apply a radius compensation. The equidistant
calculated is shown on the screen.

The following mode (V92) of the radius compensation is valid:

2:
In the NC code, no standard blocks are output for the radius compensation. The variable
V191 is set to 1 or 2, in accordance with the tool position and the uncorrected path is output.
The NC system calculates the correct path using information about the position of the tool.
The correct value for the starting macro is already available in the variable V191.
After the last block has been output and before the end macro is called, variable V191 is set
to zero.

During reciprocation:
The radius compensation is reversed.

Bottleneck compensation:
If the bottleneck compensation is activated, an equidistant is calculated in the first step to
the contour to be machined with the specified values. The bottlenecks are compensated and
then these values are reversed and the equidistant calculated back. This contour is then
output into the NC program.
The calculation obviates cuts that could not be made with the current tool. Because the
equidistant might have to describe circles around acute corners, the final contour does not
have to match the original contour.

Milling against the direction of the contour:

The specified contour is machined against the defined direction.


During reciprocation, the second machining operation is then in the defined contour
direction.

124  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
Combination of parameters:

Combination of parameters:

The following system variables are available to the user for path machining:

The first to third columns of the table contains system internal data (e.g. required in the
geometry file) that is only listed here for the sake of completeness. The fourth column if the
number of the variable under which the parameter can be addressed in the input screen
form, the fifth column is the variable number for macros and NC blocks, the sixth column
briefly explains the parameters.

B TF Par Var MVar Explanation



R 121 1 V91 V303 Tool radius
M 127 2 V92 V304 Radius compensation mode
A 35 3 V93 V305 Allowance
S 63 4 V94 V306 Path side
O 86 5 V95 V307 Offset in Z
T 45 6 V96 V308 Depth
D 44 7 V97 V309 Direction opposite/same
Z 46 9 V99 V311 Infeed
S 47 10 V100 V312 Safety clearance
K 128 11 V101 V313 Residual contours
L 88 12 V102 V314 Undefined
V 54 13 V103 V315 Undefined
L 88 14 V104 V316 Undefined
P 91 15 V105 V317 Reference plane
Q 36 16 V106 V318 Quadrant
L 54 17 V107 V319 Undefined
Z 100 18 V108 V320 Infeed constant/maximum
T 49 19 V109 V321 Type reciprocating / non-reciprocating
I 32 20 V110 V322 Undefined
R 19 21 V111 V323 Undefined
W 21 22 V112 V324 Undefined
O 33 23 V113 V325 Undefined
R 19 24 V114 V326 Undefined
W 21 25 V115 V327 Undefined

Meaning of the abbreviations in the table:

B: Letter of the parameter as it is entered in the standard text file at the position whose number is in the
next column.
TF: Number of the letter in the text file in lines 23 - 26. The number specifies the position in the total
number of letters.
Par: Internal parameter number. This column is uninteresting for the user.
Var: Variable number of the parameter for communication with screen forms.
MVar: Variable number of the parameter in the NC block or in macros.
Explanation: Brief explanation. More details in the text.

V303:
Tool radius. Required to calculate an equidistant path with respect to the specified contour.
The tool radius is ignored if a tool position is specified. If the radius in the input line is
missing, path machining accesses the variable V401. This variable is assigned to the tool
radius by the basic system.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 125


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
Combination of parameters:

V304:
Radius compensation mode. The value behind this parameter is equivalent to the position of
the switch for radius compensation in the machine file.
Is always on the previous value 2 in the system (see also Section Radius compensation).

V305:
Allowance. Included in the calculation of the equidistant path.

V306:
Path side. The parameter is required for radius compensation.
0: Central, i.e. no radius compensation.
1: Left.
2: Right.
3: Inside. Calculates whether to move left or right to the next discontinuity point using the
contour segment. This contour segment must be closed. If it is open or its direction of
rotation cannot be calculated (e.g. on overlaps or if the number of contour elements
until the next gap is more than 500), motion continues on the side of the path of the
last contour segment . If this occurs at the beginning of machining, motion is
performed in the centre. The side of the path output to the NC block is right or links
depending on the contour direction.

This information can cause the path side to change


in the middle of path machining (V191 changes!).

4: Outside. As for inside.

V307:
Offset in Z. This value is added to all outputs for path machining in Z. This parameter only
exists for reasons of compatibility. Its value is copied to these two parameters if depth and
infeed are not specified. The screen form does not request a value for this parameter.

V308:
Depth for the depth infeed. The value of this parameter is an absolute value. See Section
"Depth infeed" for more details.

V309:
This parameter specifies the direction in which the contour is machined:

0: The contour is machined in a defined contour direction. This is also the default
setting if the parameter is missing.
1: Machining is performed against the defined contour direction.

Direction explained in Section "Milling against contour direction"

V311:
Infeed for the depth infeed. The value of this parameter is an absolute value. See Section
"Depth infeed" for more details.

V312:
Safety clearance for traverse motions.

126  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
Standard blocks:

V313:
This parameter is not normally specified. If it is specified with a value 1 after it, the path
machining manages residual contours.

V317:
Reference plane for traverse motions.

V318:
Quadrant for calculation of the equidistant path.

V320:
Segmentation of the infeed. The values after the parameter have the following meanings:
0: Maximum infeed.
1: Constant infeed.

Explained in Section "Depth infeed".

V321:
Machining mode. Influences the type of infeed from one machining level to the next.
The following values can be placed after the parameter:

0 - 2: circulating
3 - 5: reciprocating

The macros perform all the necessary approach and retract motions in accordance with the
mode set.

Standard blocks:

Path machining requires the following standard blocks for NC block output:

• G00 for linear motion in rapid traverse.

• G01 for linear motion at feedrate.

• G02 for circular motion, clockwise.

• G03 for circular motion counterclockwise.

These standard blocks are defined in the machine file.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 127


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.3.2 Solid machining

7.3.2 Solid machining

The basic system provides the following features for solid machining:

• One to any number of closed contours are required. With open contours, problems can
occur in calculation because they are automatically closed by the system.

• Any sequence of these contours is possible, i.e. inside contours can be defined before
outside contours (or vice versa).

• Any definition direction is possible for the contours. It is reversed internally so that
machining is always performed in the same direction. The machining direction
(clockwise/counterclockwise) can be entered in a screen form.

• It is always assumed that the outside contour is always to be machined, i.e. this area is
a pocket in inside machining. Continuing from here, the next contours are islands,
contours in the islands are pockets again etc.

• All contours are considered finished contours, i.e. unfinished contours are not
considered at the moment.

• The limit is currently approx. 400 contour elements to be machined.

• The initial contour is always at the height defined in the contour and is parallel with the
XZ plane.

• Machining is always performed in the negative Z direction up to the specified depth.

• The cutting depths can be constant or infeed can be constant.

• Consideration of differing beginnings for the contours can be controlled via screen form
input. Differing machining depths are not possible in calculation.

• Constant allowance is observed on all contours.

• Constant slope is observed on all contours.

• Machining can be performed from inside to outside or vice versa.

• Cutter with corner radius or ball radius (corner radius=cutter radius) are taken into
account.

128  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.3.2 Solid machining

The following system variables are available to the user in solid machining (solid milling, end
milling, manual milling):

B MVar Explanation

R V303 Tool radius
E V304 Corner radius
A V305 Allowance
U V306 Overlap
D V307 Direction of rotation
T V308 Depth
W V309 Angle (draught)
A V310 Number of paths
Z V311 Infeed pre cut
S V312 Safety clearance
I V313 Machining type
B V314 Drill radius
H V315 Z value workpiece surface
L V316 Length of the traverse motion at feedrate between contours
P V317 Retraction plane
Q V318 Quadrant
O V319 Consideration of existing Z coordinates
Z V320 Infeed constant/maximum
S V321 Direction (right/left)

Meaning of the abbreviations in the table:

B: Letter of the parameter as it is entered in the standard text file at the position whose number is in the
next column.
MVar: Variable number of the parameter in the NC block or in macros.
Explanation: Brief explanation. More details in the text.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 129


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.3.3 Point machining

7.3.3 Point machining

Unlike in path machining, in point machining isolated points are machined, as the name
suggests.

User of macros:

Starting and end macros are supported in the usual way. They are specified before
machining in the geometry. Triple macros are supported.

Macro variables:

Variable Meaning

V202 X coordinate last point
V203 Y coordinate last point
V204 Z coordinate last point
V222 X coordinate current point
V223 Y coordinate current point
V224 Z coordinate current point

The first three variables are not assigned for the starting macro.
The last three variables are not assigned for the end macro.
The point coordinates are passed to the jump macro in variables.

Standard blocks:

Point machining requires not standard blocks.

7.3.4 Turning

Use of macros:

For turning only starting and end macros are supported in the usual way. They are specified
before machining in the geometry. Triple macros are supported.

The jump macro has no purpose, gaps are calculated directly by the system.
All machining operations are calculated by the system.

130  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.3.5 Approach and retraction

7.3.5 Approach and retraction

Features of the basic system are not used for approaching the machining operation, to
bridge gaps and to retract from the machining operation. Instead macros are used. The
following system variables are available to these macros:

Variable assignment of the old contour element:

available for: jump macro, retraction macro

Variable Meaning

V201 G function
V202 X coordinate beginning
V203 Y coordinate beginning
V204 Z coordinate beginning
V205 X coordinate end
V206 Y coordinate end
V207 Z coordinate end
V208 X coordinate arc centre
V209 Y coordinate arc centre
V210 Z coordinate arc centre
V211 Radius (arc angel > 180 degrees radius negative)
V212 Angle of X start, Y start; X end, Y end
V213 Length of X start, Y start to X end, Y end
V214 Starting angle circle arc
V215 End angle arc
V216 Arc angle of arc

Variable assignment of new contour element:

available for: starting macro, jump macro

Variable Meaning

V181 Block number as specified in the machine file
V191 Radius compensation, 0->none, 1->left, 2->right
V221 G function
V222 X coordinate beginning
V223 Y coordinate beginning
V224 Z coordinate beginning
V225 X coordinate end
V226 Y coordinate end
V227 Z coordinate end
V228 X coordinate arc centre
V229 Y coordinate arc centre
V230 Z coordinate arc centre
V231 Radius (arc angle > 180 degrees radius negative)
V232 Angle of X start, Y start; X end, Y end
V233 Length of X start, Y start to X end, Y end
V234 Starting angle circle arc
V235 End angle arc
V236 Arc angle of arc

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 131


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.3.5 Approach and retraction

Variable assignment end of last contour:

available for: starting macro, jump macro

Variable Meaning

V241 G function
V242 X coordinate beginning
V243 Y coordinate beginning
V244 Z coordinate beginning
V245 X coordinate end
V246 Y coordinate end
V247 Z coordinate end
V248 X coordinate arc centre
V249 Y coordinate arc centre
V250 Z coordinate arc centre
V251 Radius (arc angle > 180 degrees radius negative)
V252 Angle of X start, Y start; X end, Y end
V253 Length of X start, Y start to X end, Y end
V254 Starting angle circle arc
V255 End angle arc
V256 Arc angle of arc

Variable assignment face end machining

available for: starting macro, jump macro

Variable Meaning

V261 G function
V262 Starting coordinate 1st axis without rotation
V263 Starting coordinate 2nd axis without rotation
V264 Starting coordinate 3rd axis without rotation
V265 End coordinate 1st axis without rotation
V266 End coordinate 2nd axis without rotation
V267 End coordinate 3rd axis without rotation
V268 Coordinate 1st axis after rotation
V269 Angle of rotation

132  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.3.5 Approach and retraction

Variable assignment peripheral surface machining

available for: starting macro, jump macro

Variable Meaning

V261 G function
V262 Starting coordinate 1st axis
V263 Starting coordinate 2nd axis
V264 Starting coordinate 3rd axis
V265 End coordinate 1st axis
V266 End coordinate 2nd axis
V267 End coordinate 3rd axis
V268 End coordinate on 3rd axis including radius
V269 Length of the traverse motion
V270 Angle rotation
V271 Radius (arc angle > 180 degrees radius negative) of the peripheral surface
V272 Starting coordinate on 3rd axis including radius
V273 Path length of 3rd axis after rotation
V274 Previous angle or rotation

The geometric data of the first element of the first machining plane (V221ff for turning and
V261ff for machining on face end/peripheral surface) and of the last element of the last
machining plane (V241ff for all types of machining) are available to the starting macro.

The geometric data of the last element before the gap (V201ff) and the first element after
the gap (V221ff) are passed to the jump macro if required.

The geometric data of the last element of the machining operation (V201ff) are passed to
the end macro in variables. .

Triple macros are supported.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 133


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.3.6 Variables for tool description

7.3.6 Variables for tool description

Variable Mill Drill Turning tool



V401 Radius 1 Radius 1 Rounding radius
V402 Radius 2 Radius 2
V403 Main cutting edge angle
V404 Cutting edge angle Tip angle Tip angle
V405 Tip length Holder dim. longit./trans.
V406 Cutting edge length 2
V407 Cutting edge length 3 Type
V408 Radius 3
V409 Length cutting edge
V410
V411 Min. cutting depth
V412
V413 XS XS XS
V414 ZS ZS ZS
V415 Insert position Insert position Insert position
V416 Length tool holder
V417 Height tool holder Height tool holder
V418 Width tool holder Width tool holder Width tool holder
V419 Cutting edge length Offset for grooving tools
V420 Corner radius Draught for grooving tools
V421 Longit. dimension Longit. dimension Longit. dimension
V422 Cross dimension Cross dimension Cross dimension
V423 Insert length Insert length Insert length
V424 Width shank Width shank

V427 Min. drilling diameter


V428
V429 Tolerance Tolerance
V430 No. of teeth Max. cutting depth
V431 Deg. of overlap Shank dimension width
V432 Feedrate unit Feedrate unit
V433 D1 D1 D1
V434 D2 D2 D2
V435 D3 D3 D3
V436 D4 D4 D4

D = Override switch/cutting edge number

134  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 7. Interface Description of the Existing Configuration
7.3.7 Variables for technology data

7.3.7 Variables for technology data

Variable Explanation

V331 Free
V332 Direction of rotation
V333 Feedrate depth Fz
V334 Feedrate plane Fxy
V335 Feedrate retraction Fab
V336 Feedrate F (free)
V337 Cutting speed (calculated from speed)
V338 Coolant
V339 Constant cutting speed

V397 Tool designation (string)


V398 Tool ident number (string)
V399 Station number (string)

V441 Customer identifier

7.3.8 General system variables

Variable Explanation

V71 Def. of the V no. input forms
V72 Tool description
V161 System state
0 -> fresh input of a keyword
1 -> fresh calculation without dialog
2 -> fresh "dialog run"
3 -> edit keyword
4 -> NC block output

V181 Block number for NC program


V182 Line number
V191 Offset direction 0->no offset
1->offset left
2->offset right

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 135


SINUMERIK 840C (PJ)
7. Interface Description of the Existing Configuration 09.96
7.4 The empirical value file

7.4 The empirical value file

The empirical value file is an ASCII file accessible to the user in which switch-on settings and
program rungs are stored in variables. The file is executed on system start-up so that all
variables entered are initialized. All changes that are made in the empirical value file
therefore only apply when the system is reinitialized.
The file contains both the assignment and a precise description of the data. It is located in
the data tree \mmc.001\user.005\wop.006\exam.033\erfahr.034 (FlexOS)
or\wop\t.006\exam.033\erfahr.034 (DOS).

Syntax:

Anything not placed between two vertical lines is interpreted as a comment and ignored
during execution. All instructions placed between "|"'s are executed and the variable contents
are available after system initialization.

7.5 The configuration file

The configuration file is an ASCII file accessible to the user in which all machine-specific data
are configured. The file is executed when the system is executed so that all variables are
initialized. All changes that are made in the configuration file therefore only apply after re-
initialization of the system.
The file contains not only the assignment but also a precise description of the data. It is
located in the data tree \mmc.001\user.005\wop.006\exam.033\projekt.034(FlexOS) or
\wop\t.006\exam.033\projekt.034 (DOS).

If the NC output is set to INCH, the number of decimal places must be set to
(V1403=2) to avoid imprecision.

If the C axis functionality is not enabled (V1376=2), the workpiece DEMO002 must be
deleted because it is not executable in this case.

Syntax:

as for empirical value file

136  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 8. Tools for Testing
8.1 Input screen forms during runtime

8. Tools for Testing

Before the runtime during configuration of screen forms and macros there is no way of
performing a syntactic check of the data.

A debugger exists for screen forms (V1360=10 => activated) which stops after every
calculator call. This allows you to observe the instructions running. Every time execution
stops you can call the pocket calculator with CTRL N and view the content of the variables.

A debugger also exists for macros, which is controlled via the variables V1219 (on, off) and
V1955 (breakpoint):

V1219=0 Debugger off


V1219=1, V1955=NL: Debugger on, stop on each NC macro line
V1219=1, V1955="WZW": Debugger on, stop on tool change and each following line

The following keys can be used after a stop:


T,t: Variable screen form is called (see next section)
R,r: Pocket calculator is called
F,f: If V1955 is set -> continue without stopping until next call
of macro specified there

More tools are described in the next section.

8.1 Input screen forms during runtime

It is possible to call a screen form from a macro while is being executed. A call of this type is
useful as a "debugger substitute" when testing macros.

Syntax or the call: \M |condition| name1 [name2]

condition: The call can be prevented by suitable conditions. The condition can also be
omitted. The screen form is then always called.
name1: Name of the screen form. Or name of the screen form file if name2 is also
specified.
name2: Name of the screen form in the screen form file called name1.

As soon as the macro interpreter reaches this line, it stops execution and outputs the
specified screen form. The screen form "vari.mask" provided by Siemens is useful for testing
because it can be used to view variables.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 137


SINUMERIK 840C (PJ)
8. Tools for Testing 09.96
8.2 Text output in the NC code

This screen form looks like this:

V.-Nr. ab:

To view variables enter the variable number of the first variable you want to view in the top
left-hand field of the screen form. After you have pressed the "Cursor down" key, the next
15 variable contents are displayed starting at the number entered. With the "Return" key it is
possible to view the next 15 variables one after the other. If you press the ESC key program
execution is resumed.

8.2 Text output in the NC code

Via NC macro:

If you write any string in any line of the NC macro, this string is output as written in the NC
code when this line is run.
Here too, the rule is: Begin a line in the fifth column.
In this way, you can test whether certain positions in the NC macro are executed or not.
Text output can be made dependent on a suitable condition.

Examples:
Macro: NC code:
"N" M99 N100 M99
"N" "KÜHL" N100 M08
! Comment
( Comment ) ( Comment )
|V966=123.66|
"N" X|V966| N110 X123.66

Via machine file:

It is also possible to have text output in the NC code via the machine file. In this case, output
is assigned to certain blocks.

138  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)
09.96 8. Tools for Testing
8.2 Text output in the NC code

Procedure:
• Call the program to generate the machine file
• Read in machine file via menu "Read in file"
• Select the required block via menu "Edit block"
• Insert text at any point in the list

A soon as this block is accessed via the machine file and it is output in NC code, the
specified text is also output at exactly the position at which it is located in the list.

Example: List in machine file for G00:


N
Run G00
GF
SHE
SVE
SSE
SPDL

Output on selection of: N10 run G00 . . .

Here it is not possible to prevent output by applying conditions and the text must be
removed in order to generate executable NC code.

 Siemens AG 1996 All Rights Reserved 6FC5197-†AA70 139


SINUMERIK 840C (PJ)
A. Appendix 09.96
A.1 Conversion table MF2 keyboard <-> operator panel

A. Appendix
A.1 Conversion table MF2 keyboard <-> operator panel

The following table lists all keys that differ on the MF2 keyboard and the operator panel of
the control although they have the same function.

MF2 keyboard PC keyboard Operator panel Function


(FlexOS) (DOS)


Home, POS1 Home,POS1 Ñ Home key

End End Ó End key

Õ Õ Backspace key

DEL DEL Delete key

↵ ↵ Return key

ESC ESC , Escape key

CTRL N CTRL N -Calls pocket calculator


-Tog's bet. select. fields
-Block by b. prog. steps

INSERT INSERT Insert key

PageUp PageUp PageUp key

PageDown PageDown PageDown key

F3 - F9 F1 - F7 Softkeys 1-7 belowMenu items below

Shift F3 - F9 F1 - F7 Softkeys 1-7 right Menu items right

Shift F1 F8
i Help screen

140  Siemens AG 1996 All Rights Reserved 6FC5197-†AA70


SINUMERIK 840C (PJ)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy