Intro To The MP Post Guide
Intro To The MP Post Guide
Intro To The MP Post Guide
MP Post Processor
Reference Guide
V olume 1
Basic MP Post Processing
Limited Warranties
CNC WARRANTS THAT THE MEDIA ON WHICH THE PROGRAM IS DISTRIBUTED WILL BE FREE OF DEFECTS IN MATERIAL OR WORKMANSHIP FOR A
PERIOD OF THIRTY (30) DAYS AFTER PURCHASE. THE FOREGOING LIMITED WARRANTY EXCLUDES DEFECTS ARISING OUT OF ACCIDENT, NEGLECT,
MISUSE, FAILURE OF ELECTRIC POWER AND CAUSES OTHER THAN ORDINARY AND AUTHORIZED USE. EXCEPT FOR THE FOREGOING LIMITED
WARRANTY, THE SOFTWARE IS PROVIDED AS IS. YOUR SOLE REMEDY AND CNCS SOLE OBLIGATION HEREUNDER SHALL BE, AT CNCS SOLE
OPTION, REPLACEMENT OF THE DEFECTIVE MEDIA OR REFUND OF THE PURCHASE PRICE OF THE SOFTWARE. ANY USE BY YOU OF THE SOFTWARE IS
AT YOUR OWN RISK. THIS LIMITED WARRANTY IS THE ONLY WARRANTY PROVIDED BY CNC REGARDING THE SOFTWARE. TO THE MAXIMUM EXTENT
PERMITTED BY LAW, CNC DISCLAIMS ALL OTHER WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CNC IS NOT OBLIGATED TO PROVIDE ANY UPDATES TO
THE SOFTWARE. SHOULD THE SOFTWARE PROVE DEFECTIVE FOLLOWING ITS PURCHASE, YOU (AND NOT CNC, ITS DISTRIBUTOR, OR RETAILER)
ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION AND ANY INCIDENTAL OR CONSEQUENTIAL DAMAGES.
Limitation of Liability
IN NO EVENT WILL CNC, OR ITS EMPLOYEES, SHAREHOLDERS OR SUPPLIERS BE LIABLE TO YOU FOR ANY INDIRECT, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION, SPECIAL, PUNITIVE, OR EXEMPLARY DAMAGES FOR LOSS OF BUSINESS, LOSS OF
PROFITS, BUSINESS INTERRUPTION, OR LOSS OF BUSINESS INFORMATION) ARISING OUT OF OR IN CONNECTION WITH THIS SOFTWARE LICENSE
AGREEMENT OR THE SUBJECT MATTER HEREOF EVEN IF CNC HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. CNCS ENTIRE LIABILITY
WITH RESPECT TO ITS OBLIGATIONS UNDER THIS SOFTWARE LICENSE AGREEMENT OR OTHERWISE SHALL NOT EXCEED THE AMOUNT OF THE
LICENSE FEE PAID BY YOU FOR THE SOFTWARE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF IMPLIED WARRANTIES OR
LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATIONS OR EXCLUSIONS MAY NOT APPLY TO YOU.
Indemnification
You shall indemnify and hold harmless CNC, its officers, directors, employees, suppliers and agents from and against all losses, settlements, claims, actions, suits, proceedings,
judgments, awards, damages, liabilities, costs and expenses including, without limitation, reasonable attorneys fees (collectively Losses) which arise out of or as a result of any
breach of this Software License Agreement by you or your employees, agents, resellers, dealers or sub-dealers and shall reimburse CNC for any and all legal, accounting and
other fees, costs and expenses reasonably incurred by any of them in connection with investigating, mitigating or defending any such Losses.
Educational Pricing
If you received this Software under or in accordance with a CNC Educational Pricing plan, option, schedule or program you shall not use this Software to conduct any computer
aided design, computer aided drafting or computer aided machining activities that intentionally, incidentally, directly or indirectly result in the receipt, derivation or generation of
profit to or by you.
Termination
This Software License Agreement is effective until terminated. You may terminate this Software License Agreement at any time by returning to CNC all copies of the Software
under your control and by returning the Security Mechanism to CNC. CNC may terminate this Software License Agreement if CNC finds in its sole discretion that you have
violated the terms of this Software License Agreement. Upon termination of this Software License Agreement, you agree to immediately return to CNC all copies of the Software
and return the Security Mechanism to CNC, and to certify to CNC in writing that all known copies, including backup copies, have been returned. All provisions relating to
confidentiality, proprietary rights, indemnification and non-disclosure shall survive the termination of this Software License Agreement.
General
This Software License Agreement shall be construed, interpreted and governed by the laws of the state of Connecticut, without regard to conflicts of law provisions. The sole
jurisdiction and venue for any litigation arising from or related to this Software License Agreement or the subject matter hereof shall be in an appropriate state or federal court
located in Hartford, Connecticut, and you hereby submit to the jurisdiction of such courts. This Software License Agreement shall constitute the entire agreement between you
and CNC with respect to the subject matter hereof. Any waiver or modification of this Software License Agreement shall be valid only if it is in writing and signed by both parties
hereto. If any part of this Agreement is found invalid or unenforceable by a court of competent jurisdiction, the remainder of this Agreement shall be interpreted so as to
reasonably effect the intention of the parties.
U.S. Government Restricted Rights
The Software provided hereunder is a commercial item, as that term is defined in 48 C.F.R. 2.101, consisting of commercial computer software and commercial computer
software documentation, as such terms are used in 48 C.F.R. 12.212. Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4, the Software made
available to the United States of America, its agencies and/or instrumentalities, is provided with only those rights set forth in this Agreement. Use, duplication or disclosure of the
Software by the government is subject to the restrictions as set forth in subparagraph (c)(1) and (2) of the Commercial Computer Software-Restricted Rights clause at 48 C.F.R.
52.227-19, as amended, or any successor regulations thereto.
Export Restrictions
You represent and warrant that you will not, without obtaining prior written authorization from CNC and, if required, of the Bureau of Export Administration of the United States
Department of Commerce or other relevant agency of the United States Government, export or reexport, directly or indirectly, the Software from the United States to (i) any
country destination to which export is restricted by the Export Administration Regulations of the United States Department of Commerce; (ii) any country subject to sanctions
administered by the Office of Foreign Assets Control, United States Department of the Treasury; or (iii) such other countries to which export is restricted by any other United
States government agency. You further agree that you are solely responsible for compliance with any import laws and regulations of the country of destination of a permitted
export or reexport, and any other import requirement related to a permitted export or reexport.
Exceptions To Security Mechanism Requirements
CNC software programs MASTERCAM DRAFT and MASTERCAM DEMO do not require the use of Security Mechanisms, and the provisions in this Software License
Agreement relating to Security Mechanisms do not apply to your use of such programs, provided, however, that such provisions shall apply to your use of all other Software
provided hereunder.
Survival
All provisions of this Software License Agreement relating to confidentiality, non-disclosure, CNCs proprietary rights, disclaimers, and limits of liability, or indemnification by
Customer shall survive termination of this License for any reason.
Reservation of Rights
All rights not expressly granted are reserved by CNC.
Trademarks
Mastercam is a registered trademark of CNC.
Windows, Windows 95, Windows 98, and Windows NT are registered trademarks of Microsoft Corporation. Mastercam Verify is created in conjunction with LightWork Design Ltd.
Volume 1
Table of Contents
1 How to Use the MP Post Processor Reference Guide.................................................... 1-1
How to contact CNC Software ....................................................................................... 1-1
Additional resources ...................................................................................................... 1-2
2 Introduction to MP Post Processors................................................................................ 2-1
What is an MP post? ...................................................................................................... 2-1
How does an MP post work? ......................................................................................... 2-2
Post processing in greater detail.............................................................................. 2-2
Reading the NCI file................................................................................................. 2-3
Postblocks................................................................................................................ 2-3
What files do I need for the posting process? ................................................................ 2-5
The post customization file (*.PST).......................................................................... 2-5
The post text file (*.TXT) .......................................................................................... 2-5
The post executable file (*.DLL)............................................................................... 2-5
What are the components of the MP language?............................................................ 2-6
Variables .................................................................................................................. 2-6
String literals ............................................................................................................ 2-7
Command variables ................................................................................................. 2-7
Postblocks................................................................................................................ 2-7
Postlines .................................................................................................................. 2-8
Conditional branching .............................................................................................. 2-9
Mathematical operators ........................................................................................... 2-9
Formula functions .................................................................................................. 2-10
User prompts ......................................................................................................... 2-10
Post comments ...................................................................................................... 2-10
String select function.............................................................................................. 2-10
Lookup tables......................................................................................................... 2-11
Buffer files .............................................................................................................. 2-11
Support for subprograms and canned cycles ........................................................ 2-11
System numbered questions ................................................................................. 2-12
How is an MP post organized? .................................................................................... 2-12
Definition area........................................................................................................ 2-12
Postblock area ....................................................................................................... 2-13
System numbered question area ........................................................................... 2-13
Sample post: MP_EZ.PST ........................................................................................... 2-14
June 2002
Volume 1
June 2002
Volume 1
Volume 1
June 2002
Volume 1
Volume 1
June 2002
Volume 1
Volume 1
June 2002
Volume 1
June 2002
Address
Phone
(860) 875-5006
Fax
(860) 872-1565
Internet Address
http://www.mastercam.com
Volume 1
Additional resources
!
!
If you have comments, suggests and/or corrections to this MP Post documentation, please email
these to [email protected]
For an ongoing discussion of Mastercam-related topics, visit the Mastercam online forum at
http://www.emastercam.com
June 2002