KEP MMI-1500 Installation & Operation Manual page 199

Mmi-touchscreen series
Table of Contents

Advertisement

24
"Illegal "Break" statement
25
"Illegal "Continue" statement"
26
"Expression error"
27
"Illegal operation object"
28
"Missing "Sub" "
29
"Missing "Macro_Command" "
30
"Mismatch of the number of parameters "
31
"Mismatch of data type of parameter"
32
"Parameter error"
33
"Undefined function"
34
"Illegal member of array
35
"Illegal definition of array";
36
"Illegal index of array"
37
"Undefined symbol"
38
"Un-supported PLC data address" ;
39
"Should be integer, character or constant"
40
"Illegal Macro statement
before declaration
statement "
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'
Macro_Command main( )
int g[10] , g
g[3] = 4 + xyz
End Macro_Command
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
191
"Break" statement can only be used in "For-Next",
"While-Wend", or "Select-Case" statements.
"Break" statement takes one line of Macro.
"Continue" statement can only be used in "For-Next"
or "While-Wend" statements.
"Continue" statement takes one line of Macro.
"xyz" represents an incompatible object.
The mismatch of operational objects in an
expression causes compile errors.
The format of function declaration is:
Sub(Macro_Command) [data type] function_name( )
End Sub(Macro_Command)
Formats other than this cause compile errors.
The number of parameters in a function's declaration
must be equivalent to the number of arguments
passed to the function.
Any variable or function should be declared before
use.
The parameter of GetData( ... ) , SetData( ... ) should
be legal PLC address.
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.
Statement position of "int h , k"
declaration caused the error. All
declarations must be made before
operational statements.
The only one main entrance of Macro is:
Macro_Command function_name( )
End Macro_Command
You cannot nest or interleave Macro Functions.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mmi-750Mmi-730Mmi-850

Table of Contents