beautypg.com

ACU-RITE CNC 3500i User Manual

Page 422

background image

396

11 G-Code Edit, Help, & Advanced Features

1

1

.4 A

d

v

a

nced Pr

ogr

a

mming

Ref.

Example

n)

SIN (n) gives the sine of (n). (n) is assumed to be in degrees.
G01 X(cos(15)) Y(sin(15)) moves along the hypotenuse of a
15-degree angle with a hypotenuse of 1.

o)

COS (n) gives the cosine of (n).

p)

TAN (n) gives the tangent of (n).

q)

ASIN (n) gives the arcsine of (n).

r)

ACOS (n) gives the arccosine of (n).

s)

ATAN (n) gives the arc tangent of (n).

t)

ABS (n) gives the absolute value of (n).

u)

SQRT (n) gives the square root of (n).

v)

LN (n) is natural logarithm.

w)

LOG (n) is logarithm.

x)

EXP (n) is exponential function.

y)

EXP (n) is exponential function.

z)

! unary logical not, != (not equal to).
Positive, (+(#100)) means positive whatever value is in #100.
Negative, (-(#100)) means negative whatever is in #100.
Example of indirection:
N30 #200 = 51.456
N40 #201 = 200
N50 G90 G1 X ##201 F200
At Block N40 variable #201 = 200. Only when the second
level of indirection is used at N50 does variable #201 contain
the contents of variable #200 causing the X-axis to move to
position 51.456. Up to four levels of indirection can be used.