191
24
"Illegal “Break” statement
“Break” statement can only be used in “For-Next”,
“While-Wend”, or “Select-Case” statements.
“Break” statement takes one line of Macro.
25
"Illegal “Continue” statement"
“Continue” statement can only be used in “For-Next”
or “While-Wend” statements.
“Continue” statement takes one line of Macro.
26
"Expression error"
27
"Illegal operation object"
Macro_Command main( )
int g[10] , g
g[3] = 4 + xyz
End Macro_Command
“xyz” represents an incompatible object.
The mismatch of operational objects in an
expression causes compile errors.
28
"Missing “Sub” "
The format of function declaration is:
Sub(Macro_Command) [data type] function_name( )
End Sub(Macro_Command)
Formats other than this cause compile errors.
29
"Missing “Macro_Command” "
30
"Mismatch of the number of parameters "
31
"Mismatch of data type of parameter"
32
"Parameter error"
The number of parameters in a function’s declaration
must be equivalent to the number of arguments
passed to the function.
33
"Undefined function"
Any variable or function should be declared before
use.
34
"Illegal member of array
35
"Illegal definition of array";
36
"Illegal index of array"
37
"Undefined symbol"
38
"Un-supported PLC data address" ;
The parameter of GetData( … ) , SetData( … ) should
be legal PLC address.
39
"Should be integer, character or constant"
The format of array is:
Declaration: array_name[constant]
(constant is the size of the array)
Usage: array_name[integer, character or constant]
Formats other than this cause compile errors.
40
"Illegal Macro statement
before declaration
statement "
Macro_Command main( )
int g[10]
For g[2] = 0 To 2
g[3] = 4 + g[9]
int h , k
Next g[2]
End Macro_Command
Statement position of “int h , k”
declaration caused the error. All
declarations must be made before
operational statements.
41
"Floating point can not bitwise shift"
42
"Missing function return value "
43
"Function can not return a value"
44
"Illegal Float data type in expression"
45
"Error PLC address"
46
"Stack can not exceed 4k bytes"
47
"Only one main entrance in the Macro is allowed"
48
"Too many main entrance: " 'identifier'
The only one main entrance of Macro is:
Macro_Command function_name( )
End Macro_Command
You cannot nest or interleave Macro Functions.
Summary of Contents for MMI-1500
Page 2: ...ii...