4

Section 3: Math Functions

This section describes the math functions of the Series 90-30/20/Micro Instruction Set:

Abbreviation

Function

Description

Page

 

 

 

 

 

 

 

 

ADD

Addition

Add two numbers.

4-27

 

 

 

 

SUB

Subtraction

Subtract one number from another.

4-27

 

 

 

 

MUL

Multiplication

Multiply two numbers.

4-27

 

 

 

 

DIV

Division

Divide one number by another, yielding a

4-27

 

 

quotient.

 

 

 

 

 

MOD

Modulo Division

Divide one number by another, yielding a

4-31

 

 

remainder.

 

 

 

 

 

SQRT

Square Root

Find the square root of an integer or real value.

4-33

 

 

 

 

SIN, COS, TAN,

Trigonometric Functions †

Perform the appropriate function on the real

4-35

ASIN, ACOS,

 

value in input IN.

 

ATAN

 

 

 

 

 

 

 

LOG, LN

Logarithmic/Exponential

Perform the appropriate function on the real

4-37

EXP, EXPT

Functions †

value in input IN.

 

 

 

 

 

RAD, DEG

Radian Conversion †

Perform the appropriate function on the real

4-39

 

 

value in input IN.

 

 

 

 

 

Trigonometric Functions, Logarithmic/Exponential Functions, and Radian Conversion functions are only available on the model 350 and 360 series CPUs, Release 9 or later, or on all releases of CPU352.

Note

Division and modulo division are similar functions which differ in their output; division finds a quotient, while modulo division finds a remainder.

4-26

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 107
Image 107
GE 90-30/20/Micro manual Math Functions, Abbreviation Function Description