That is a strange Problem?
Typicly G-code is a Adress and a Numeric code, so a M code given as 0 is the same as 00. Same as G01 or G1 a leading zero dose not change the value.
Did you check if it indeed is a number zero or perhaps a letter O.
Hi All...
I operate the following program in Single Auto Mode -
G90
M0
#101=#5021
M0
#103=#5021
M0
M30
As u can see I command M0 instead of M00 (Which is for Program Stop ). If I command M00 the macro program does not stop even in single block.
( I understand that we command M00 for a Program Stop, but in macro program it does not behave as it should behave.
I was curious to know the reason behind it)
Is that so that M0 command specially works for Macro programs ? or it is a parameter setting ?
Thanks
Ash
That is a strange Problem?
Typicly G-code is a Adress and a Numeric code, so a M code given as 0 is the same as 00. Same as G01 or G1 a leading zero dose not change the value.
Did you check if it indeed is a number zero or perhaps a letter O.
So M00 will stop the program but M0 will not stop the program? I have never seen that before.
As to the single block what program number is this code running in? There are parameters that will not allow single block in a 8000 or 9000 macro program. I ass u me you are refering to the Oi series which I don't have any manuals with me at the moment but you should be able to find the setting for this probably under the section of CRT/MDI and EDIT.
Stevo
M00 or M0 are the same thing. They are also one of the few m codes written by fanuc.
As your writing macro statements on a probably older control try this:
G90;
;
M0;
;
#101=#5021;
;
M0;
#103=#5021;
;
M0
M30
The older CPU's try to calc at lightening speed, but quite frankly aren't always capable, therefore they can miss information. I have had similar problems to what you are experiencing before, having worked for GE Fanuc for several years.. Another way around this is to put a G04 on it's own, this slows it down too.
Worth a try, if not maybe you will need to dive into the PMC.
Fanuc-support.com
There's probably a ''stop read ahead'' M Code for that control.
I had to use this once whan reading the machine position. It gets cleared on M30/M99 OR RE-SET
Hi
Can u Confirm by actually commanding on Machine. I executed it on Fanuc 6M and Mitsu 60 control.
I repeat -
( I execute command In Single bLOCK Mode )
G90
M0.............( If i command M00, it doesn't stop )
#101=#5021
M0 ( Same as above )
#103=#5021
M0 ( Same as above )
M30
ONLY WHEN M0 IS COMMANDED, THEN ONLY THE PROGRAM STOPS. IF M00 IS COMMANDED, IT DOESN'T STOP.
If it works with M0, why would you want to use M00? With the Fanuc 6M you will save a lot of data entry by using no leading "0" digit.
M3
M5
M1
M8
M9
X.1Y.1Z.1
G0
G1
G2
G3
R.1
If you are entering by hand it saves time. If your using a CAM system reset your format.
Here is a thread doing something similar...
http://www.cnczone.com/forums/archiv...hp/t-4638.html
What happens if you execute it in full AUTO mode? Does it stop at both M0 and M00?
No, it stops at M0 only.
When M00 is commanded it doesn't stop.
As it is a Macro program, It matters to investigate what exactly is the issue.
Its not about saving space (by commanding less characters), but what is exactly the root cause & why it doesn't stops in a macro program ?
( -----Its there any logic designed behind it------ )
As we have been taught that M00 is for program stop, then why doesn't it responds for Macro program ?
Thanks,
Ash
When I get time, I will try on my machine. At present, I cannot believe that M0 and M00 behave differently.
I'll try this one more time. You stated that you are using a Fanuc 6M. That control was created back in the early '80s. You are using Fanuc Macro B. System memory was at a premium. The early controls only had 64kb of memory. So using a "0" as a place holder was poor use of the available address space. The Macro B code probably was never written to handle the place holder.
Maybe they needed to teach adaptability. Give the machine what it wants.