1 Alarms
Reactions:
Remedy:
Program Continuation:
14520
Parameters:
Definitions:
Reactions:
Remedy:
Program Continuation:
14530
Parameters:
Definitions:
1-190
- Alarm display.
- Interface signals are set.
- Correction block is reorganized.
Define the subroutine in accordance with the type used.
1. Conventional subroutine structure (without parameter transfer):
% SPF 123456
:
M17
2. Subroutine structure with keyword and subroutine name (without parameter transfer):
PROC UPNAME
:
M17
ENDPROC
3. Subroutine structure with keyword and subroutine name (with parameter transfer "call-
by-value"):
PROC UPNAME (VARNAME1, VARNAME2, ...)
:
M17
ENDPROC
4. Subroutine structure with keyword and subroutine name (with parameter transfer "call-
by-reference"):
PROC UPNAME (Typ1 VARNAME1, Typ2 VARNAME2, ...)
:
M17
ENDPROC
Clear alarm with NC START or RESET key and continue the program.
Channel %1 block %2 illegal PROC instruction in data definition section
%1 = Channel number
%2 = Block number, label
The PROC statement may only be programmed at the beginning of the subroutine.
- Alarm display.
- Interface signals are set.
- Correction block is reorganized.
Modify NC part program appropriately.
Clear alarm with NC START or RESET key and continue the program.
Channel %1 block %2 EXTERN and PROC instruction do not correspond
%1 = Channel number
%2 = Block number, label
Subroutines with parameter transfer must be known before they are called in the program.
If the subroutines are always available (fixed cycles) the control establishes the call inter-
faces at the time of system power-up. Otherwise an EXTERN statement must be pro-
grammed in the calling program.
Example:
N123 EXTERN UPNAME (TYP1, TYP2, TYP3, ...)
The type of the variable must match the type given in the definition (PROC statements) or
it must be compatible with it. The name can be different.
SINUMERIK 840D/840Di/810D Diagnostics Guide (DA) – 11.02 Edition
Siemens AG, 2002. All rights reserved
11.02