ACU-RITE CNC 3500i User Manual

Page 421

Advertising
background image

ACU-RITE 3500i

395

1

1

.4 A

d

v

a

nced Pr

ogr

a

mming

Examples

Ref.

Example

a)

G01 X(#100 + #101). All calculations must be enclosed in
parentheses. This defines an expression.

b)

G00 Y&A(#102 * #103)
LOOP (5 / 2 / .01)
Example of multiplication, division, and modification.

c)

G01 X(3 + 2)
#100 = (#122 - #105).
Addition and Subtraction.

d)

IF (#101 > 0) THEN .
Greater than (>), less than (<).

e)

IF (#144 = #143) GOTO ...
Equal to, not equal to (!=)

f)

TOMM (n); convert n to mm.
If n's type is inch, TOMM (n) = n * 25.4

g)

TOIN (n); convert n to inch. If n's type is mm, TOIN (n) = n /
25.4

h)

TODE (n); convert to current (IN or MM) mode.

i)

TONU (n); force the type of (n) to the modal (inch or mm).

j)

ROUND (n) rounds the value of (n) up or down, depending if
its fractional part is equal or greater than 0.500000, or less
than 0.500000.
#100 = 1.500 ; G01 X(round(#100)) moves to X2.0000
#101 = 1.499 ; G01 X(round(#101)) moves to X1.0000

k)

FIX (n) rounds the value down to the next whole number.
#100 = (5/2) ; G01 X(fix(#100)) moves to X2.0000

l)

FUP (n) rounds the value up to the next whole number.
#100 = (5/2) ; G01 X(fup(#100)) moves to X3.0000

m)

VAR (n) is used to check if a user variable has been defined
in a program. IF (var(#100)) THEN . If #100 has been defined
by the user, then true. If not, then false.

Advertising