Use Of Predefined Variables As Transfer Parameters; Incomplete Parameter List And Omission Of Parameters - Siemens SINUMERIK 840D Programming Manual

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

Advertisement

General
1
1.3 Programming cycles
Example
DEF CHAR FORM="E"
DEF REAL MID=5, FFR, FAL
DEF INT VARI=1
N10 FFR=0.1 FAL=0
N20 CYCLE100 (FORM, MID, FFR, ->
-> VARI, FAL)
3. Use of predefined variables as transfer
parameters
For defining cycles with parameters you may use
variables such as R parameters.
Example
DEF CHAR FORM="E"
N10 R1=5 R2=0.1 R3=1 R4=0
N20 CYCLE100 (FORM, R1, ->
-> R2, R3, R4)
As R parameters are predefined as real, it is
important to ensure that the type of the target
parameter in the cycle is compatible with the type
real.
More detailed information about data types and type
conversion and compatibility is given in the
Programming Guide. If the types are incompatible,
alarm 12330 "Parameter type ... incorrect" is issued.
4. Incomplete parameter list and omission of
parameters
If a defining parameter is not required for a cycle call
or it is to be assigned the value zero, it can be
omitted from the parameter list. A comma, "..., ,... "
must be written in its place to ensure the correct
assignment of the following parameters or the
parameter list must be concluded prematurely with
")".
1-24
Definition of a parameter, value assignment
Definition of parameters with or without
value assignments
Value assignments
Cycle call
Definition of a parameter, value
assignment
Value assignments
Cycle call
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide, Cycles (PGZ) - 04.00 Edition
12.97
1
 Siemens AG 2000 All rights reserved.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840diSinumerik 810dSinumerik fm-nc

Table of Contents