Posts Tagged ‘plied’

the focus was at vacant variables as they were ap plied to the axis motion command

the focus was at vacant variables as they were ap plied to the axis motion command Va –


cant vari ables can also be used as a part of the var i ous math e mat i cal op er a tions, and it is very im –


por tant to un der stand how they be have in that en vi ron ment Math e mat i cal op er a tions in clude


re def i ni tion (substitution) of vari ables, as well as arith me tic, al ge braic, trig o no met ric, and other types of cal cu la tions On the ba sic level, the rules are slightly dif fer ent for ad di tion and sub trac –


tion than for mul ti pli ca tion and di vi sion The fol low ing ex am ples should clar ify the most com mon pos si bil i ties en coun tered in mac ros:


2 SUBSTITUTION


u


Vacant variable substituted will remain vacant:


#1 = #0


busbar Machine


#1 defined as vacant


#2 = #1


#2 also defined as vacant


u


Zero value variable substituted will remain zero:


#1 = 0


#1 defined as a zero value


#2 = #1


#2 also defined as a zero value


2 ADDITION


u


Vacant variable added drilling steel to a value is the same as an increase by zero:


#1 = #0


#1 defined as vacant


#2 = 157 + #1


#2 will add 0 and return 157


#3 = #1 + #1


#3 will add 0 to a 0 and return 0


u


Zero value variable added to a value is the same as an increase by zero:


#1 = 0


#1 defined as zero


#2 = 157 + #1


#2 defined as 157


#3 = #1 + #1


#3 will add 0 to a 0 and return 0


2 SUBTRACTION


u


Vacant variable subtracted from a value is the same as a decrease by zero:


#1 = #0


#1 defined as vacant


#2 = 157 – laser cutting #1


#2 will subtract 0 and return 157


u


Zero value variable subtracted from a value is the same as a decrease by zero:


#1 = 0


#1 defined as zero (0)


#2 = 157 – #1


#2 will subtract 0 and return 157


Copyright 2005, Industrial Press Inc, New York, NY – wwwindustrialpresscom


FANUC CNC Custom Macros


MACRO FUNCTIONS


115


2 MULTIPLICATION


u


Multiplication by a vacant variable is the same as a multiplication by zero:


#1 = #0


#1 best mill drill defined as vacant


#2 = 157 * #1


#2 will multiply by 0 and return 00


u


Multiplication by a zero value variable is