![]() | |
| 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 had a problem with a machine (21i-MB control)that was doing a tool change to the waiting tool in the magazine even if the tool that was called was already in the spindle. (It would machine with wrong tool) So I changed the PLC but my M6 Macro program is stopping at line N100M31, if anyone can help me out that would be great. Here is the tool change macro prgm. O9003;#100=#4003;IF[#1008eq1]GOTO100;G80G91G28Z0.;IF[#1008EQ1]GOTO100;G4X0.5;M6T#20;N100M31;G#100;G49;M99; |
|
#2
| |||
| |||
| To gain a better understanding of your problem, what does your machine program look like? I mean, if you command M6 by itself, it will do a tool change regardless. If you command M6Txx, it will do a tool change. If you command TxxM6, it will only do a tool change if the tool is not in the spindle. At least that is the way all the 21 series controls I have seen work. As for your question, without seeing what changes you made to your PLC, I would assume you have removed/modified the confirmation/completion signal for M31. regards, Oz Last edited by Ozemale6t9; 03-29-2007 at 03:47 PM. Reason: had M6Txx and TxxM6 reversed |
|
#4
| |||
| |||
Hmmm , curious....
__________________ It's just a part..... cutter still goes round and round.... |
|
#5
| |||
| |||
| I have seen machines where it does make a difference. It depends on how well the macro is writtten. On the ones where it does change tools even if the tool is already in the spindle, it is as if there is an eob after the M6 (M6Txx). I assume what happens is the control reads the M6 and processes this before reading the tool number from the line, rather than processing the whole line. So essentially, it toolchanges then preselects the tool. Some machines actually give you a message that you have to command it a particular way. Not sure about 18i-M, but I guess it would depend on the macro too. regards, Oz |
| Sponsored Links |
|
#6
| |||
| |||
It doesn't make a differnce if the M6 is before or after the Txx command (to clearify I never did a M6 command by itself). The new PLC seems to have solved the problem of the program doing a tool change even if T=SP. I forgot to mention in my original message that this would only happen if I was running in Remote DNC-CD off of a flash card. As I said earlier it will stop on the N100M31 line, which you responded that the confirmation of completion for the M31 could be missing. The machine builder sent me the PLC directly so I posed that response to him. So now I just have to wait and see what he says. |
![]() |
| 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 |
| Macro Er. | Bluesman | Fanuc | 3 | 04-05-2007 05:11 AM |
| M6 macro | ben_heinman | General CNC (Mill and Lathe) Control Software (NC) | 2 | 03-30-2007 12:37 PM |
| Macro B | jorgehrr | G-Code Programing | 2 | 01-31-2007 02:23 PM |
| what is a macro? | ljoe1969 | Autodesk Software (Autocad, Inventor etc) | 3 | 07-12-2006 08:12 AM |
| G83 Macro | hatchmar | G-Code Programing | 14 | 01-20-2006 11:59 AM |