we will select the in crement of 5

Sep 03
2017

so on For the example, we will select the in crement of 5, to appear as N5, N10, N15, etc, on the


con trol screen The in cre ment has to be set in the con trol – yes, by an other pa ram e ter num ber copper busbar bending machine On


Fanuc 16/18/21, the pa cnc cutter ram e ter num ber that con tains the au to matic num ber ing value is #3216


This is a word type pa ram e ter, and the valid range is 0 to 9999 This pa ram e ter can only be ac ti –


vated by set ting the bit #5 in pa ram e ter 0000 to 1 Pro gram seg ment will look like this:


G10 L50


N3216 R5


busbar Machine


G11


These ex am ples demonstrate how some pa ram e ters are con nected All is done in quite a log i cal


and sim ple way, but it does take a lit tle time to get used to it Once these set tings are com pleted,


there is no need to en ter block num bers in any pro gram that is en tered via the con trol panel key –


board, usu


ally in the Pro gram mode Any


time the copper busbar bending machine End-Of-Block key ( EOB) is pressed, the


N-number will ap pear au to mat i cally, in the in cre ments of 5, sav ing the keyboarding time dur ing


man ual pro gram in put


The idea be hind the G10 be ing modal in the pro gram ma ble pa ram e ter en try mode is that more


than one pa ram e ter can be set as a group Since the two pa ram e ters in the ex am ple are log i cally


con nected, it makes sense to cre ate a sin gle pro gram seg ment, with the same fi nal re sults as the


two smaller pro gram seg ments de scribed ear lier:


G10 L50


N0000 R00101010


N3216 R5


G11


As nei ther pa ram e ter is the axis-type, the ad dress P was not needed, there fore, it was omit ted


The N0000 is the same as N0, and was used only for better leg i bil ity


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


FANUC CNC Custom Macros


72


Chapter 5


Differences Between Control Models


Al though the model num bers do not in di cate it, Fanuc 15 sys tem is a higher con trol level than


the Fanuc 16/18/21 sys tems On Fanuc 15, the pa ram e ter num ber that se lects whether the au to –


matic se quenc ing will en a

Being a higher control, there is also more flexibility on

Sep 03
2017

Being a higher control, there is also more flexibility on Fanuc 15 – for example, the initialse –


quence num


ber can be con


trolled with pa


ram


e


ter #0031 (there is no equiv


a


lent on Fanuc


busbar Machine


16/18/21 model), and the pa ram e ter num ber that stores the in cre ment amount is #0032, with the


same pro gram en try styles as al ready shown Also, on Fanuc sys tem 15, the al low able range of


se quence num bers is higher up to 99999


This is a typ i cal ex am ple of a dif fer ence be tween two sim i lar custom Drilling Machine con trols, even from the same con –


trol man u fac turer


Effect of Block Numbers


Many CNC pro grams in clude block num bers, iden ti fied by the ad dress N It would be per fectly


nat u ral to as sign block num bers to the last ex am ple Af ter all, en try of data is a valid CNC pro –


gram seg ment – for ex am ple:


N121 G10 L50


N122 N0000 R00101010


N123 N3216 R5


N124 G11


Will the pro gram work as shown? One of the ba sic rules of drilling steel block se quenc ing is that only one


N-address can be in a block, as the first address What do you think? Will it work?


There are now two dif fer ent N-ad dresses in the blocks N122 and N123 How does the con trol


han dle this sit u a tion? Rest easy – there will be no con flict what so ever!


In case of two N-ad dresses in a sin gle block be tween G10 and G11, the first N-ad dress is al –


ways the block num ber (ba sic rule), the sec ond N-ad dress in the same block is the pa ram e ter num –


ber The con trol sys tem can in ter pret the ap par ent dis crep ancy with out a prob lem If there is only


one N-ad dress be tween G10 and G11 blocks, it al ways ap plies to the pa ram e ter num ber If there are two N-ad dresses in the block, the first one is the block num ber, the sec ond one is the system


pa ram e ter num ber


Block Skip


Nor mal block skip sym bol (/) can be used to con trol data blocks processing, but be care best mill drill ful


when this func tion is used in mac ros, par tic u larly if the con trol al lows block skip func tion in the

which means it only contains eight bits Each bit

Sep 03
2017

a time sav ing de vice for man ual en try of pro gram data In or der to en able this fea ture, the pa ram e –


ter that con trols the ON/OFF sta tus of the fea ture has to be known and se lected On Fanuc mod els


16/18/21 (Model B), it is the pa ram e ter num ber 0000 (same as 0)


This is a bit-type parameter ( not a byte-type), which means it only contains eight bits Each bit


has its own mean ing Bit #5 ( SEQ) con trols the state of the au to matic se quence num ber ing ( ON or OFF is the same as 1 or 0, but only a num


ber may be input) An in


di


vid


ual bit can


not be


busbar Machine


programmed, the sin gle data num ber of all eight bits must be specified That means all the other


bits have to be known in or der to change only a sin gle one In this ex am ple, the cur rent set ting of


pa ram e ter 0 is listed in eight in de pend ent bits, four with as signed meaning:


SEQ


INI


ISO


TVC


0000


#7


#6


#5


#4


#3


#2


#1


#0


0


0


0


0


1


0


1


0


The mean ing of other pa ram e ters is ir rel e vant for the ex am hole punching machine ple, al though im por tant in the con –


