Rockwell Automation 8520 9/Series CNC Lathe User Manual
Page 677
Advertising
Paramacros
Chapter 28
28-3
Example 28.1
Mathematical Operations
Expression entered
Result
12/4*3
9
12/[4*3]
1
12+2/2
13
[12+2]/2
7
12-4+3
11
12-[4+3]
5
All logical operators have the format of:
A logical operator B
where A and B are numerical data or a parameters with a value assigned.
If B is negative in the above format, an error will occur.
If A is negative, the absolute value of A is used in the operation and the
sign is attached to the final result.
Before evaluation, A and B are made integers by rounding and truncating.
Example 28.2
Logical Operation Examples
Expression Entered
Result
[16.2MOD3]
1.0
[-16.2MOD3]
-1.0
[-17.6MOD3]
0.0
[16.0MOD3]
1.0
[-5AND4]
-4.0
[4.4AND3.6]
4.0
[5AND-4]
ERROR
[83886079AND83886080]
67108864
Advertising