beautypg.com

ElmoMC SimplIQ Software Manual User Manual

Page 69

background image

SimplIQ

Software Manual

Program Development and Execution

MAN-SIMSW (Ver. 1.4)

6-7

Error
Code


Error String


Meaning


Example

33

Bad function

format

Appears at function definition
when:

ƒ

Function name is not
unique or is empty

ƒ

function definition does
not match its prototype

function func (int a);

function func (float a)

Type of input argument in
function definition does not
match type in prototype.

34

Illegal minus

A minus is illegal before a
function call with multiple
output arguments, and before
parentheses that include
multiple expressions.

[ab] = -func(c);

Illegal minus before function call
with multiple outputs.

-(2+3), c/5);
Illegal minus before multiple
expressions within parentheses.

35

Empty program

User program is empty.

36

Program is too

long

User program exceeds
maximum admissible length.

37

Bad function

call

An attempt has been made to
jump at the goto statement to
a function with a non-zero
number of input or output
arguments.

[a,b,c] - func(x,y) +5;

Illegal sentence. The Compiler
checks if there is an expression
terminator immediately after the
function call with multiple
outputs. If there isn’t, it issues
this error.

38

Expression is

expected

The expected expression —
wait, until, while, if, elseif,
switch or case — is missing.

if

a = 0

end

An expression expected after if
is missing.

39

Code is too

complex

The user program contains
very complex code that
includes too many nested
levels (this expression
actually contains more than
100 nested levels). A nested
expressions means that there
is one flow control block
inside another.

An if block inside a while loop

40

Line

compilation is

failed

A general error has occurred
during an attempt to compile
an expression.