2 mathematical function commands – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 647

Advertising
background image

Paramacros

Chapter 20

20-3

All logical operators have the format of:

A logical operator B

where:

- A and B are numerical data or a parameter with a value assigned to it

- B cannot be negative or an error occurs

- 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 20.2 illustrates the proper format for the logical operators.

Example 20.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

This subsection covers the basic mathematical functions that are available
on the control and their usage. Use these functions to accomplish
mathematical operations necessary to evaluate trigonometric and other
complex mathematical equations, such as rounding off, square root,
logarithms, exponent, etc. Table 20.B lists the basic mathematical
functions that are available and their meanings.

20.1.2
Mathematical Function
Commands

Advertising