Setting and direct transfer variables – ACU-RITE CNC 3500i User Manual

Page 428

Advertising
background image

402

11 G-Code Edit, Help, & Advanced Features

1

1

.4 A

d

v

a

nced Pr

ogr

a

mming

Setting and Direct Transfer Variables

When using parametric programming with axis addresses and
expressions (including unary minus), the complete expression needs
to be in parenthesis. For example, X(-#151) is correct. X-#151 or
X-(#151) is not correct.

Variables are loaded or set when they display on the left side of an
equation. (That is, the left side of the equal sign).

Example 1: N200 #100 = 5.56

Variable #100 contains number 5.560000 until changed.

Example 2: N200 #100 = 25.4m

Variable #100 sets variable 100 to 25.4mm. Similarly, #100 = 5i sets
variable 100 to 5 inches. If neither "i" nor "m" is used when assigning
a variable, then the value of the variable is modal. For example, #100
= 8 sets variable #100 to 8 (no unit).

Example 3: N200 #100 = #20

Variable #100 contains the number held by #20 until changed.
Equating one variable with another is called a direct transfer.

When a direct transfer is requested, the variable on the
right side of the equation must contain a value.
Otherwise, the 3500i displays an error message (#nn not
defined).

Advertising