![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi all! Not sure where I should post my question about Custom Macro A so here is a link to the thread I wrote. Please help! Custom Macro A alarm 76 |
|
#2
| |||
| |||
G65 H01 P#121 Q4000 should load the value of Q into variable #121 However, if your example program snippet is exactly as it appears in the control, I note that you have a "," instead of a period (decimal point); you've done this in both your main and sub program examples(see below). If this is the case then this may be upsetting the control. I'm not sure whether the control will even accept a "," as in all my years of being involved with NC and CNC machines, I've never made that mistake nor tried to use "," in a program, even in a comment. If you have used a ",", I would have expected a different error. G17 G40 G54 G21 G90 ; M6 T1; G00 X0 Y0 Z0,5 S400 M13; G81 X#108 Y#106 R0,1 Z-13,1 F50 If this is not the case, and you are using periods, the way to find a problem with Macro code that is defying logic, is to put the one line of code you suspect to be the problem in a program by itself. Construct a program as follows to see if you get the same error when you run it. The only thing the following program does is load the value of 4000 into #121 O1000 G65 H01 P#121 Q4000 M00 M30 % Run this program and when it stops at the compulsory stop M00, look up variable 121 in the Macro variable register to make sure that the value 4000 has been stored. If this works, continue to add code one block at a time, and always include the M00 before the end of the program so that you can check that the correct values are appearing in corresponding variable in the Macro variable register. Regards, Bill |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem- Custom Macro A alarm 76 | Lene Madsen | Fanuc | 6 | 12-06-2010 05:07 AM |
| "difference between Custom Macro A and Custom Macro B" | arulthambi | Parametric Programing | 4 | 10-05-2009 03:34 PM |
| Custom macro!!!! | chrisryn | G-Code Programing | 4 | 05-27-2008 10:13 PM |
| Custom Macro B On A 18t. | JIMMYZ | Fanuc | 3 | 10-18-2006 10:08 PM |
| custom macro | The Metal | Daewoo/Doosan | 2 | 09-28-2006 07:26 AM |