Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 30

Advertising
background image

Basic Control Operation

Chapter 2

2-6

Example 2.1

Mathematic Expressions

Expression Entered

Result Displayed

12/4*3

9

12/[4*3]

1

12+2/2

13

[12+2]/2

7

12-4+3

11

12-[4+3]

5

Table 2.C lists the function commands available with the

[CALC]

key.

Table 2.C

Mathematical Functions

Function

Meaning

SIN

Sine (degrees)

COS

Cosine (degrees)

TAN

Tangent (degrees)

ATAN

Arc Tangent (degrees)

ASIN

Arc Sine (degrees)

ACOS

Arc Cosine (degrees)

SQRT

Square Root

ABS

Absolute Value

BIN

Conversion from Decimal to Coded Decimal

BCD

Conversion from Coded Decimal to Decimal

ROUND

Rounding Off (nearest whole number)

FIX

Truncation Down

FUP

Truncation Up

LN

Logarithms (natural log)

EXP

Exponent

When you program these functions, place the value that the function is to
be performed on in brackets, for example, SIN [10]. The exception to this
is the arc tangent function. The format for ATAN requires the division of
two values. For example, ATAN [10]/[2] is used to calculate the arc
tangent of 5.

The functions in Table 2.C are executed from left to right in a program
block. These functions are executed before the control executes any
mathematical operators like addition or subtraction. This order of
execution can only be changed by enclosing operations in brackets [ ].
Operations enclosed in brackets are executed first.

Advertising