Fanuc Macro variable arithmetic commands chart |
|
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 |