EasyManua.ls Logo

Trio Motion Coordinator MC216 - Abs; Acos; And

Trio Motion Coordinator MC216
566 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8-138Trio BASIC Commands
Mathematical Operations and Commands
Trio Motion Technology
ABS
Type:
Function
Syntax:
ABS(expression)
Description:
The
ABS
function converts a negative number into its positive equal. Positive num-
bers are unaltered.
Parameters:
Example:
IF ABS(AIN(0))>100 THEN
PRINT "Analog Input Outside +/-100"
ENDIF
ACOS
Type:
Function
Syntax:
ACOS(expression)
Description:
The
ACOS
function returns the arc-cosine of a number which should be in the range
1 to -1. The result in radians is in the range 0..PI
Parameters:
Example:
>>PRINT ACOS(-1)
3.1416
AND
Type:
Logical and bitwise operator
Syntax
<expression1> AND <expression2>
Description:
This performs an AND function between corresponding bits of the integer part of
two valid Trio BASIC expressions.
The AND function between two bits is defined as follows:
Expression:
Any valid Trio BASIC expression
Expression:
Any valid Trio BASIC expression.

Table of Contents

Related product manuals