Next g[2]
End Macro_Command
• (4): “Function name error:”
‘identifier’
- Reserved keywords and constant can not be the name of a
function
Macro_Command If( ) //<- illegal – used ‘If’ in the
name
• (5): “Statement missing” ; Statement missing “
(
“ or “
)
” - Some part of the Statement is missing,
typically it is a missing parentheses
Macro_Command main ) //<- illegal – missing ‘(‘
• (6): “Missing expression in ‘If’ statement”
• (7): “Missing “Then” in If statement”
• (8:) “Missing “EndIf” ” ;
• (9:) Unfinished “If’ statement before “End If” “ ;
• (10:) “Illegal Else statement” ;
The format of “If” statement is:
If [logic expression]Then
[ Else [If [logic expression] Then ] ]
EndIf
Any format other than this format will cause compile
error.
• (17:)" “For” statement error: missing “For” before “Next” “ ;
• (18:)"Should be integer of char variable" ;
• (19:)"Missing assign statement" ;
• (20:)"Missing keyword “To” “
• (21:)"Missing “Next” statement" ;
The format of “For” statement is:
For [variable] = [initial value] To [end value] [Step]
Next [variable]
Any format other than this format will cause compile error.
• (22:)" “While” statement error: missing “While” before “Wend” “ ;
• (23:)Missing “Wend” statement" ;
The format of “While” statement is:
While [logic expression]
Wend
Any format other than this format will cause compile error.
• (24:) “Illegal “Break” statement” ;
“Break” statement can only be used in “For”, “While”, or “Select
Case” statement
“Break” statement takes one line of Macro.
• (25:)"Illegal “Continue” statement" ;
“Continue” statement can only be used in “For” statement, or “While”
statement
“Continue” statement takes one line of Macro.
• (26:)"Expression error" ;
• (27:) Illegal operation object" ;
The mismatch of operation object in expression cause compile error.
For example :
Macro_Command main( )
int g[10]
For g[2] = 0 To 2
g[3] = 4 + XYZ <- illegal – XYZ is undefined
Next g[2]
End Macro_Command
• (28:)"Missing “Sub” “ ;
• (29:)"Missing “Macro_Command” “ ;
The format of function declaration is: Sub(Macro_Command) [data type]
function_name( … )
End Sub(Macro_Command)
1010-1007, Rev 05
Mac ros
255
Summary of Contents for Silver Plus Series
Page 20: ...1010 1007 Rev 05 16 Silver Plus Series Installation Operation Manual ...
Page 31: ...COM Ports for the HMI5056 5070 1010 1007 Rev 05 Connect the OIT to the PLC or Controller 27 ...
Page 38: ...1010 1007 Rev 05 34 Silver Plus Series Installation Operation Manual ...
Page 49: ...7 Click the Shape tab 1010 1007 Rev 05 Creating Your First Project 45 ...
Page 62: ...1010 1007 Rev 05 58 Silver Plus Series Installation Operation Manual ...
Page 75: ...3 Click OK The System Parameter Settings dialog appears 1010 1007 Rev 05 Using EZware 5000 71 ...
Page 132: ...1010 1007 Rev 05 128 Silver Plus Series Installation Operation Manual ...
Page 156: ...1010 1007 Rev 05 152 Silver Plus Series Installation Operation Manual ...
Page 210: ...1010 1007 Rev 05 206 Silver Plus Series Installation Operation Manual ...
Page 216: ...1010 1007 Rev 05 212 Silver Plus Series Installation Operation Manual ...
Page 246: ...1010 1007 Rev 05 242 Silver Plus Series Installation Operation Manual ...