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:

Post question


gcode
 Share

Recommended Posts

I'm using the MPLFAN post

When gear output code is enabled

(M40, 41, and 42)

the post puts the M41 and M03 on the same line.

The machine I'm programming won't accept 2 M codes on the same line.

How do you modify the post to output them on seperate lines.

I assume it has something to do with the variable

"prpm", but when I try to break it into 2 lines

I get a boolean error.

Link to comment
Share on other sites

Depending on the era of your post the line would be in pgear postblock or ptlchg or ltlchg. Look for spdlon or something close as a string select near top of post (You will see the M3 there). Search further down in the post for spdlon and you will see where it comes out.

 

Can you post the prpm postblock?

 

Allan

Link to comment
Share on other sites

I'm using the latest Fanuc lathe post.

Here's the prpm blocks.

When I try to put spindle_l and pgear

on seperate lines I get a boolean error

 

prpm #Output for start spindle

speed = speedrpm

if posttype = two, pbld, n, *sg97, *speed, *spindle_l, pgear, e

 

else, pbld, n, *sg97, *speed, *spindle_m, e

 

This is what prpm posts if css is active

G97S2728M03M42

 

[ 02-02-2002, 01:31 AM: Message edited by: gcode ]

Link to comment
Share on other sites

bryan,

I tried a variation of your suggestion and it worked perfectly smile.gif

 

This:

prpm #Output for start spindle

speed = speedrpm

if posttype = two, pbld, n, *sg97, *speed, pgear, e

if posttype = two, pbld, n, *spindle_l, e

else, pbld, n, *sg97, *speed, *spindle_m, e

 

Output this:

G97 S2523 M42

M03.

 

Its so simple when you know what you are doing.

Thanks very much, I'm embarrassed to say how long I fought with that eek.gif

Link to comment
Share on other sites

The Boolean error is caused by a syntax problem you need to format the statement as follows to avoid the problem and not have two "if" statements:

 

if posttype = two,

[

pbld, n, *sg97, *speed, *spindle_l, e

pbld, n, pgear, e

]

else, pbld, n, *sg97, *speed, *spindle_m, e

 

The brackets allow you to have multiple line of output, code, ect. in one "if" statement.

Link to comment
Share on other sites

Please allow me to throw my 2 cents worth in here..! Whilst we are talking about "post" problems I have a question for you all. Using V8 If I am boring a hole on a lathe and the internal profile has reached the end, the post that I am using sends the tool to "G28 U0. W0." (no problem with that... it's just the timing that is the issue) as you may be able to visualize there is a Z+ move missing here to send the tool out of the part stock BEFORE the rapid move home. Does anybody have a clue what I need to add (and where) into the post to get a Z+ move....? As you can see below this could be a major crunch in the making...! eek.gif

 

Here is the last few lines of code from a finish boring cycle:

 

G1 X.656

X.616 Z-1.0425

G0 X.5265

M9

G28 U0. W0.

T0800

M30

%

Link to comment
Share on other sites
confused.gif OK so I know I have version 8.1 ( says so on the disk...! )... I download the 2 pathes that I need ( Mill & Lathe ) but when I double click them it gets 40% into the update and stops telling me that I have "Invalid Patch File C:mcam8m81-811rel.exe". What the heck is that about...? I have not used any accelerators to download the patch, they came in clean... so has anybody any ideas...???? mad.gif
Link to comment
Share on other sites
mad.gif I have had to repair my MasterCAM installation as it became corrupted whilst messing around with the update patches..! confused.gif Jezz this is turning into a real pain....! I pressed alt-v and it tells me MASTERCAM version 8 (1.26.2001). The disc that I have is the 8.1 version. Am I using the right update patch..? Is there more than 1...? Your continued help is appreciated..!!!
Link to comment
Share on other sites

Make sure you save the patch in the same directory

as Mastercam. Normaly this will C:/Mcam8 or Mcam81

 

Pay close attention to any error messages you get while running the patch. If you don't have Wire installed you'll get an error saying

"Wire.exe not found!" Just click OK and the patch will proceed.

Link to comment
Share on other sites
biggrin.gif OK I finally got the patches in... did a reinstall and redownloaded them into the mcam8 dir. It now says 8.1.1 when MasterCAM is running.. Thanks to all who helped..! However my problem with the boring cycle still exists. I have one further question for Glen Bouman, I could not find "Write home position clearance moves" in the Lathe job setup. What am I missing here Glen...? Also I have tried using the ref. points in the job setup ( I set the Z retract to 1.0 ) but it made no difference to the posted program. I was hoping that there would be a line I could input in my post processor to make ( force..? ) it to go to Z1. after a boring cycle. Thankx in advance. rolleyes.gif
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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...