Owner's manual

Paramacros
Chapter 28
28-4
This subsection lists the basic mathematical functions that are available on
the control and their use. Use these functions to accomplish mathematical
operations that are necessary to evaluate the trigonometric and other
complex mathematical equation such as rounding off, square roots,
logarithms, exponent, etc. Table 28.B lists the basic functions that are
available and their meanings.
Table 28.B
Mathematical Functions
Function Meaning
SIN Sine (degrees)
COS Cosine(degrees)
TAN Tangent(degrees)
ATAN ArcTangent(degrees)
ASIN ArcSine(degrees)
ACOS Arc Cosine (degrees)
SQRT Square Root
ABS Absolu te Value
BIN Conversionfrom BCDtoDecimal
BCD Conversion fromDecimaltoBCD
ROUND Rounding Off(nearestwholenumber)
FIX TruncationDown
FUP Truncation Up
LN Logarithms (base e)
EXP Exponent
When programming these functions, the value on which that function is to
be performed must be included in brackets: for example, SIN [10]. The
exception to this is the arc tangent function. The format t o 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 28.B are executed from left to right in a program
block. These functions are executed before the control executes any
mathematical operators such as addition or subtraction. This order of
execution can be changed only by enclosing operations in brackets [].
Operations enclosed in brackets are executed first.
28.2.2
Mathematical Function
Commands