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. NO TAG 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 Arc Tangent (degrees)
ASIN ArcSine (degrees)
ACOS Arc Cosine (degrees)
SQRT Square Root
ABS Absolute Value
BIN Conversion from BCD to Decimal
BCD Conversion from Decimalto BCD
ROUND Rounding Off (nearest whole number)
FIX TruncationDown
FUP TruncationUp
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 to ATAN requires
the division of two values. For example, ATAN [10]/[2] is used to
calculate the arc tangent of 5.
The functions in NO TAG 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.1.2
Mathematical Function
Commands