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.
·
(11:)"There should be constant behind “Case” “ ;
·
(12:)"Missing “Case” behind “Select” “ ;
·
(13:)"Missing “expression” behind “Select Case” “ ;
·
(14:)"Missing “End Select” statement
·
(15:) Illegal “Case” statement" ;
·
(16:)"Unfinished “Select” statement before “End Select” “ ;
The format of “Select Case” statement is:
Select Case [expression]
Case [constant]
Case [constant]
Case [constant]
Case Else
End Select
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
1010-1001a, Rev 02
258
Sil ver Se ries In stal la tion & Op er a tion Man ual
Summary of Contents for Silver HMI504T
Page 1: ...1010 1001A Rev 02...
Page 32: ...1010 1001a Rev 02 28 Silver Series Installation Operation Manual...
Page 128: ...1010 1001a Rev 01 124 Silver Series Installation Operation Manual...
Page 156: ...1010 1001a Rev 02 152 Silver Series Installation Operation Manual...
Page 166: ...1010 1001a Rev 02 162 Silver Series Installation Operation Manual...
Page 216: ...1010 1001a Rev 01 212 Silver Series Installation Operation Manual...
Page 251: ...1010 1001a Rev 02 Macros 247 Set Bit Objects Attributes Dialog Project Example of Add 2...
Page 264: ...End Macro_Command 1010 1001a Rev 02 260 Silver Series Installation Operation Manual...
Page 268: ...1010 1001a Rev 01 264 Silver Series Installation Operation Manual...