Block %2 Call-By-Reference Parameter Missing On Subroutine Call %3; Block %2 Axis Parameter Missing On Procedure Call %3 - Siemens Sinamics S120 Diagnostic Manual

Hide thumbs Also See for Sinamics S120:
Table of Contents

Advertisement

NCK alarms
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 cor-
rection 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:
12310
[Channel %1: ] Block %2 axis parameter missing on procedure call %3
Parameters:
%1 = Channel number
%2 = Block number, label
%3 = Source string
Definitions:
When calling the subroutine, an AXIS parameter is missing which, according to the EXTERN declaration, should be
present.
With the EXTERN instruction, user-defined subroutines (procedures) are made "known" that have a parameter trans-
fer.
Procedures without parameter transfer require no EXTERN declaration.
Example:
Subroutine XYZ (with the formal parameters):
PROC XYZ (INT X, VAR INT Y, AXIS A, AXIS B)
EXTERN instruction (with variable types):
EXTERN XYZ (INT, VAR INT, AXIS, AXIS) Subroutine call (with actual parameters):
N10 XYZ (, Y1, R_TISCH)
Variable X is defaulted with value 0
Variable Y is supplied with the value of the variable Y1 and returns the results to the calling program after the subrou-
tine run
Variable A is supplied with the axis in R_TISCH
Variable B missing!
Reaction:
Correction block is reorganized.
Interface signals are set.
Alarm display.
118
Diagnostics Manual, 07/2010, 6FC5398-8BP40-0BA0
Alarms

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents