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

Iso milling
Hide thumbs Also See for SINUMERIK 802D sl:
Table of Contents

Advertisement

Enhanced Level Commands

4.10 Macroprograms

4.10
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.10.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.10.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-7.
Table 4-7
Calling up method
Simple call up
Modal call up (a)
4-154
SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling (PGM) -- 04.07 Edition
Macroprogram calling format
Command code
G65
G66
Remarks
Canceled by G67
© Siemens AG 2007 All rights reserved
04.07

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents