EasyManua.ls Logo

Galil Motion Control DMC-40x0 Series - Page 22

Default Icon
280 pages
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...
12 + - * / % DMC-40x0 Command Reference
+ - * / %
FUNCTION: Math Operators
DESCRIPTION:
The addition, subtraction, multiplication, division, and modulus operators are binary operators
(they take two arguments and return one value) used to perform mathematical operations on
variables, constants, and operands.
ARGUMENTS: (n + m) or (n – m) or (n * m) or (n / m) or (n % m) where
n and m are signed numbers in the range -2147483648 to 2147483647
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
( ) Parenthesis
EXAMPLES:
:x =((1+(2*3))/7)-2 ;'assign -1 to x
:MG 40 % 6
;'integer remainder of 40 divided by 6
4.0000
:

Related product manuals