mirrored From these examples and with a little

mirrored From these examples and with a little


knowl edge of bi nary num bers, there should be no prob lem to ead- to in ter pret – other re turned


val ues of the sys tem vari able #3007


Copyright 2005, Industrial Press Inc, New York, NY – FANUC CNC Custom Macros


202


Chapter 16


Controlling the Number of Machined Parts


copper cutting Machine


There are two more sys tem vari ables that re late to auto mode op er a tion Two sys tem vari ables,


#3901 and #3902 con trol the count ing of ma chined parts dur ing an au to matic op angle machine er a tion


They are:


#3901


Number of parts completed (machined)


#3902


Number of parts required


Sys tem vari able #3901 is used for the num ber of parts ma chined The value of this vari able


stores the num ber of com pleted parts


Sys tem vari able #3902 is used for the num ber of parts re quired The value of this vari able


stores the num ber of re quired parts (the tar get num ber)


Both vari ables can be used to write to or to read from (read/write type) A neg a tive value should


not be used with these vari ables in mac ros (con sider us ing the ABS func tion)


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


FANUC CNC Custom Macros


EDITING MACROS


17


Cus tom Dished Head Punching Machine macro files are of ten loaded from an ex angle shearing machine ter nal com puter to the CNC sys tem mem ory


Long or com plex mac ros are better ed ited in the com puter file, then re loaded to the con trol sys tem


later There are also many cases where this method may not be con ve nient, for ex am ple when the


mac ros are very short or when ed it ing ex ist ing mac ros, al ready loaded in the sys tem In such


cases, macro state ments can also be in put through the con trol panel key board, right at the CNC


ma chine There is not much of a dif fer ence in ed it ing mac ros than ed it ing con ven tional CNC pro –


grams – they are ed ited by words; for ex am ple, to change the word X-123456 to X123456, the


whole word has to be al tered (ed it ing of in di vid ual char ac ters is not nor mally pos si ble

Leave a Reply

Name (required)


Mail (required)


Website