Chapter 7
147
UM10372_PCNC440_Manual_0221A
PROgRAMMiNg
7.7.3.2 Functions
Available funcons are shown in the table below.
Function Name Function Result
ATAN[Y]/[X] Four quadrant inverse tangent
ABS[arg] Absolute value
ACOS[arg] Inverse cosine
ASIN[arg] Inverse sine
COS[arg] Cosine
EXP[arg] e raised to the given power (e
x
)
FIX[arg] Round down to integer
FUP[arg] Round up to integer
ROUND[arg] Round to nearest integer
LN[arg] Base-e logarithm
SIN[arg] Sine
SQRT[arg] Square root
TAN[arg] Tangent
EXISTS[arg] Check named parameter
7.8 Programming with Subroutines
Subrounes are subprograms that are called from inside another program. The following secons
discuss the structure and design of subroune programming with PathPilot.
7.8.1 Subroutine Labels and Subroutine Keywords
Subrounes are idened in a program by a unique subroune label. The subroune label is the
leer O followed by an integer (with no sign) between 0 and 99999 wrien with no more than ve
digits (000009 is not permied, for example) or a string of characters surrounded by <> symbols.
Examples of valid subroune labels include:
O123
O99999
O<my test code>
Subroune labels may be used in any order but must be unique in a program. Each subroune label
must be followed by a subroune keyword.