BASIC commands
PROGRAMMING MANUAL 37
Revision 3.0
3.1.6 Mathematical functions and operands
/i
3.1.7 Program commands
/i
Name Description
+ (ADDITION) Adds two expressions.
- (SUBTRACTION) Subtracts two expressions.
* (MULTIPLICATION) Multiplies two expressions.
/ (DIVISION) Divides two expressions.
^ (POWER) Takes the power of one expression to the other expression.
= (IS EQUAL TO) Checks two expressions to see if they are equal.
= (ASSIGNMENT) Assigns an expression to a variable.
<> (IS NOT EQUAL
TO)
Checks two expressions to see if they are different.
> (IS GREATER THAN) Checks two expressions to see if the expression on the left is
greater than the expression on the right.
>= (IS GREATER
THAN OR EQUAL TO)
Checks two expressions to see if the expression on the left is
greater than or equal to the expression on the right.
< (IS LESS THAN) Checks two expressions to see if the expression on the left is
less than the expression on the right.
<= (IS LESS THAN OR
EQUAL TO)
Checks two expressions to see if the expression on the left is
less than or equal to the expression on the right.
ABS Returns the absolute value of an expression.
ACOS Returns the arc-cosine of an expression.
AND Performs an AND operation on corresponding bits of the integer
parts of two expressions.
ASIN Returns the arc-sine of an expression.
ATAN Returns the arc-tangent of an expression.
ATAN2 Returns the arc-tangent of the non-zero complex number made
by two expressions.
COS Returns the cosine of an expression.
EXP Returns the exponential value of an expression.
FRAC Returns the fractional part of an expression.
IEEE_IN Returns floating point number in IEEE format, represented by 4
bytes.
IEEE_OUT Returns single byte extracted from the floating point number in
IEEE format.
INT Returns the integer part of an expression.
LN Returns the natural logarithm of an expression.
MOD Returns the modulus of two expressions.
NOT Performs a NOT operation on corresponding bits of the integer
part of the expression.
OR Performs an OR operation between corresponding bits of the
integer parts of two expressions.
SGN Returns the sign of an expression.
SIN Returns the sine of an expression.
SQR Returns the square root of an expression.
TAN Returns the tangent of an expression.
XOR Performs an XOR function between corresponding bits of the
integer parts of two expressions.
Name Description
' (COMMENT FIELD) Enables a line not to be executed.
: (STATEMENT
SEPARATOR)
Enables more statements on one line.
AUTORUN Starts all the programs that have been set to run at start-up.
COMPILE Compiles the current program.
COPY Copies an existing program in the motion controller to a new
program.
Name Description
I52E-EN-03.book Seite 37 Freitag, 29. Juni 2007 11:55 11