Simpliq – ElmoMC SimplIQ Software Manual User Manual
Page 68

SimplIQ
Software Manual
Program Development and Execution
MAN-SIMSW (Ver. 1.4)
6-6
Error
Code
Error String
Meaning
Example
The global keyword was
used outside the function.
A variable declared as
global inside a function is
not defined previously.
The type of variable
declared at definition
outside the function
differs from the type of
the declaration inside the
function.
29
Bad variable
definition
All local variables must be
defined at the beginning of
the function. Any variable
definition coming after
executable code in the
function is illegal.
function func (int a)
int b;
global int a1;
b = a;
float c, d;
The definition of float variables c
and d is illegal because it occurs
after executable code
b = a
.
30
Variable is
undefined
Iteration variable in a for
statement is not defined
before it.
function func (int a)
for k = 1:10
a = k:
end
return
The iteration variable k is not
defined before its use.
31
Bad separator
between
dimensions
Bad separator between
dimensions (not a comma).
This error is unused, because
currently only one-
dimensional arrays are
allowed, so there is no need
for a separate between
dimensions.
32
Bad variable
dimension
The legal variable dimension
must be a positive number
inside brackets. An expression
inside brackets that is not
evaluated into a number, or a
number that is less than 1
(zero or negative) is illegal.
int arr[12];
Variable dimension is negative