EasyManuals Logo

Haas VF Series Operator's Manual

Haas VF Series
564 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #373 background imageLoading...
Page #373 background image
37396-8000
MACROS
June 1999
When a variable or expression is used in place of an address constant, then the floating point value is rounded
to the least significant digit. If #1=.123456, then G1X#1 would move the machine tool to .1235 on the X axis. If
the control is in the metric mode, the machine would be moved to .123 on the X axis.
When an UNDEFINED variable is used to replace an address constant, then that address reference is ignored.
For example, if #1 is undefined then the block
G00 X1.0 Y#1 ;
becomes
G00 X1.0.
No Y movement takes place.
MACRO S TATEMENTS
Macro statements are lines of code that allow the programmer to manipulate the control with features similar to
any standard programming language. Included are functions, operators, conditional and arithmetic expressions,
assignment statements, and control statements.
Functions and operators are used in expressions to modify variables or values. The operators are essential to
expressions while functions make the programmer's job easier.
Functions
Functions are built-in routines that the programmer has available to use. All functions have the form
<function_name>[argument]. Functions can be passed any expression as arguments. Functions return
floating point decimal values. The function provided with the HAAS control are as follows:
FUNCTION ARGUMENT RETURNS NOTES
SIN[ ] Degrees Decimal Sine
COS[ ] Degrees Decimal Cosine
TAN[ ] Degrees Decimal Tangent
ATAN[ ] Decimal Degrees Arctangent
Same as FANUC
ATAN[ ]/[1]
SQRT[ ] Decimal Decimal Square root
ABS[ ] Decimal Decimal Absolute value
ROUND[ ] Decimal Decimal Round off a decimal
FIX[ ] Decimal Integer Truncate fraction
ACOS[ ] Degrees Decimal Arccosine
ASIN[ ] Degrees Decimal Arcsine
#[ ] Integer Integer Variable Indirection
DPRNT[ ] ASCII text External Output

Table of Contents

Other manuals for Haas VF Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Haas VF Series and is the answer not in the manual?

Haas VF Series Specifications

General IconGeneral
Machine TypeVertical Machining Center
ControlHaas CNC Control
Z-Axis Travel20-30 inches (varies by model)
Y-Axis Travel16 - 30 inches (varies by model)
Spindle Motor20-30 hp (depending on model)
Tool Capacity20-40 tools (varies by model)

Related product manuals