ElmoMC SimplIQ Software Manual User Manual
Page 67

SimplIQ
Software Manual
Program Development and Execution
MAN-SIMSW (Ver. 1.4)
6-5
Error
Code
Error String
Meaning
Example
24
Name is
keyword
A variable or function has the
same name as a keyword.
This error may occur if a
variable name is identical to
an auto-routine name.
int switch;
switch is a keyword, so its use as
a variable name is illegal.
25
Name is not
distinct
A variable of function name is
not unique.
int func ;
function func (int a)
The function and the variable
have the same name.
function func (int a)
int a ;
The definition of local variable a
is illegal because this function
already contains a local variable
a
as an input argument.
26
Variable name
is invalid
This error occurs when:
A variable or function
name starts with a digit or
underscore, not with a
letter
A variable or function
name is empty.
On the variable definition
line, a comma is used as a
separator between
variables, but the variable
name after a comma is
missing.
int_abc ;
The variable name has a leading
underscore.
function (int a)
The function name is missing
after the function keyword.
int a, b,
The variable name is missing
after the comma.
27
Bad separator
between
variables
The only legal separator
between variables on the
variable definition line is a
comma. After a variable
name, either a variable
separator (comma) or an
expression terminator is
expected. Any other symbol
causes this error.
int a b;
A command as a variable
separator is missing between a
and b.
28
Illegal global
variable
definition
A global variable must be
declared inside a function
with the global keyword and
it must be defined before the
function. This error appears
only if the global keyword is
used in the wrong context:
int a1 ;
function func (int a)
global float a1;
The variable type a1 at its
definition is int, while inside
the function, it is declared as
float
.