EasyManua.ls Logo

Trio Motion Coordinator MC216 - Mathematical Operations and Commands; Add; Subtract

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...
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-133
Mathematical Operations and Commands
Mathematical Operations and Commands
+ Add
Type:
Arithmetic operation
Syntax
<expression1> + <expression2>
Description:
Adds two expressions
Parameters:
Example:
result=10+(2.1*9)
Trio BASIC evaluates the parentheses first giving the value 18.9 and then adds the
two expressions. Therefore result holds the value 28.9
- Subtract
Type:
Arithmetic operation
Syntax
<expression1> - <expression2>
Description:
Subtracts expression2 from expression1
Parameters:
Example:
VR(0)=10-(2.1*9)
Trio BASIC evaluates the parentheses first giving the value 18.9 and then subtracts
this from 10. Therefore VR(0) holds the value -8.9
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression

Table of Contents

Related product manuals