ACU-RITE CNC 3500i User Manual

Page 443

Advertising
background image

ACU-RITE 3500i

417

1

1

.4 A

d

v

a

nced Pr

ogr

a

mming

Macro Programming (Hole Milling Macro)

This example machines a CW or CCW hole. A move is made to the
hole center and to the required Z depth before calling the macro. After
the macro is completed, the Z-axis moves to the clearance plane. The
macro contains tangential entry to and exit from the hole surface. It
uses error checking and messages. When the macro is finished,
machine parameters return to their previous status.

String variables (e.g. EPSI, SAVEFRT) can be set and used in place of
regular variables.

Symbol or name variables can be used to make a macro program
easier to understand. They can represent a value or a variable. They
can be used only in sub-programs, and must be defined before use,
in the following format:

[TEXT value or variable

You can use a variable to print values.

#35= PI ;print 35 *3.141592654 is printed

There must be at least one space preceding and following the string
variable in a program. In the following examples, PI is the variable.

#35/PI+#23 Produces error.

#35/ PI +#23 Correct format

Once set, string variables can be used in any macro within the same
program.

Examples:

[ PI 3.141592654

*PI is read as the value given

[ TFLAG #1041

*TFLAG represents system
variable #1040 (current tool
comp)

Open bracket must start line. Do not use equal signs (=)
in string variables.

Advertising