Siemens SINUMERIK 840D sl Function Manual page 765

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

Advertisement

Start
● Compiled cycle: A compiled cycle is called in exactly the same way as a normal subroutine.
Example: CYCLE
● Preprocessing is activated: The compiled cycle is called instead of the ASCII cycle.
– If the subroutine is called explicitly with extension _SPF, then the ASCII cycle is called
– If the subroutine is called explicitly with extension _CYC, then the preprocessed cycle
– If bit 5 is set and a file that is not marked with PREPRO is called explicitly with the
● If a subroutine is called without explicit extension, an attempt is first made to load the
program. If this is not possible (not marked with PREPRO), an attempt is made to load the
SPF program.
● The change to an external language mode with G291 is rejected and an alarm issued. When
the pre-compiled cycle is called, an explicit change is made to the Siemens language mode.
● When the subroutine is called, it is checked whether the compiled file is older than the cycle.
If so, the compile file is deleted and an alarm issued. The user must preprocess the cycles
again.
Note
Only cycles without parameters may be called with the extension _SPF or _CYC.
Do not use PUDs in cycles that are preprocessed. The PUDs are created in the calling
main program. At the time of compilation after POWER ON, this data is not known to the
cycles.
The current program display shows whether the current ASCII cycle or the compilation has
been called (extension _SPF or _CYC).
Call condition
All cycles in the cycle directories must be compiled before preprocessing is activated. Non-
compiled cycles in _N_CUS_DIR and _N_CST_DIR which were loaded after POWER ON, for
example, can only be called through explicit specification of extension _SPF.
If preprocessing is active and bit 5 is set, all programs that do not start with the PREPRO PROC
instruction are not precompiled.
Syntax check
All program errors that can be corrected by means of a compensation block are detected during
preprocessing. In addition, when the program includes branches and check structures, a check
is made to ensure that the branch destinations are present and that structures are nested
correctly.
Branch destinations and labels must be unique in the program.
Special functions
Function Manual, 01/2015, 6FC5397-2BP40-5BA2
even if a compilation is available.
Example: CYCLE_SPF; ASCII cycle call
is called if available. An error message is output if no compilation is available.
Example: CYCLE_CYC; Preprocessed cycle call
extension _CYC, an error message is issued with Alarm 14011.
V2: Preprocessing
22.3 Program call
765

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents