Maple Systems Silver Plus Series Installation And Operation Manual page 260

Hide thumbs Also See for Silver Plus Series:
Table of Contents

Advertisement

256
• (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'
1010-1007, Rev 05
Any format other than this format will cause compile error.
The parameters of a function must be equivalent to the arguments passing to
a function to avoid compile error.
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] Any format other than
this format will cause compile error.
For example :
Macro_Command main( )
int g[10]
For g[2] = 0 To 2
g[3] = 4 + g[9]
int h , k <- illegal – definitions must occur
before any statements or expressions
Next g[2]
End Macro_Command
The only one main entrance of Macro is:
Macro_Command function_name( )
End Macro_Command
Sil ver Plus Se ries In stal la tion & Op er a tion Man ual

Advertisement

Table of Contents
loading

Table of Contents