
Overview of alarms 06/2009
NCK alarms
2-76
© Siemens AG 2009 All Rights Reserved
SINUMERIK 802D sl, Diagnostics Manual, 06/2009
12330 [Channel %1: ] Block %2 type of parameter %3 incorrect
Parameters: %1 = Channel number
%2 = Block number, label
%3 = Source string
Definitions: When calling a procedure (a subroutine) it is found that the type of the actual parameter cannot be
converted into the type of the formal parameter. There are two possible cases:
- Call-by-reference parameter: Actual parameter and formal parameter must be of precisely the same
type, e.g. STRING, STRING.
- Call-by-value parameter: Actual parameter and formal parameter can in principle be different provid-
ing conversion is basically possible. In the present case, however, the types are generally not com-
patible, e.g. STRING -> REAL.
Overview of type conversions:
- from REAL to: REAL: yes, INT: yes*, BOOL: yes1), CHAR: yes*, STRING: -, AXIS: -, FRAME: -
- from INT to: REAL: yes, INT: yes, BOOL: yes1), CHAR: if value 0 ...255, STRING: -, AXIS: -, FRAME:
-
- from BOOL to: REAL: yes, INT: yes, BOOL: yes, CHAR: yes, STRING: -, AXIS: -, FRAME: -
- from CHAR to: REAL: yes, INT: yes, BOOL: yes1), CHAR: yes, STRING: yes, AXIS: -, FRAME: -
- from STRING to: REAL: -, INT: -, BOOL: yes2), CHAR: only if 1 character, STRING: yes, AXIS: -,
FRAME: -
- from AXIS to: REAL: -, INT: -, BOOL: -, CHAR: -, STRING: -, AXIS: yes, FRAME: -
- from FRAME to: REAL: -, INT: -, BOOL: -, CHAR: -, STRING: -, AXIS: -, FRAME: yes
1) Value <> 0 corresponds to TRUE, value ==0 corresponds to FALSE.
2) String length 0 => FALSE, otherwise TRUE.
*) At type conversion from REAL to INT fractional values that are >=0.5 are rounded up, others are
rounded down.
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 COR-
RECT. The correction pointer positions on the incorrect block.
Check transfer parameters of the subroutine call and define the application accordingly as call-by-
value or call-by-reference-parameter.
Program Con-
tinuation:
Clear alarm with NC START or RESET key and continue the program.
12340 [Channel %1: ] Block %2 number of parameters too high %3
Parameters: %1 = Channel number
%2 = Block number, label
%3 = Source string
Definitions: When calling a function or a procedure (predefined or user-defined) more parameters were trans-
ferred than defined.
Predefined functions and procedures: The number of parameters has been set permanently in the
NCK.
User-defined functions and procedures: The number of parameters is established by type and name
in the definition.
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 COR-
RECT. The correction pointer positions on the incorrect block. Check whether the correct proce-
dure/function has been called. Program the number of parameters in accordance with the
procedure/function.
Program Con-
tinuation:
Clear alarm with NC START or RESET key and continue the program.
12350 [Channel %1: ] Block %2 parameter %3 no longer possible
Parameters: %1 = Channel number
%2 = Block number, label
%3 = Source string
Komentáře k této Příručce