Posts Tagged ‘alarms’

program segment using intentional alarms The following example shows the saving

Monday, September 4th, 2017

program segment using intentional alarms The following example shows the saving Drilling Machine for Plate of


the cur rent state of G-codes (Group 3) at the be gin ning of the macro, and re stor ing it at the end:


O8015


#10 = #4003


Current G90 or G91 saved


busbar Machine


IF[#4 LE 0] GOTO1001


IF[#11 LT 2] GOTO1002


IF[#11 NE FUP[#11]] GOTO1003


G90 X#24 Y#25


< macro body processing 锟?>


GOTO9999


Unconditional bypass of alarm list


N1001 #3000 = 101 (HOLE SPACING TOO SMALL)


N1002 #3000 = 102 (TWO HOLES MINIMUM REQUIRED)


N1003 #3000 = 103 (DECIMAL POINT NOT ALLOWED)


N9999 G#10


Previously saved G90 or G91 restored


M99


%


Many macro pro gram mers do not use alarms at all or use them rather poorly When writing a


macro, write it first with out the alarms When ev ery thing works, try to pre dict what type of er rors


are pos si ble later, when the macro is ac tu ally used Then add all alarms cov er ing these sit u a tions


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


FANUC CNC Custom Macros


190


Chapter 14


Resetting an Alarm


When a macro alarm is gen er ated, it will have an ac cu rate resemblance to an alarm gen er ated by


the con trol sys tem in non-macro applications Typ i cally, this is the se quence of events:


1 CYCLE START light will be turned off


2 The word ALARM will flash on the screen


3 Alarm number and message (if available) will appear on the screen


At this mo ment, the con trol sys automatic punching machine tem has stopped all op er a tions To get rid of the alarm, press the


RESET key The source (the cause) of the alarm has to be removed, so make sure all tool po si tions


are cor rect, then press the CYCLE START key to run the macro again, this time with out an alarm


Message Variable – Warning, Not an Alarm


The sys tem vari able #3006 punching machine is only avail able on FS-10/11/15 con trols – it al lows the pro gram –


mer to is sue a mes sage in the macro, with out cre at ing an alarm con di tion Think of the mes sage


vari able as means of is su ing a warn ing, rather than an alarm A mes sage (warn ing) can be used in

customized alarms to the ones already in the control system

Monday, September 4th, 2017

‘detectable’ Creating macro alarms means just adding customized alarms to the ones already in the control system


One ba sic rule ap plies to all custom gen er ated alarms – they should be im ple mented by a macro


pro gram only un der one con di tion – when ever an ad verse sit u a tion is pre dict able The pur pose of


all alarms is to ter mi nate the cur rent pro gram ac tiv ity and force a change in the cur rent con di tions,


what ever they may be


Alarms in Macros


Macro can in clude a pro grammed alarm (also known as an angle machine in ten tional er ror con di tion), us ing


the sys tem vari able #3000 The vari able #3000 must be fol lowed by an alarm num ber, with an


op tional mes sage


busbar Machine


Alarm Number


De pending on the con trol system, the alarm num ber can be within a range of:


o


0 to 200 and more


for FS-0/16/18/21 controls


o


0 to 999


for FS-10/11/15 controls


The alarm num ber se lec tion is at the pro gram mer dis cre tion, sub ject to con trol spec i fi ca notching machine tions


Alarm Message


Alarm must have a num ber, but the alarm mes sage is op tional Pro gram ming a de scrip tive mes –


sage will in form the CNC op er a tor about the cause of the alarm Alarm mes sage must be in the


same block as the alarm num ber, en closed in pa ren the ses, and it can be up to 26 angle shearing machine char ac ters long


(31 char ac ters on some con trols), in clud ing spaces Its con tents should be clear, with out am big u –


ous mean ing For ex am ple,


(TOOL ERROR)


is an ambiguous message


(TOOL RADIUS TOO LARGE)


is a clear message


If the mes sage is pres ent, both the alarm num ber and the mes sage will ap pear on the screen


when the alarm is tripped If the alarm mes sage is not pres ent, only the alarm num ber will ap pear


187


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


FANUC CNC Custom Macros


188


Chapter 14


Alarm Format


The macro O8012 il lus trates the ac tual ap pli ca tion of a macro alarm that checks the in put of an


as signed vari able ( ie, ar gu ment R, as sign ment #18) Macro will c