Definitions (Def, Define); Parameter Transfer; Context Variable ($P_Teccycle) - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

Detailed description
3.8 Technology cycles
3.8.3

Definitions (DEF, DEFINE)

If an NC program is used as technology cycle, that contains commands for variable (DEF) and/
or macro definition (DEFINE) then these have no effect when executing the technology cycle.
Although variables and macro definitions have no effect within a technology cycle, they must
nevertheless have the correct syntax. In the event of an error, the execution of the technology
cycle is aborted and an alarm displayed.
As the variables and macros are not available in the technology cycle, special measures may
have to be taken in the program code. See Chapter "Context variable ($P_TECCYCLE)
(Page 120)".
3.8.4

Parameter transfer

Only the Call-by-Value parameter transfer is possible in a subprogram being applied as a
technology cycle.
The application of Call-by-Reference parameters is not permissible and will trigger a
corresponding alarm.
References:
A detailed description of the parameter transfer and parameter definition in subprograms can
be found in:
Programming Manual Job Planning, Section "Flexible NC programming" > "Subprogram
technique" > "Definition of a subprogram" or "Call of a subprogram"
3.8.5

Context variable ($P_TECCYCLE)

Function
If an NC program is used as part program as well as also technology cycle, then context-
specific program sections can be defined using system variable $P_TECCYCLE:
● $P_TECCYCLE == TRUE ⇒ The NC program is currently being executed as technology
cycle
● $P_TECCYCLE == FALSE ⇒ The NC program is currently being executed as part program
Application
The (DEF) variables and (DEFINE) macro definitions have no effect in technology cycles. If an
NC program is executed as a technology cycle that contains the appropriate definitions, a
context-specific case distinction has to be made in the program code as the variables and
macros are then no longer available.
120
Function Manual, 08/2018, 6FC5397-5BP40-6BA2
Synchronized actions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents