Definitions (Def, Define); Parameter Transfer - Siemens SINUMERIK 828D Function Manual

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

Advertisement

Detailed description
2.8 Technology cycles
Example
Program code
PROC TECHNOCYC
RET
2.8.3

Definitions (DEF, DEFINE)

If a subprogram is used as a technology cycle that contains commands for the (
variables and/or (
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 Section "Context variable ($P_TECCYCLE)
(Page 123)".
2.8.4

Parameter transfer

All types of parameter transfer and parameter definition that are possible in subprograms
can also be used when the subprogram is used as a technology cycle:
● Call-by-value
● Call-by-reference
● Default parameters
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"
122
$R1=1
POS[X]=100
ICYCOF
$R1=2
$R2=$R1+1
POS[X]=110
$R3=3
) macro definition, these have no effect when executing the
DEFINE
Effective processing mode
ICYCON
ICYCON
ICYCON
ICYCOF
ICYCOF
ICYCOF
ICYCOF
ICYCOF
ICYCOF
Function Manual, 07/2012, 6FC5397-5BP40-3BA0
Interpolation cycle
1
2 ... 25
26
26
26
26
26
26
)
DEF
Synchronized actions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 840de sl

Table of Contents