Siemens SINUMERIK 840Di Diagnostic Manual page 165

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

Advertisement

11/2006
12300
Channel %1 block %2 call-by-reference parameter missing on subroutine
call %3
Parameters:
%1 = Channel number
%2 = Block number, label
%3 = Source string
Definitions:
In the subroutine definition, a formal REF parameter (call-by-reference parameter) has been specified
with no actual parameter assigned to it.
The assignment takes place in the subroutine call on the basis of the position of the variable name
and not on the basis of the name!
Example:
Subroutine:
(2 call-by-value parameters X and Y, 1 call-by-reference parameter Z)
PROC XYZ (INT X, INT Y, VAR INT Z)
:
M17
ENDPROC
Main program:
N10 DEF INT X
N11 DEF INT Y
N11 DEF INT Z
:
N50 XYZ (X, Y) ; REF parameter Z missing
or
N50 XYZ (X, Z) ; REF parameter Z missing!
Reaction:
Correction block is reorganized.
Interface signals are set.
Alarm display.
Remedy:
Press the NC Stop key and select the function "Correction block" with the softkey PROGRAM
CORRECT. The correction pointer positions on the incorrect block.
Assign a variable to all REF parameters (call-by-reference parameters) of the subroutine when calling.
No variable must be assigned to "normal" formal parameters (call-by-value parameters), as these are
defaulted with 0.
Program
Clear alarm with NC START or RESET key and continue the program.
Continuation:
© Siemens AG, 2006. All rights reserved
SINUMERIK, SIMODRIVE Diagnostics Manual (DA), 11/2006 Edition
Overview of Alarms
NCK alarms
2-165

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents