Within the Group 2 is a small sub group

September 2, 2017 · Posted in Uncategorised · Comment 

ng ex e cu tion, * and ** iden tify the same set tings for ed it ing and dis play Copyright 2005, Industrial Press Inc, New York, NY –


FANUC CNC Custom Macros


82


Chapter 6


Program Numbers – Range copper busbar bending machine O9000 to O9049


Within the Group 2 is a small sub group, iden ti fy ing a small se lec tion of pro gram num bers be –


tween O9000 and O9049 This range is used for spe cial type of mac ros – those that are de signed to


de fine a new G-code, M-code, S-code or T-code


As a sub ject, the cre ation of new G-codes, M-codes, S-codes or T-codes, is rather ad vanced at


this point, and even a sea soned macro pro gram Busway Press Clamp Machine mer does not al ways need these ad vanced pro gram –


ming meth ods How ever, it is very im por tant to es tab lish a cer tain method in as sign ing macro


pro gram num bers right from custom processing machine the be gin ning, even if it is for cat a logu ing pur poses only


cnc drill Machine


It is al ways a good prac tice to as sign all mac ros the 8000 or even the 9000 se ries of num bers, so


they can be locked and pro tected against ac ci den tal ed it ing and de le tion


Difference Between the O8000 and O9000 Program Numbers


Looking at the def i ni tions of pro gram num bers care fully, it is easy to no tice that both Group 1


and Group 2 have the same re stric tions In ei ther group, pro grams us ing num bers from that par –


tic u lar group can not be ed ited, reg is tered, or de leted, with out a pa ram e ter set ting So what are the


unique dif fer ences be tween them?


The most sig nif i cant dif fer ence is in the method of how the re stric tions are ac ti vated – which pa –


ram e ters are used Fanuc sys tem 15 is a higher level con trol then Fanuc 16/18/21 or Fanuc 0 In


most cases, the dif fer ence be tween the var i ous sys tems is the flex i bil ity and con ve nience of the pa –


ram e ter set tings, rather than particular fea tures or func tion al ity


Of ten, the main dif fer ence in the ease of set ting Fanuc dis tin guishes two ways of set ting a sys –


tem pa ram e ter (not ap pli ca ble to all con trols) One

They are classified into four types of variables

September 2, 2017 · Posted in Uncategorised · Comment 

Types of Macro Variables


All Fanuc control sys tems, regard less of their model number, support macro variables by type


They are classified into four types of variables:


Variable


number range


Variable


type


Description


From


To


A NULL variable has no value It is defined as #0 variable,


NULL


it is an empty variable, often called a vacant variable This


#0


drilling Machine


variable


variable can be read by the macro program, but it cannot be


assigned a value, which means data cannot be assigned to it


LOCAL variables are only temporary – they are used in


a macro body and hold certain data When the macro is Busway Press Clamp Machine called,


LOCAL


the local variables are set to their assigned values When the


#1


#33


variables


user macro is completed and exits (using the miscellaneous


function M99), or the control power is turned off, all local


variables are set to null values – they cease to exist


COMMON


COMMON (also called Global) variables are still custom processing machine valid when


#100


#149


or


a macro is completed These variables are maintained by the


system and they can be shared by several other macro programs


#500


#531


Global


The higher level variables are normally cleared by a specially


variables


design macro program


SYSTEM variables are used for setting and/or changing default


and


SYSTEM


conditions and can read and write different CNC data, for


#1000


up


variables


example, a current status of a G-code mode, the current work


offset, etc Their Busway Press Clamp Machine numbers are assigned by the Fanuc control


83


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


FANUC CNC Custom Macros


84


Chapter 7


Note that some ref er ence man u als may only re fer to the last three types, leav ing the 鈥榲a cant锟?


vari able (num bered as #0) alone – not con sid er ing it as a sep a rate group type


In a sum mary, vari ables are used in mac ros in stead of ac tual data The macro pro gram mer as –


signs val ues to the vari ables on the ba sis of the cur rent ap pli ca tion Vari ables add flex i bil ity to the

Parameters related to DISPLAY

September 2, 2017 · Posted in Uncategorised · Comment 

anuc 0


#0389


#2 PRG8


1 = Program editing is NOT ALLOWED


0 = Program editing is ALLOWED


Fanuc 10/11/15


#0011


#0


NE8


1 = Program editing is NOT ALLOWED


0 = Program editing and display is ALLOWED*


Fanuc 16/18/21


#3202


#0


NE8


drill Machine


1 = Program editing and display is NOT ALLOWED*


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


FANUC CNC Custom Macros


MACRO STRUCTURE


81


Parameters related to DISPLAY – O8000-O8999 program range


Control System Parameter Bit Bit ID


Setting


Fanuc 0


n/a


n/a


n/a


0 = n/a


1 = n/a


(not available)


0 = Program display during execution is ALLOWED


Fanuc 10/11/15


#0011


#1


ND8


1 = Program display during execution is NOT ALLOWED


0 = Program editing and display is ALLOWED*


Fanuc 16/18/21


#3202


#0


NE8


1 = Program editing and display is NOT ALLOWED*


Program Numbers – Range O9000 to O9999


The sec ond group is named Group 2 It cov copper busbar bending machine ers the range of pro gram num bers O9000 to O9999


only Pro grams us ing custom processing machine num bers from Group 2 can not be ed ited, reg is tered, or de leted, with out a


pa ram e ter set ting Again, the pa ram e ter ac cess num ber de pends on the con trol sys tem:


Parameters related to EDITING – O9000-O9999 program range


Control System Parameter Bit Bit ID


Setting


0 = Program editing is ALLOWED


Fanuc 0


#0010


#4 PRG9


1 = Program editing is NOT ALLOWED


0 = Program editing is ALLOWED


Fanuc 10/11/15


#2201


#0


NE9


1 = Program editing is NOT ALLOWED


0 = Program editing and display is ALLOWED**


Fanuc 16/18/21


#3202


#4


NE9


1 = Program editing and display is NOT ALLOWED**


Parameters related to DISPLAY – O9000-O9999 program range


Control System Parameter Bit Bit ID


Setting


Fanuc 0


n/a


n/a


n/a


0 = n/a


1 = n/a


(not available)


0 = Program display during best mill drill execution is ALLOWED


Fanuc 10/11/15


#2201


#1


ND9


1 = Program display during execution is NOT ALLOWED


0 = Program editing and display is ALLOWED**


Fanuc 16/18/21


#3202


#4


NE9


1 = Program editing and display is NOT ALLOWED**


NOTE: Dis play = Dis play dur i

It is through the SETTING key on the operation

September 2, 2017 · Posted in Uncategorised · Comment 

It is through the SETTING key on the operation


panel This is also called Handy Set ting, or Set ting (Handy) or some thing sim i lar In or der to ac ti –


vate a sys tem pa ram e ter in this en vi ron ment, the pro gram mer will nor mally use the ON (1) or


OFF (0) set ting This is avail able only on Fanuc 15 and 16/18/21 mod els On Fanuc 15, pa ram e –


ter #8000, bit #0 ( PWE), al lows changes to pa ram e ters that can not be set through the Set ting screen On Fanuc 16/18/21, the Set ting screen al lows all pa ram e ters to be changed When pa ram –


e ters are en abled (on any con trol), an alarm (er ror con di tion) oc curs Busway Press Clamp Machine nat u rally


Un der stand ing the ma chine spec i fi ca tions and con trol sys tem pa ram e ters is extremely im por tant


in macro de vel op ment Even in its de tailed ap proach, this hand book only of fers some in sights and


ex pla hole punching machine na tions, the most im por tant and com mon ones – it can not cover all de tails for all oc ca sions


No macro pro gram mer can work with out the var i ous ma chine and con trol man u als – they are


the sources of con crete in for ma tion and pre cise data source about the equip ment used Each CNC


ma chine tool in the shop will have to be eval u ated individually


For specific details, always con sult ma chine and con trol man u als sup plied by the vendor


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


cnc drilling Machine


FANUC CNC Custom Macros


CONCEPT OF VARIABLES


7


In the pre vi ous chap ter, sev eral con cepts of macro struc ture were cov ered and the pur pose of


vari ables has been in tro duced and identified, in clud ing their ba sic us age in mac ros Vari ables in a


cus tom macro have been de signed with sev eral con sid er ations, so look ing at them drilling tools in more de tail is


es sen tial to their full un der stand ing


The start ing point – and the most im por tant one – to un der stand ing vari ables, is the un der stand –


ing of their dif fer ences In Fanuc cus tom mac ros, there are four dif fer ent cat e go ries of vari ables, called th

program but also benefit from other features, such as in put data in tegrity

September 2, 2017 · Posted in Uncategorised · Comment 

program but also benefit from other features, such as in put data in tegrity, allow able range


check ing, etc


Variables in Macros


Vari ables are the most no tice able fea ture of cus tom mac ros, ei ther in their ini tial as sign busbar cutting machine ment, or


in their use within the macro body Cus tom mac ros de pend on vari ables, so it is im per a tive to


have a look at what vari ables are, from the ground up


Definition of Variables


The word or ex pres sion ariable can be de fined in math e mat i cal terms:


A variable is a mathematical quantity custom Drilling Machine that can assume


any value within its allowed range and format


cnc drill Machine


Cal cu la tor Anal ogy


The con cept of vari ables can be il lus trated with a com mon sci en tific pocket cal cu la tor Even the


most in ex pen sive cal cu la tors have at least one mem ory fea ture This mem ory is a tem po rary stor –


age area for data values that can be stored now and used later The data val ues in the stor age will


most likely be dif fer ent ev ery time the cal cu la tor is used for the same calculation, so such data is


called the vari able data, the stor age area is the vari able (cal cu la tors call it mem ory stor age or just mem ory) The word vari able means change or change able More ad vanced cal cu la tors have more than one mem ory stor age area and they also of fer stor age of for mu las and com mon calculations If


more than one mem ory is avail able on a calculator, iden ti fi ca tion num bers or let ters for each


mem ory are pro vided on the keypad, to dis tin guish one from an other Re call ing the pre vi ously


stored vari able value by a let ter or a num ber will re trieve it from mem ory and place it into the cur –


rent calculation In mac ros, many mem o ries (vari ables) con tain ing dif fer ent data can be de fined


and avail able for calculations, de pend ing on the con trol model


Vari able Data


In mac ros, the con cept is the same as for calculators Vari ables have a ge neric, rather than a


spe cific, char ac ter They serve as stor age ar eas, and Hydraulic punching machines they con t