Macroprograms; Differences From Subprograms; Macroprogram Call (G65, G66, G67) - Siemens Sinumerik 802D sl Programming Manual

Iso turning
Hide thumbs Also See for Sinumerik 802D sl:
Table of Contents

Advertisement

04.07
4.5

Macroprograms

The NC has a set of instructions that can be used by the machine tool builders and
the users to implement the original functions. The program created by using these
instructions is called a macroprogram, which can be called and executed by the
commands specified in a block with G65 or G66.
A macroprogram provides the following:
S Variables can be used.
S Arithmetic and logical operations using variables and constants are possible.
S Control commands for branch and repeat can be used.
S Commands to output messages and data can be used.
S Arguments can be specified.
This makes it possible to create a program in which complicated operations and
operations requiring conditional judgment are included.
4.5.1

Differences from subprograms

Differences between macroprograms and subprograms are indicated below.
S With macroprogram call up commands (G65, G66), arguments can be speci-
fied. However, with subprogram call up command (M98), it is not possible to use
arguments.
S If commands other than P, Q, and L are specified in the M98 block, the program
jumps to the specified subprogram after executing these commands. With G65
and G66, commands other than P and L are regarded as argument specification
and the program jumps to the specified macroprogram immediately. In this
case, however, the commands specified preceding G65 and G66 are executed
normally.
4.5.2

Macroprogram call (G65, G66, G67)

Macroprograms are usually executed after being called up.
The procedure used for calling up a macroprogram is indicated in Table 4-1.
Table 4-8
Calling up method
Simple call up
Modal call up (a)
© SIEMENS AG 2007 All rights reserved
SINUMERIK 802D sl/840D sl840D/840Di sl/840Di/810D ISO Turning -- 04.07 Edition
Macroprogram calling format
Command code
G65
G66
Enhanced Level Commands
4.5 Macroprograms
Remarks
Canceled by G67
4-139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents