Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

NANO

Verified Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

NANO's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Keith.... Your a genius I am slowly but surely starting to understand this Dark World of Boolean and conditional statements I managed to sort out a similar issue I had with the B axis output. The conditional statement in pindex #if (prv_indx_out <> fmtrnd(indx_out)) | (prv_cabs <> fmtrnd(cabs)), and based on this would either output the indx_out value. I want an output at every operation even if they are equal, so by turning off the statement with # it now outputs the indx_out variable every time pindex is read. Thanks
  2. Hi All I have a Mazak FH8800 and I have been modifying the generic Fanuc 3/4 axis post to suit. I have most of it working properly now. However when it comes to the pre stage tool I have a slight problem My Mastercam test piece is a cube that has a simple contour machining on each face to capture the B axis output and also a drilling operation. The contour machining uses T51 and there are four operation where I have ticked the force tool change in the operation parameters for each operation and this generates a tool change code so I can restart on any face. The problem is that it is prestaging the Drill which is T2 directly after the first operation which makes the tool magazine index pocket 2, to the pre select tool change arm. When the second contour operation starts and the forced tool change code is read it reads the T51 and index the magazine to T51 and then back to T2.... This occurs at every operation Here is what the Nc code looks like O12345678(POST SETUP) ( DATE=DD-MM-YY - 28-07-11 TIME=HH:MM - 08:35) ( T51 | 54MM SANDVIK LONG EDGE ENDMILL ) ( T2 | DIA 20.01MM GUHRING HT DRILL ) ( T3 | 20MM MITSUBISHI ENDMILL ) G21 G0 G17 G40 G49 G80 G90 ( 54MM SANDVIK LONG EDGE ENDMILL ) T51 M6 T2 B000 G0 G90 G54 X185. Y54. S800 M3 This is what I would think and Like it to look like untill the final contour oepration and only then preselet T2 O12345678(POST SETUP) ( DATE=DD-MM-YY - 28-07-11 TIME=HH:MM - 08:35) ( T51 | 54MM SANDVIK LONG EDGE ENDMILL ) ( T2 | DIA 20.01MM GUHRING HT DRILL ) ( T3 | 20MM MITSUBISHI ENDMILL ) G21 G0 G17 G40 G49 G80 G90 ( 54MM SANDVIK LONG EDGE ENDMILL ) T51 M6 T51 B000 G0 G90 G54 X185. Y54. S800 M3 Is there a way to instruct the post to realize that due to the four contour operations that the actual next tool is the curernt tool until the last contour operation and only then preselect T2 Hope I have made the problem clear. It does cause alot of unecessary magazine movement.
  3. Hi All I have a Mazak FH8800 and I have been modifying the generic Fanuc 3/4 axis post to suit. I have most of it working properly now. However when it comes to the pre stage tool I have a slight problem My Mastercam test piece is a cube that has a simple contour machining on each face to capture the B axis output and also a drilling operation. The contour machining uses T51 and there are four operation where I have ticked the force tool change in the operation parameters for each operation and this generates a tool change code so I can restart on any face. The problem is that it is prestaging the Drill which is T2 directly after the first operation which makes the tool magazine index pocket 2, to the pre select tool change arm. When the second contour operation starts and the forced tool change code is read it reads the T51 and index the magazine to T51 and then back to T2.... This occurs at every operation Here is what the Nc code looks like O12345678(POST SETUP) ( DATE=DD-MM-YY - 28-07-11 TIME=HH:MM - 08:35) ( T51 | 54MM SANDVIK LONG EDGE ENDMILL ) ( T2 | DIA 20.01MM GUHRING HT DRILL ) ( T3 | 20MM MITSUBISHI ENDMILL ) G21 G0 G17 G40 G49 G80 G90 ( 54MM SANDVIK LONG EDGE ENDMILL ) T51 M6 T2 B000 G0 G90 G54 X185. Y54. S800 M3 This is what I would think and Like it to look like untill the final contour oepration and only then preselet T2 O12345678(POST SETUP) ( DATE=DD-MM-YY - 28-07-11 TIME=HH:MM - 08:35) ( T51 | 54MM SANDVIK LONG EDGE ENDMILL ) ( T2 | DIA 20.01MM GUHRING HT DRILL ) ( T3 | 20MM MITSUBISHI ENDMILL ) G21 G0 G17 G40 G49 G80 G90 ( 54MM SANDVIK LONG EDGE ENDMILL ) T51 M6 T51 B000 G0 G90 G54 X185. Y54. S800 M3 Is there a way to instruct the post to realize that due to the four contour operations that the actual next tool is the curernt tool until the last contour operation and only then preselect T2 Hope I have made the problem clear. It does cause alot of unecessary magazine movement.
  4. Cheers CJep Worked like a charm. I did try setting the program number in the machine group properties, files, tool settings tab but after I had already created toolpaths which was not working.... Now I know why.... No problem at all really only my lack of knowledge. Thanks again I might need some more assistance as I havent finished all my post modifications... I'll be in touch.
  5. Hey Keith Yeah, thanks for you reply I tried that and I understand what you suggested. Anything in "" gets output in the NC code, and that would have worked if all the program numbers where only 4 digits and not 8. If I save a program with the number 12345678 it will appear as O000012345678. I need a way to find the variable or parameter from the NCI file which stores what I input at the save NC file prompt I tried something I found in the Post Parameter reference guide I got from my reseller but it does not seem to work. Extracting a numeric variable using rpar function with a variable i defined as my_prog_num :0 This is the code pparameter$ # Predefined parameter postblock if prmcode$ = 10042, my_prog_num = rpar (sparameter$, 1) I then tried to force that variable in the code with *my_prog_num .... no joy Let me know if you have any other ways to skin a post :)
  6. Hi all I have been modifying the "Generic Fanuc 4X post" that I received with X5 to suit a Mazak FH8800 with a Fusion Control Things I have managed to do Seperate the M6 and T number Prestage tools Remove "G43 H00" output ( as the tools have tool lengths stored on the machine Mazak Style ) Reformat the index axis to output for 0.001 Deg increments Use X style coolants and rename to suit Now here is where I need some help. When I am prompted for a file name after pressing the post button in mastercam, I input a four digit number say 1000 and this saves the program as 1000.eia The file save name can be 8 digits long However inside the program the start or header of the program looks like this O0000(1000) ( DATE=DD-MM-YY - 25-07-11 TIME=HH:MM - 18:35) ( MAZAK FH8800 ) ( T51 | 54MM SANDVIK LONG EDGE ENDMILL | H51 ) I want my save file name to be the program name and also to have 4 leading zeros. I understand how to make new fs statements So the 1000 in brackets is sprogname$, how do I associate or relate this to the forced *progno$ I would also like to be able to input a desciptive name rather inside the bracket, so for the programe name to be Left Rotor Plate as this appears in the Mazak program file on the machine. Example of the code above like I need it O00001000 (Left Rotor Plate) ( DATE=DD-MM-YY - 25-07-11 TIME=HH:MM - 18:35) ( MAZAK FH8800 ) ( T51 | 54MM SANDVIK LONG EDGE ENDMILL | H51 ) Look forward to hearing from someone Thanks

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...