What's new
What's new

fanuc programing

robmund

Plastic
Joined
Aug 23, 2011
Location
TX USA
hello - I have been running my programs out of preference in short 1 tool programs. It just works out better for me due to alot of rerunning. Ive been running a older version of fanuc. So im not loading 20 differ programs for each part i would put m30 at end of each tool and it would lay programs out in sequence for each m30 when i download 1 program. Now i am running into a newer version of fanuc which is a world different but alot of fun to use. I was looking for a way to achieve same results - right now it just lays it out all in one program with all the m30's. I know i can cut and paste but was just looking for a time saver like old fanuc. I thought about trying to put % after m30 but wont let me do at machine gives me format error - funny to give me key on keyboard i cant use - but again not even sure this would work - any ideas? Thanks
 
hello - I have been running my programs out of preference in short 1 tool programs. It just works out better for me due to alot of rerunning. Ive been running a older version of fanuc. So im not loading 20 differ programs for each part i would put m30 at end of each tool and it would lay programs out in sequence for each m30 when i download 1 program. Now i am running into a newer version of fanuc which is a world different but alot of fun to use. I was looking for a way to achieve same results - right now it just lays it out all in one program with all the m30's. I know i can cut and paste but was just looking for a time saver like old fanuc. I thought about trying to put % after m30 but wont let me do at machine gives me format error - funny to give me key on keyboard i cant use - but again not even sure this would work - any ideas? Thanks

The Fanuc control identifies a new program by the presence of the character "O" (not Zero). Accordingly, if I understand you correctly, in that you want to Upload one program and have it separated into many by the control, use the following format.

O0001
Program data
............
............
etc
M30
O0002
Program data
............
............
etc
M30
O0003
Program data
............
............
etc
M30

and so on.

Regards,

Bill
 
i tried this with no luck - i got format error when loading loaded 1st tool but once saw next proram # stopped and got error - any other ideas?
 
i tried this with no luck - i got format error when loading loaded 1st tool but once saw next proram # stopped and got error - any other ideas?
You don't state the model of the control, and the key strokes to transfer programs from the Control to an external device varies between models. However, if you know the key sequence to be able to do this with your control, the following will work for all. Normally you will specify a program number at the control to transfer. If you give the program number as -9999 (O-9999), then the whole program memory will be transferred (except for protected program - parameter dependent). Accordingly, if you have more than one program in memory, transfer the whole memory and observe the format of the file received at the external device. You should find that all the programs will be received as one file at the external device (probably a PC). However, some Editor/Comms software will separate the files based on an incoming, preset character (normally "O" not Zero). Therefore you need to make sure the receiving software is not set in this manner. This one file that contains many files that was sent from the Control, can be sent right back (you may have to delete the existing memory - again, parameter dependent). I'm not suggesting that you do send this file straight back, but if you copy the format of the concatenate files received, then you should be able to transfer many files to the control in the format of one and have the control separate them.

Post here a short example of the file that you're attempting to send to the control.

Regards,

Bill
 
The Name of the file as well as the first line of text in the file should match, they shold start with the capital letter O with 4 or 5 numerical didgets
I.E.
File Name:O0000.NC
First lines of text in file:%O0000
N10 G(code)

Hope this helps
-josh
 
hi robmund,
Use a main prog O0001 (any no.s you want for main and subs)
just to call prog's for each op and put a M99 on the end of each prog.

M98P0002

M98P0003

M98P0004 etc.ect you can go to any part of the main prog to call any ops

hope this helps
 
Last edited:
hi robmund,
Use a main prog O0001 (any no.s you want for main and subs)
just to call prog's for each op and put a M99 on the end of each prog.

G98P0002

G98P0003

G98P0004 etc.ect you can go to any part of the main prog to call any ops

hope this helps

Uuuhhh. Shouldn't those G98s be M98s? M98 calls a sub. M99 cancels a sub. G98 calls for a canned cycle to start at the last Z position before the canned cycle. G99 calls for the canned cycle to start at the R position in the canned cycle. Probably a typo, but it would make for a lot of confusion if the OP weren't aware ofthe difference.
 
The Name of the file as well as the first line of text in the file should match, they shold start with the capital letter O with 4 or 5 numerical didgets
I.E.
File Name:O0000.NC
First lines of text in file:%O0000
N10 G(code)

