EasyManuals Logo

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #155 background imageLoading...
Page #155 background image
Flexible NC programming
1.25 Subprogram technique
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
155
CAUTION
Call-by-reference parameter transfer
Parameters transferred using call-by-reference must not be left out of the subprogram call.
CAUTION
AXIS data type
AXIS data type parameters must not be left out of the subprogram call.
Checking the transfer parameters
System variable $P_SUBPAR [ n ] where n = 1, 2, etc., can be used to check whether a
parameter has been transferred explicitly or left out in the subprogram. The index n refers to
the sequence of the formal parameters. Index n = 1 refers to the first formal parameter, index
n = 2 to the second formal parameter, and so on.
The following program excerpt shows an example of how a check can be performed based
on the first formal parameter:
Programming Comment
PROC SUB_PROG (REAL X, REAL Y, REAL Z)
;
Formal parameters: X, Y, and Z
N20 IF $P_SUBPAR[1]==TRUE
;
Check of the first formal parameter
X.
...
;
These actions are taken if the formal
parameter X has been transferred
explicitly.
N40 ELSE
...
;
These actions are taken if the formal
parameter X has not been transferred.
N60 ENDIF
...
;
General actions
N100 RET

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 828D and is the answer not in the manual?

Siemens SINUMERIK 828D Specifications

General IconGeneral
Control TypeCNC
Operating SystemWindows Embedded
ProcessorIntel Atom
Display10.4" color TFT display
InterfacesEthernet, USB
ProgrammingShopMill, ShopTurn
Operation Panel Size10.4"
Protection ClassIP65
PLC Memory2 MB
Spindle Capacity4 spindles
Hard DriveCompactFlash

Related product manuals