Download EB8000 Serial User Guide

Transcript
 EasyBuilder8000 User’s Manual macro_command main()
int
sum
sum = Add()
end macro_command
Definition of function without return type:
sub <name> [(parameters)]
Local variable declarations
[Statements]
end sub
Example:
sub Add(int x, int y)
int result
result = x +y
end sub
macro_command main()
int a = 10, b = 20
Add(a, b)
end macro_command
or:
sub Add()
int result, x=10, y=20
result = x +y
end sub
447