Hope this helps
-josh

Hi Josh,
The File Name is irrelevant where program transfer is concerned, and saved on disk, its far more practical to have a file name that relates to the job name and the operation. For example "Ford Main Shaft-1st Op.NC" is a lot more meaningful when searching for a file than O0000.NC.

Regards,

Bill
 
You don't state the model of the control, and the key strokes to transfer programs from the Control to an external device varies between models. However, if you know the key sequence to be able to do this with your control, the following will work for all. Normally you will specify a program number at the control to transfer. If you give the program number as -9999 (O-9999), then the whole program memory will be transferred (except for protected program - parameter dependent). Accordingly, if you have more than one program in memory, transfer the whole memory and observe the format of the file received at the external device. You should find that all the programs will be received as one file at the external device (probably a PC). However, some Editor/Comms software will separate the files based on an incoming, preset character (normally "O" not Zero). Therefore you need to make sure the receiving software is not set in this manner. This one file that contains many files that was sent from the Control, can be sent right back (you may have to delete the existing memory - again, parameter dependent). I'm not suggesting that you do send this file straight back, but if you copy the format of the concatenate files received, then you should be able to transfer many files to the control in the format of one and have the control separate them.

Post here a short example of the file that you're attempting to send to the control.

Regards,

Bill

hello and thanks for everyones reply - i have been working with this idea and having no luck - 1st off im running 31I fanuc - I tried as mentioned above - I got everything to save with no problems but when i went to send back only sent 1st program - i have brought home small example from o-9999 program i saved

( FINISH BACK FACE )
(CNMG 431 LONG BAR)
( .015 RAD INSERT )

N757G43D22
N758G95G58G0X24.Y0B0
N759M112
N760G92S350
N761G96S270M03
N762U3.5Z2
N763M08
N764U3.6632Z.1
N765Z-9.5523
N766G01U3.8046Z-9.623F.0045
N767U5.136
N768G02U5.516Z-9.5258I0.K.2344
N769G01U5.316
( FINISH 3.88 ID )
N770G00U3.9554
N771Z-9.523
N772G01Z-9.623
N773G02U3.9262Z-9.629I0.K-.0206
N774G01U3.8921Z-9.6461
N775G02U3.88Z-9.6607I.0146K-.0146
N776G01Z-10.932F.008
N777U3.68
N778G00Z.1
N779M9
N780G0Z10.M5
N781M30
O5559

( FINISH SEAL BORES )
( .015 RAD INSERT )

N503T15M61

(1ST BORE)

N504G43D35
N505G95G58G0X-24.0008Y.0064B0
N506M112
N507G92S350
N508G96S300M03
N509U6.5Z2
N510Z.1

N512Z-7.1063
N513U6.7336
N514G01U6.875Z-7.177F.006
N515Z-7.3286
N516G03U6.1562Z-7.688I-.3594K0.
N517G01U6.0913
N518G02U5.97Z-7.7486I0.K-.0606
N519G01Z-8.0096
N520G03U5.9012Z-8.044I-.0344K0.
N521G01U5.7284
N522G02U5.6852Z-8.053I0.K-.0306
N523G01U5.6227Z-8.0842
N524G02U5.6048Z-8.1058I.0217K-.0216
N525G01Z-9.3886
N526G03U5.4674Z-9.5544I-.2344K0.
N527G01U5.2675
N528G00Z.1
N529M05
N530M9
N531G0Z10.
N532M113
N533X-42.
N534M30


( FINISH SEAL BORES )
( .015 RAD INSERT )

N503T15M61

(1ST BORE)

N504G43D35
N505G95G58G0X11.998Y-.0007B0
N506M112
N507G92S350
N508G96S300M03
N509U6.5Z2
N510Z.1

N512Z-7.1063
N513U6.7336
N514G01U6.875Z-7.177F.006
N515Z-7.3286
N516G03U6.1562Z-7.688I-.3594K0.
N517G01U6.0913
N518G02U5.97Z-7.7486I0.K-.0606
N519G01Z-7.89
U5.9


N528G00Z.1
N529M05
N530M9
N531G0Z10.
N532M113
N533X-35.
N534M30
%


I see something else i will try again tomorrow but will post this for now and check back in - thanks for interest
 








 
Back
Top