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 Help


JAMES GABEL
 Share

Recommended Posts

I have a new machine and need to adjust my post. I have been trying it myself but this problem is beyond me. I have a two pallet machine and I need an M code in my code to make sure the right program runs on the right table. I would like to be able to input a number in the misc. value's to tell the post what M code to put in. My post is setup to post a main program and subprograms all in one file.

 

 

I have one more problem here.

 

In my post I can enter a number of how many offsets I want to run. My post will only post max of six, I want it to be able to post as many as I want.

 

I would appreciate any help.

Link to comment
Share on other sites

What does this say:

 

code:

[post_VERSION] #DO NOT MOVE OR ALTER THIS LINE# V11.00 E1 P0 T1161869177 M11.00 I0 

# Post Name : MPMASTER

# Product : MILL

# Machine Name : MACHINE

# Control Name : CONTROL

# Description : IHS MASTER GENERIC MILL G-CODE POST

# 4-axis/Axis subs. : YES

# 5-axis : NO

# Subprograms : YES

# Executable : MP v11.0

# Post Revision : 11.0.06321 (MC_FULL.MC_MINOR.YYDDD)

#

# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO

# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.

#

# --------------------------------------------------------------------------

# Revision log:

# --------------------------------------------------------------------------

# Programmers Note:

# IHS 01/30/02 - Mpmaster based on CNC Software's V8/V9 Mpfan, dat

# IHS 01/30/02 - Initial post update for V9, dat

# IHS 04/01/02 - Comments repeated in translational subs, dat

# IHS 05/01/02 - lock_codes logic tweak, dat

# IHS 05/07/02 - arccheck set to 3, dat

# IHS 05/17/02 - Removed null comment from subs, dat

# IHS 05/24/02 - Rotary subprograms mod, dat

# IHS 07/17/02 - Incremental drilling calculation mod, dat

# IHS 07/25/02 - Switch added to control rotary index move retracts, dat

# IHS 10/07/02 - force_dpts switch added, dat

# IHS 10/28/02 - Additional rotary sub logic mod, dat

# IHS 11/06/02 - Switch added for 4/3 decimal place tapping feeds, dat

# IHS 03/10/03 - Synched with updates to Mpfan from V9.1, dat

# IHS 04/30/03 - arccheck set to 1, dat

# IHS 05/08/03 - A2100-style G18/G19 helical move corrections, dat

# IHS 06/27/03 - Initial post update for V9.1 SP1, dat

# IHS 10/23/03 - Roughed out auto-launch of HTML.set, dat

# IHS 12/12/03 - Comp on arc move warning added, dat

# IHS 04/23/04 - non-retract index mod, dat

# IHS 09/03/04 - Helical move detect logic mod, dat

# IHS 10/08/04 - Logic for M00 between tranformed ops, dat

# IHS 12/07/04 - Support for rotated rotary sub toolpaths, dat

# IHS 12/28/04 - Haas peck IJK support option added, wbt

# IHS 04/12/05 - mtol set at 5 dec inch, 4 dec mm, dat

# IHS 06/29/05 - mtol set at 6 dec inch, 5 dec mm, dat

# IHS 08/05/05 - Updated for X, dat

# IHS 09/27/05 - G98/G99 decision based on state of parameters, dat

# IHS 11/11/05 - Work-arounds for missing G1s after arc commands, dat

# IHS 11/28/05 - Better handling of File Descriptor, dat

# IHS 12/02/05 - Earlier arc work-arounds removed for SP1 Update 3, dat

# IHS 02/15/06 - Complete overhaul for X Machine Def / Control Def, dat, wbt, cam

# IHS 10/26/06 - Updated for X2, cam, wbt, dat

# IHS 11/15/06 - Support for drilling clearance height after references move, cam, dat

# IHS 11/17/06 - min_speed/max_speed parameters removed, dat

# XXX MM/DD/06 - Written for Company X from Mpmaster, xxx

Link to comment
Share on other sites

Hi James,

 

If you want to use the condition of a misc. integer, the pre-defined variables are mi1$ - mi10$.

 

So you could insert something like this:

 

code:

   if mi6$ = 1, [pbld, n$, "M81", "(P1 CHECK)", e$]

if mi6$ = 2, [pbld, n$, "M82", "(P2 CHECK)", e$]

This would check the value of Misc. Integer number 6 and if it was set to 1 it would output a new line of NC code with the pallet M code and comment.

 

You would probably want that in the psof$ and the ptlchng$ post blocks.

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