trol for other op er a tions The bit #5 is set to 0, which custom processing machine means the au to matic block num ber ing is dis abled Re mem ber the num ber ing of the pa ram e ter bits – from right to left, start ing at 0


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


FANUC CNC Custom Macros


DATA SETTING


71


The fol low ing ex am ple of a pro gram seg ment is an en try that will turn ON the bit #5 of the pa –


ram e ter #0000, with out chang ing the other bits:


G10 L50


N0 R00101010


G11


The re sult ing en try in the pa ram e ter screen will re Busway Press Clamp Machine flect that change:


SEQ


INI


ISO


TVC


0000


#7


#6


#5


#4


#3


#2


#1


#0


0


0


1


0


1


0


1


0


Note that all bits had to be writ ten Even if it looks that way, the job is not done yet Fanuc con –


trols of fer an ad di tional fea ture – the in cre ment amount for the num ber ing can also be se lected, for


ex am ple, se lec tion of 10 will use N10, N20, N30 en tries, se lec tion of 1 will use N

The last example is similar to the previous one

Sep 02
2017

The last example is similar to the previous one, but modified for two axes values:


G90


G10 L50


N1221 P1 R-250000


N1221 P2 R-175000


G11


If this copper busbar bending machine ex am ple is used on a lathe con trol, the ad dress P1 is the X-axis, the ad dress P2 is the


Z-axis On a ma chin ing cen ter, the ad dress P1 is the X-axis, the ad dress P2 is the Y-axis, and the


ad dress P3 will be the Z-axis, if re quired In ei ther case, the first two axes of the G54 set ting will


be -2500 (X) and -1750 (Y) re spec tively


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


FANUC CNC Custom Macros


busbar Machine


70


Chapter 5


Setting Machine Axes to Zero


Some times it is nec es sary to set all avail able axes in the work off set to zero This may be done


with the stan dard off set drilling steel set ting – the three ba sic axes shown:


G90 G10 L2 P1 X0 Y0 Z0


Application for a milling control


the same set ting an also be writ ten di rectly to a pa ram e ter, also as ap plied to a mill ing con trol:


G90


G10 L50


N1221 P1 R0 (SET G54 X-COORDINATE TO 0)


N1221 P2 R0 (SET G54 Y-COORDINATE TO 0)


N1221 P3 R0 (SET G54 Z-COORDINATE TO 0)


G11


Note the dif fer ence in pro gram ming for mat for the two meth ods


Bit Type Parameter Example


The fol low ing ex am ple has been al ready men tioned ear lier, al beit briefly It is quite harm less,


and may be used as a test (as long as you are care ful about set tings for other pa ram e ters) Its pur –


pose is to set au to matic block se Busway Press Clamp Machine quenc ing ON (for ex am ple, N1, N2, N3, ), when keyboarding a


CNC pro gram at the con trol It also serves as a good il lus tra tion of a bit-type pa ram e ter and some


gen eral thoughts and con sid er ations that go into the pro gram prep a ra tion that in cludes pro gram –


ma ble pa ram e ter en try mode


On Fanuc 16/18/21 (and many of the other mod els as well) is a fea ture that al lows au to matic en –


try of se quence num bers, if the pro gram is en tered from the key board This fea ture is i

This program segment will change the parameter

Sep 02
2017

G10 L50


N5130 R1


G11


This program segment will change the parameter #5130 to 1 It does not matter what the cur –


rent set ting is, it will be come 1 or re mains as 1, if that hap pens to be the cur rent value The


chamfering amount will be equiv a lent to one pitch of the thread, in the in cre ments of 01 pitch As


a re minder, do not con fuse a byte with a bit – byte is a value 0 to 127 or 0 to 255 for the byte axis


type, bit is a cer tain state only ( 0 or 1, OFF or ON, DISABLED or ENABLED, Open or Closed, etc ); ie , se lec tion of one of two op tions avail able


Copyright 2005, Industrial Press Inc, New Busway Press Clamp Machine York, NY –


FANUC CNC Custom Macros


busbar Machine


DATA SETTING


69


2 Example 3 :


An other ex am ple of hydraulic busbar cutter hole punching machine a sys tem pa ram e ter change is for the en try of a two-word pa ram e ter type


(long in te ger) It will change the work co or di nate off set G54 to X-250000:


G90


G10 L50


N1221 P1 R-250000


G11


This is an other method, one that dif fers from the one de scribed ear lier Pa ram e ter #1221 con –


trols the G54, #1222 con trols the G55, and so on P1 re fers to the X-axis, P2 re fers to the


Y-axis, and so on, up to 8 axes Be cause the valid range of a long in te ger (two-word type) is re –


quired, a dec i mal point can not be used Since the set ting is in met ric sys tem, and one mi cron


(0001 mm) is the least in cre ment, the value of -250000 will be en tered as -250000 Be care ful


with the in put of ze ros – one zero too many or one zero too few could cause a ma jor prob lem


Speak ing from ex pe ri ence, this type of er ror is not al ways easy to dis cover The fol low ing ver sion


of the ex am ple is NOT cor rect, and will re sult in an er ror:


G90


G10 L50


N1221 P1 R-2500


Decimal point is not allowed in the R-address


G11


Cor rect in put is with out the dec i mal point, as R-250000 An er ror con di tion (con trol alarm) will


also be gen er ated if the P-ad dress is not spec i fied For ex am ple,


G90


G10 L50


N1221 R-250000


G11


will gen er ate an er ror con d

Visit Our Friends!

A few highly recommended friends...

Pages List

General info about this blog...