![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I'm on a 18i-M here. I added lots of subs/macros I had from another control. They are assigned to G/M codes (through parameters 6000+). The problem is some work, some don't. It seems that those not working are those assigned to M/G codes that execute special functions provided by the machine builder, such as: tool change, pallet change, door open/close, etc. What happens in these cases is that the M/G codes dont' call my macros, the just ignore them perform their original function. For instance I have M13 (spindle start+coolant start) and M6 (tool change) mapped to subs (O9001 and O9002). The parameters to achieve this are undoubtly set correctly. M13 does call my sub, M6 does the normal tool change ignoring my sub. I can only speculate this is related to the way the machine builder programmed their M functions in the PLC, somehow interfering with the CNC's custom macro detection routine. Or maybe some option needs to be enabled. Any input would be appreciated. Thanks. |
|
#2
| ||||
| ||||
| So no system folder macros were originally in the memory before the ones you added - and no code appears on-screen during the said functions? If that is the case your hunch is probably correct. What are the built-in routines lacking that you need to add? One option would be to assign a new number to your macro with the original M-code called within it. If that approach fails, I recall that there is a parameter for calling a g-code macro within a g-code macro, maybe there is something similar for M-codes? DP |
|
#3
| ||||
| ||||
| Thank you for your response.
|
|
#4
| ||||
| ||||
| I must confess my experience using custom macro variables is limited to one machine, and the control it uses is 31i - I have, however, done quite a bit of delving myself to add further functionality and automate things like pallet change (I set it up to determine the current pallet positions and automatically load Pallet 1 for work offsets 1-24, and Pallet 2 for 25-47). I found that things like spindle head tool and pallet proximity switch status were stored in exec macros #1000 - #1035. So, assuming your control does something similar maybe you could get around the issue - say I wanted to call the offsets for the spindle tool automatically, and I couldn't use M6, I might put a G43 H#1035 D#1035 into an M3 linked macro. DP |
![]() |
| 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 |
| Custom Macro Containing G65 | LostInMacro | Fanuc | 21 | 09-15-2010 03:21 PM |
| Custom Macro B | rlgx4 | Parametric Programing | 7 | 08-02-2010 04:05 PM |
| "difference between Custom Macro A and Custom Macro B" | arulthambi | Parametric Programing | 4 | 10-05-2009 03:34 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 |