Link to us from your website and promote the community!... Then email us to receive a Free CNC cheat sheet from the CNC Specialty Store!

Facebook Group

Share your CNC information?
...Procedures
...Macro programs
...Articles
...and more

Suggestions or comments?
Please Email Us

Thank you for all your contributions and supporting the CNC community.

Fanuc Macro variable arithmetic commands chart

Fanuc Macro arithmatic variables for NC programming

Macro Variable Arithmetic Commands Subtraction #i=#jOR#k Logical sum (at every bit of 32 bits) #i=#jXOR#k Exclusive OR (at every bit of 32 bits) "Multiplication arithmetic" Purpose Expression Contents #i=#j - #k #i=#j*#k Product #i=#j/#k Quotient #i=#jAND#k"Definition and substitution of variables" #i=#j Definition, substitution"Logical product (at every bit of 32 bits)"Cosine (degree unit) #i=ACOS [#j] Arccosine (degree unit) #i=TAN [#j] Tangent (degree unit) #i=ATAN [#j]/[#k] Arctangent (degree unit) #i=SQRT [#j] Square root Functions #i=SIN [#j] Sine (degree unit) #i=ASIN [#j]Addition arithmetic #i=#j+#k Sum Arcsine (degree unit) #i=COS [#j]#i=ABS [#j] Conversion from BIN to BCD #i=ROUND [#j] Rounding off #i=FIX [#j]Discard fractions less than 1 #i=FUP [#j] Add 1 Absolute value #i=BIN [#j] Conversion from BCD to BIN #i=BCD