EasyManua.ls Logo

Tormach PCNC 440 - 7.7.3.2 Functions; 7.8 Programming with Subroutines; 7.8.1 Subroutine Labels and Subroutine Keywords

Tormach PCNC 440
183 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7
147
UM10372_PCNC440_Manual_0221A
PROgRAMMiNg
7.7.3.2 Functions
Available funcons 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
Subrounes are subprograms that are called from inside another program. The following secons
discuss the structure and design of subroune programming with PathPilot.
7.8.1 Subroutine Labels and Subroutine Keywords
Subrounes are idened in a program by a unique subroune label. The subroune label is the
leer O followed by an integer (with no sign) between 0 and 99999 wrien with no more than ve
digits (000009 is not permied, for example) or a string of characters surrounded by <> symbols.
Examples of valid subroune labels include:
O123
O99999
O<my test code>
Subroune labels may be used in any order but must be unique in a program. Each subroune label
must be followed by a subroune keyword.

Table of Contents

Other manuals for Tormach PCNC 440