Beruflich Dokumente
Kultur Dokumente
Chapter 7 Postblocks
Postblocks
A postblock is a labeled block, or series of lines, of MP language code in the post customization file
(.PST file). The post executable file (the .DLL file) interprets the code in the postblocks to create a list
of instructions that produce the NC output, perform calculations and call other postblocks. These
blocks of MP language code produce the NC output.
For a list of postblock descriptions, see Volume 3, Postblocks.
June 2002
Chapter 7 Postblocks
Volume 1
5. Based on the value of the NCI Gcode, the post executable calls a specific MP language
mechanism called a predefined postblock. For NCI Gcode 2, the post executable calls the
predefined postblock pcir. The predefined postblock that is called based on the NCI Gcode is
an entry postblock because it is the point in the post customization file where the instructions in
the postblock begin executing.
Following the flow of the logic in the postblock, the post executable file interprets each line in
the postblock, which are called postlines. Each postline is interpreted by examining the MP
language statements contained in the line, in order from left to right.
6. Depending on the MP language statement type, a character string is assembled that is the NC
output.
7. When the post executable determines that the NC output line is complete, it writes the line to
the NC output file.
8. The post executable continues processing MP language statements until the final instruction in
the entry postblock is processed.
9. The post executable reads two more lines and repeats the process.
From this description, you can see that the role of the predefined entry postblock is to provide a starting
point for processing the post writers MP language instructions in the post customization file. The
mechanism that controls the postblock entry also gives the post writer control over which instructions
are executed based on the NCI Gcode. The postblock structure allows the post writer to jump to other
postblocks and to nest postblocks.
Postblocks support the MP language features that allow the post writer to:
!
!
!
!
!
Postblock structure
A postblock is a labeled series of postlines containing MP language statements that produce NC output,
branch conditionally, perform calculations, call other postblocks, and trigger routines in the post
executable.
There are two possible postblock structures:
! Traditional postblock
! Bracketed postblock
June 2002
Volume 1
Chapter 7 Postblocks
Traditional postblocks
A traditional postblock has two components:
!
!
Postblock label
One or more postlines
The postblock label declares the traditional postblock. A postblock label usually begins with the letter
p (although l and m can also be used), must be in the first column, and must be on a line by itself
(with the exception of the post comment #).
See Postblock rules summary for a more complete list of rules.
Bracketed postblocks
Another form of postblock is the bracketed postblock, which is a user-defined nested postblock. The
post writer declares a bracketed postblock by using the open and close brackets ([,]) as postline
statements surrounding the postlines to be nested.
Bracketed postblocks are intended to make the post customization file more readable and are always
used within the traditional postblocks.
Bracketed postblocks are implied postblocks, which means they do not have a postblock labels declared
by the post writer.
Note: The post executable assigns labels to implied postblocks, which are used internally when the post
customization file is parsed.
Postlines
Postlines are the remaining components of the postblock. A postblock can be declared without any
postlines but this serves no useful purpose.
June 2002
Chapter 7 Postblocks
Volume 1
pcomment2
# Comment
scomm = ucase (scomm)
if gcode = 1007, (, scomm, )
else, (, scomm, ), e
Postblock declaration
A postblock must be declared before it can be used. Traditional and bracketed postblocks are declared
differently.
Traditional postblocks
A traditional postblock label is used in the following ways:
! to declare the postblock
! to identify the postblock
! in a postline statement to call a postblock
Traditional postblock labels:
! Must always start in the first column
! Must begin with the letter p, l, or m
! May contain letters (a - z), numbers(0 - 9), and the underscore character ( _)
! May be a maximum of 25 characters long
! Must be on a separate line except for a post comment ( # )
Note: Both predefined and user-defined postblocks are declared the same way.
June 2002
Volume 1
Chapter 7 Postblocks
All postlines that are not nested in bracketed postblocks are considered part of the postblock until a
label in the first column is encountered. This label can be another postblock label, a variable label or
post function declaration. Post comments are ignored and do not end the postblock.
Bracketed postblocks
A bracketed postblock is declared not by a label but by the open and close brackets ([,]) as postline
statements surrounding the postlines to be included in the bracketed postblock.
The post executable assigns a label to bracketed postblocks when the post customization file is parsed.
The assigned labels can be seen when the debugging options are enabled. The labels are created by
concatenating the string p__, the number that is the occurrence of the bracket set, the colon : and
the line number in the post customization file that the open bracket was on. For example, the first
bracketed set found with the [ on line 100 would result in the post executable assigning p__0:100.
Bracketed postblocks:
!
!
!
!
!
!
Postblock types
There are many postblock types. Each type serves a purpose in the posting process. Listed here are the
main types and subtypes:
!
User-defined postblocks
# Bracketed postblocks
# Standard user-defined postblocks
Predefined postblocks
# Pre-process postblocks
# Preparatory postblocks
# Pre-output postblocks
# Standard postblocks
# Command postblock
# Post-process postblock
User-defined postblocks
User-defined postblocks are declared by the post writer. User-defined postblocks can be called (or
jumped to) only from another postblock and can never be called as entry postblocks based on the NCI
Gcode or from an internal post executable routine.
June 2002
Chapter 7 Postblocks
Volume 1
Predefined postblocks
Predefined postblocks are an integral part of the MP language. The labels for the predefined postblock
are part of the post executable and are called by specific NCI Gcode, command statements, or post
processing order.
All predefined postblocks attempt an entry into the instruction list that was parsed from the post
customization file. If there is no postblock declaration for the predefined postblock, the attempt to enter
the instruction list fails and control is returned to the post executable.
At the end of this chapter you will find descriptions all predefined postblocks.
Pre-process postblocks
Pre-process postblocks are called before post processor reads the NCI file. These postblocks do not
have access to the NCI file data. The following are preprocess postblocks:
pprep
Allows post instructions after the post is parsed but before the NC and NCI file are opened. Do not
attempt to output to the NC file in this postblock because the NC output file is not yet opened.
pq
Allows post instructions after the NC and NCI file are opened but before reading NCI data.
Preparatory postblocks
Preparatory postblocks have access to limited NCI data and are called optionally before the normal
processing NCI file read loop. Preparatory postblocks are called on the NC tool change Gcodes and
NCI parameter Gcodes.
The following are preparatory postblocks:
ptooltbl
An obsolete routine that should no longer be used. It was used to create a tool table.
pwrtt
Provides tool change data from the NCI and scanned information from the toolpaths themselves.
Note: Both ptooltbl and pwrtt are called when the NCI tool change Gcodes are found by the post
executable in the NCI file.
pwrttparam
Called by the NCI parameter Gcodes; similar to the pparameter predefined postblock routine but is part
of the preparatory NCI file scan.
Note: Calls to these postblocks must be enabled in the post customization file by inserting and setting
the post switch variable tooltable to 1 (on).
ptooltbl and pwrtt are mutually exclusive. If you have used ptooltbl (not recommended) then you
should not have pwrtt in your post customization file and vice versa.
June 2002
Volume 1
Chapter 7 Postblocks
Pre-output postblocks
Pre-output postblocks are called based on the NCI Gcode but before internal calculations are performed
in the post executable. Pre-output postblocks have labels with a 0 or 00 suffix, for example psof00,
ptlchg00, plin0, pcir0, and peof00. If pre-output postblocks are present in the post customization file, the
post executable first calls the preparatory postblock with the with the same name, for example, psof00,
and then the standard postblock psof.
Important Note: Postblocks psof0, ptlchg0, and peof0 are not pre-output postblocks. The 0 suffix with
psof0 and peof0 indicate to the post to call them if the tool number (t) is zero. The 0 suffix with
ptlchg0 indicates that the postblock is called for a null tool change (a tool change information block
where the tool number has not changed from the prior tool change).
See tool_zero in Volume 3, Numeric Variables.
Standard postblocks
Standard postblocks are called based on the NCI Gcode after internal calculations are performed in the
post executable.
Command postblocks
Command postblocks are called during the normal NCI file processing but perform delayed calls to
output comments, subprograms and canned cycles at locations in the NC code where the user and NC
code require them. They are provided to add flexibility when generating output of comments,
subprograms and canned cycles. The following are command postblocks:
pcomment
Used for transform subprograms and a single tool to call the subprogram.
psub_call_mm
Used for transform subprograms and many tools to call the subprogram.
prcc_setup
Used to capture information from the roughing tool with lathe canned cycles.
Post-process postblock
A post-process postblock is called after posting has completed and all the files have been closed.
ppost
The only post-process postblock, it allows manipulating the NC file after posting.
Note: The post writer is responsible for opening the files before attempting to write to them.
June 2002
Chapter 7 Postblocks
Volume 1
Postlines
Postlines are the lines of MP language instructions within the postblock. They may appear only after
the postblock declaration and constitute the body of a postblock. Because certain conditions can allow
a postline to continue over more than one line in the post customization file, you must determine where
each postline ends. Never declare variables or post functions on a postline.
For example, this postblock is from the MPFAN.PST post:
ptlchg
# Tool change
pcuttype
toolchng = one
if mi1 = one, # Work coordinate system
[
pfbld, n, *sg28ref, "X0.", "Y0.", e
pfbld, n, "G92", *xh, *yh, *zh, e
]
pbld, n, "M01", e
pcom_moveb
c_mmlt # Multiple tool subprogram call
ptoolcomment
comment
pcan
pbld, n, *t, "M6", e
pindex
sav_absinc = absinc
if mi1 > one, absinc = zero
pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,
pfcout, *speed, *spindle, pgear, strcantext, e
pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e
absinc = sav_absinc
pcom_movea
toolchng = zero
c_msng # Single tool subprogram call
Postline types
Some postlines generate output and some provide logic within the post customization file.
Basic postline types are determined by the type of statement at the beginning of the postline.
Listed here are the basic postline types:
! Output
! Formula
! Boolean
Output postline
The term output postline is misleading because the statements on this postline often do not generate
output. An output postline may contain variables, commands, string literals, ASCII decimal equivalent,
and postblock call statements, as long as the line is not a formula postline or Boolean postline.
7-8 Mastercam Version 9 MP Post Reference Guide
June 2002
Volume 1
Chapter 7 Postblocks
Formula postline
Formula postlines are assignments or equations. A result variable followed by an equal sign (=) as the
first item on the postline identifies a formula postline.
The following function calls should always be entered as formula postlines:
! Lookup table function call
! Parameter table function call
! Buffer file function call
Boolean postline
Boolean postlines begin with the conditional operators if, else, or while.
Postline statements
Postline statements are the components that make up the postline. MP language rules determine where
the statement types can appear on a postline, how they are delimited, and which basic postline types
they can be used with.
Postline statement definitions include both the variables that can be used and an action. Conditional
branching statements and formula statements are identified by formula components and keywords.
Output statements include variable modifiers.
Following are the major postline statement types:
! Conditional branching statement
! Formula statement
! Output statements
# Output line variables
Numeric variable
User-defined numeric variable
Forced numeric variable
Update numeric variable
Format numeric variable
Dependent numeric variable
Debug numeric variable
Command variable
Previous numeric variable
User-defined string variable
String variable
Forced string variable
Dependent string variable
Debug string variable
# String select function call
Selector string variable
Selector forced string variable
June 2002
Chapter 7 Postblocks
Volume 1
#
#
#
#
#
Formula statement
The formula statement begins with a result variable before the equal sign (=) that is part of an equation,
assignment or formula and ends where the actual postline ends (ignoring spaces and post comments).
The formula statement must remain on a single line in the post customization file:
speed = abs(ss)
Formula statements and conditional branching statements are similar, differing from each other only in:
! the keyword that determines the type (for a formula, variable =, or for conditional
branching, if, else, while).
! the end delimiter (for formula, the end of the postline, or for conditional branching, a
comma).
The way the result is interpreted also differs:
! A conditional branching statement is tested for true or false and the result is zero or non-zero.
! A formula statement result is returned directly in the result variable.
The following are allowed as components in the formula equation.
! Math operator
! Formula function
! Numeric variable
! User-defined numeric variable
! Previous numeric variable
! String variable
! User-defined string variable
! String literal
Note: What is allowed with any particular function or operator depends on the argument types. The
components of the formula are not considered as postline statement types; the entire statement
includes the type key and the type delimiter. See Formulas for more information.
7-10 Mastercam Version 9 MP Post Reference Guide
June 2002
Volume 1
Chapter 7 Postblocks
Output statements
The term output statement is misleading, like output postline, because the statements might not
generate output. Output statements are not allowed in a formula statement or a conditional branching
statement. Output statements can continue over multiple lines in the post customization file and even
continue through postblock calls or jumps. Output statements are separated by placing a comma (,)
between each statement. If a postline statement was not identified as a formula statement or a
conditional branching statement, it is then assumed to be one of the output statement forms.
Output statements may contain:
! Output line variables
! String select function call
! String literal
! Dependent string literal
! ASCII literal
! Postblock call
! User prompt function call
Output line variables
Any variable that is defined, either by the post executable or in the post customization file, can be
placed on a postline as an output statement. You can modify how the post executable handles
processing of the variable by adding a prefix called a variable modifier (!, *, @ ~, etc.) The following
may be output line variables:
Numeric variables
Variables predefined in the post executable file (without any modifiers). Output to the NC file is
expected based on modality. For example:
x
Variable modifiers
When added to numeric variables, variable modifiers change processing as follows:
Forced numeric variable (*)
Both user-defined numeric variables and numeric variables can be forced to output. The prefix asterisk
(*) overrides modality and forces output to the NC file. Output to the NC file is expected.
For example:
*x, *xabs
June 2002
Chapter 7 Postblocks
Volume 1
Command variable
Command variables are unique in that they trigger an event or routine in the post executable, possibly
calling back to the post customization file for some postblock instructions. All command variables are
predefined numeric variables. Most cannot be prefixed with a variable modifier. For example:
comment
June 2002
Volume 1
Chapter 7 Postblocks
String variable
Variables of this type are the predefined variables in the post executable file. This is the undressed
form of the string variable. Output to the NC file is expected. For example:
snamenc
When added to string variables, the variable modifiers change processing as follows:
Forced string variable (*)
Both user-defined string variables and string variables can be forced to output. The prefix asterisk (*)
override forces output to the NC file. Output to the NC file is expected. For example:
*snamenc, *sm00
When added to selector variables, the variable modifiers change processing as follows:
Selector forced string variable (*)
The selector string variable can be forced to output. The prefix asterisk (*) forces output to the NC file.
Output to the NC file is expected. For example:
*sgcode
The selector string variable can be prefixed with the grave accent (`) to permit output to the NC file
only when there is other valid output on the assembled NC line. Sequence (n) already behaves this way.
For example:
`sgcode
June 2002
Chapter 7 Postblocks
Volume 1
String literals ( )
A string literal is actually a form of user-defined string declaration. The character string is enclosed
within double quotes (). The syntax implies a user-defined string variable when parsed by the post
executable. Output to the NC file is forced. For example:
M12
ASCII literals
Any of the standard ASCII characters can be output to the NC file by entering the decimal equivalent
(0 to 255 ) of the desired character as an output statement. Output to the NC file is forced. For
example (the pound character (#) is ASCII 035):
35
Postblock calls
To call a postblock, place the name of the postblock as an output statement. The post executable marks
the position where the jump occurs and passes processing of postline instructions to the called
postblock. No output is generated. For example:
pblock
June 2002
Volume 1
Chapter 7 Postblocks
Chapter 7 Postblocks
Volume 1
Postblock/postline examples
Following are examples of the postblocks, postline types, and postline statements from MPFAN.PST.
The MP language code here is commented with the post comment and highlighted to identify each of
the types on the postline.
psof
pcuttype
#Formula postline, Formula statement
toolchng = one
#Boolean postline, Conditional branching statement
if ntools = one,
#Bracketed postblock, begin
[
#skip single tool outputs, stagetool must be on
# Formula postline, Formula statement
stagetool = m_one
#Output postline, Update numeric variable
!next_tool
#Bracketed postblocks, end
]
#Output postline, String literal, Command variable
"%", e
#Output postline, Forced numeric variable, Command variable
*progno, e
#Output postline, String literal, Numeric variable, String literal, Command variable
pbld, n, *smetric, e
#Output postline, Postblock call, Numeric variable, Selector forced string variable, Selector forced string variable,
String literal, String literal, Selector forced string variable, Command variable
sav_absinc = absinc
#Boolean postline, Conditional branching statement
[
#Formula postline
absinc = one
#Output postline, Postblock call, Numeric variable, Selector string variable, String literal, Command variable
June 2002
Volume 1
Chapter 7 Postblocks
#Output postline, Postblock call, Numeric variable, Selector forced string variable, String literal, String literal,
Command variable
absinc = sav_absinc
#Bracketed postblock, end
]
#Output postline, Postblock call
pcom_moveb
#Output postline, Command variable
ptoolcomment
#Output postline, Command variable
comment
#Output postline, Postblock call
pcan
#Boolean postline, Conditional branching statement, Output statement
pindex
#Boolean postline, Conditional branching statement, Formula statement
absinc = sav_absinc
#Output postline, Postblock call
pcom_movea
#Formula postline
toolchng = zero
#Output postline, Command variable
Studying these code examples should give the novice post writer a basic understanding of how
statements and postline types are assembled.
June 2002
Chapter 7 Postblocks
Volume 1
mill/turn applications.
! A postblock label must be on a line by itself (except for post comments).
! A postblock label may contain a maximum of 25 characters consisting of letters (a - z), numbers
traditional postblock postline(s) ends that postblock. The exception is the post comment (#), which
is ignored.
! Postlines encapsulated in the open and close brackets ([,]) define a bracketed postblock.
! The post executable file assigns an internal postblock label to bracketed postblocks. The labels are
created by concatenating the string p__, the number that represents the occurrence of the bracket
set, the colon :, and the line number in the post customization file that the open bracket was on.
This is displayed when debugging or with error messages.
! The open and close brackets ([,]) that encapsulate the postlines in a bracketed postblock should be
on lines by themselves.
! The brackets used to define the bracketed postblock must be indented following the same rules as a
postline.
! Bracketed postblocks must be wholly contained in a single traditional postblock. Nested bracketed
postblocks must be wholly contained in the brackets of the nesting bracketed postblock.
! Bracketed postblocks may be nested to 25 levels deep.
variable modifiers, and other factors control what is actually output to the NC file.
! Separate output statements with commas.
! Output statements can continue over multiple lines by placing a comma at the end of the line (and
June 2002
Volume 1
Chapter 7 Postblocks
! A series of output statements that are intended to produce NC output should be terminated with the
e command variable. This tells the post executable to write the end-of-block characters.
! Output statements may follow the comma delimiter on a Boolean postline.
! A single formula statement on a single line can follow the comma delimiter on a Boolean postline.
! A formula postline must be on a single line. Do not put more than a one formula statement on a
formula postline.
! A conditional branching statement can never follow the comma delimiter on a Boolean postline.
found.
! In a conditional branching statement, use a space to separate the Boolean keyword (if, else, while)
Chapter 7 Postblocks
Volume 1
Note: When motion is broken as XY then Z or Z then X, the output is controlled by the post executable
by writing the previous (prv_var) value of the numeric variable x, y or z to the appropriate current
numeric variable x, y or z. Manipulating these variables prior to the break up motion can result in
unexpected behavior in your NC output.
Z only motion postblock calling
! rotaxtyp >= 6 or whatno is yes
# NCI Gcode = 0 Call pzrapid
# NCI Gcode = 1 - Call pz
! otherwise
# whatline = 1 Call pz1
# whatline = 2 Call pz
# whatline = 0 or > 2
NCI Gcode = 0 Call pzrapid
NCI Gcode = 1 - Call pz
General motion postblock calling
! rotaxtyp >= 6 or whatno is yes
# NCI Gcode = 0
posttype = 1 (Mill)
o mrapid in post Call mrapid
o otherwise Call prapid
posttype = 2 (Lathe)
o lrapid in post Call lrapid
o otherwise Call prapid
# NCI Gcode = 1
posttype = 1 (Mill)
o mlin in post Call mlin
o otherwise Call plin
posttype = 2 (Lathe)
o llin in post Call llin
o otherwise Call plin
! otherwise
# whatline = 1 Call plin1
# whatline = 2 Call plin2
# whatline = 0 or > 2
NCI Gcode = 0 Call prapid
NCI Gcode = 1 - Call plin
7-20 Mastercam Version 9 MP Post Reference Guide
June 2002
Volume 1
Chapter 7 Postblocks
The length of first lead-in move, measured from first point in cut. If ldinl1 = 0, this move will be
eliminated.
ldina1
The lead-in angle measured from first cut segment, in degrees. A lead-in angle of 0 would yield a
tangent lead-in.
ldinl2
The length of second lead-in move. This allows for a change from rapid to plunge feed rate. if ldinl2 =
0, this move will be eliminated.
ldina2
The lead-in angle measured from first cut segment, in degrees. A lead-in angle of 0 would yield a
tangent lead-in.
June 2002
Chapter 7 Postblocks
Volume 1
ldoutl1
The length of lead-out move, measured from last point in cut. If ldoutl1 = 0, this move will be
eliminated.
ldouta1
The lead-out angle measured from last cut segment, in degrees. A lead-out angle of 0 would yield a
tangent lead-out.
ldoutl2
The length of second lead-out move. This allows for a change from rapid to plunge feed rate. If ldoutl2
= 0, this move will be eliminated.
ldouta2
The lead-out angle measured from last cut segment, in degrees. A lead-out angle of 90 would yield a
lead-out normal to surface.
Figure: 5-axis lead in/lead out
The drawing shows the relative location on the 5-axis toolpath where each move is generated by the
post executable. These moves are not part of the NCI file but are created in the post executable.
CALCULATED
VECTOR
LDINL2
LDOUTL2
LDOUTL1
CALCULATED
VECTOR
The lead in motion is started when the NCI Gcode 11 is passed to the internal routine and the numeric
variable whatline is 0. The post executable delays this first position until the second position is read
from the NCI file so that the cut direction can be determined. Normally, whatline is set to 0 in
ptlchg1002 when using the programming technique enabled with tlchng_aft. This routine (tlchng_aft) is
designed to include the motion NCI data after the tool change NCI gcode (1000, 1001 and 1002) line as
part of the tool change series of lines. Otherwise, whatline is assigned 0 in the psof, and ptlchg
postblocks.
The lead out motion is triggered when the numeric variable cutpos, read from the NCI file, is equal to 3.
The called postblock depends on the setting of the lead in and lead out variables. If the move was
eliminated because the numeric variable was 0, a call is not generated to the predefined postblock.
June 2002
Volume 1
Chapter 7 Postblocks
Before each output postblock call, the internal routine to apply the numeric variables tilt (for tilt along
cut direction) and rhtilt (tilt perpendicular to cut direction) is called. At the end of the routine that
applied the tilt (if non-zero), a call is made to the postblock pmx0. Now, the postblock is called for the
NC output instructions in the post customization file.
Postblock calling for Gcode 11
! whatline = 2
# Lead in Line 1 is valid Call pmx1
# Lead in Line 2 is valid
whatline is set to 3
Call pmx1
# Original position is output Call pmx2
! whatline = 4 and cutpos <> 3 - Call pmx
! cutpos = 3
# Lead out Line 1 is valid Call pmx1
# Lead out Line 2 is valid Call pmx1
Note: The routines shown here are obsolete. In prior versions of Mastercam, the post would
generate many of the moves to and from a 5-axis toolpath, modify the lead and lag angles, etc. It is
recommended that any motion that can be generated in Mastercam be used before using the
routines in the post executable to creating motion or modify motion.
Chapter 7 Postblocks
Volume 1
posttype = 2 (Lathe)
lchpbrk in post Call lchpbrk
otherwise Call pchpbrk
drillcyc = 3
# posttype = 1 (Mill)
mtap in post Call mtap
otherwise Call ptap
# posttype = 2 (Lathe)
ltap in post Call ltap
otherwise Call ptap
drillcyc = 4
# posttype = 1 (Mill)
mbore1 in post Call mbore1
otherwise Call pbore1
# posttype = 2 (Lathe)
lbore1 in post Call lbore1
otherwise Call pbore1
drillcyc = 5
# posttype = 1 (Mill)
mbore2 in post Call mbore2
otherwise Call pbore2
# posttype = 2 (Lathe)
lbore2 in post Call lbore2
otherwise Call pbore2
drillcyc = 6
# posttype = 1 (Mill)
mmisc1 in post Call mmisc1
otherwise Call pmisc1
# posttype = 2 (Lathe)
lmisc1 in post Call lmisc1
otherwise Call pmisc1
drillcyc = 7
# posttype = 1 (Mill)
mmisc2 in post Call mmisc2
otherwise Call pmisc2
# posttype = 2 (Lathe)
lmisc2 in post Call lmisc2
otherwise Call pmisc2
June 2002
Volume 1
Chapter 7 Postblocks
Chapter 7 Postblocks
Volume 1
drillcyc = 6
# posttype = 1 (Mill)
mmisc1_2 in post Call mmisc1_2
otherwise Call pmisc1_2
# posttype = 2 (Lathe)
lmisc1_2 in post Call lmisc1_2
otherwise Call pmisc1_2
! drillcyc = 7
# posttype = 1 (Mill)
mmisc2_2 in post Call mmisc2_2
otherwise Call pmisc2_2
# posttype = 2 (Lathe)
lmisc2_2 in post Call lmisc2_2
otherwise Call pmisc2_2
!
Note: Even though the postblocks are in the MP language, you would never expect to have a Lathe NCI
Gcode 100.
June 2002
Volume 1
Chapter 7 Postblocks
#
#
Note: Output calls for Direct Wirepaths are based on the numeric variable uvflag . The post executable
actually reads four lines from the NCI, but the first set (20s NCI Gcode) determines the actual call.
June 2002
Chapter 7 Postblocks
Volume 1
June 2002