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:

Need help with machine position?


Rob B
 Share

Recommended Posts

I'm running a part that indexes 8 time before program ends. We are using a manual indexer. I have the program stopping at "M00" for each position. My problem is I want the machine to move to machine "G28 Y0" at each "M00". What can I do to get MC to output this code so I don't have to hand edit program every time I run this job.

Using V9.

Thanks

Rob

Link to comment
Share on other sites

Is the only job that u want it to do this? I'm assuming that it is. If so, try putting your G28 Y0; M00 in a text file and then use manual entry. I'm guessing you'll have an M00 before and after the G28 now, but then again it's quick and dirty.

Link to comment
Share on other sites

John,

I've never used canned text before.

I have put canned text #10 before my toolpath. When I post the operation, I get an "M10" code. Is this correct? canned text #10 is set to do "G28 G91 X0." isn't that what it should post to my program, rather than "M10".

Thanks

Rob

Link to comment
Share on other sites

I'm not having any luck. Here is the section of my post that I have been trying to edit.

 

 

pcant_10 #Canned text - output call

cantext = cant_val10

pcant_out

 

pcant_out #Canned text - build the string for output

#Assign string select type outputs

if cantext = three, bld = one

if cantext = four, bld = zero

if cantext = ten, pbld, n, sg91, "G28", "Y0.," e

#Build the cantext string

if cantext = one, strcantext = strcantext + sm00

if cantext = two, strcantext = strcantext + sm01

if cantext > four,

[

strtextno = no2str(cantext)

strcantext = strcantext + strm + strtextno

]

 

 

The problem is the alarm:

 

Processing file with COMET TEST...Variable not defined: ten

Post line number 2128

Program execution halted due to error(s) in .pst

 

Seems to me that I'm not putting the info in the right place. The post is looking for the info, but not understanding what info. that I've given it.

This post stuff is confussing sometimes!!!!!!!!

Can you tell if it's in the wrong place.

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