The posted output for a drilling cycle repeats the
XY position from the previous motion line. How can this
XY data be suppressed in the cycle output line?
Solution
Redundant
XY output can be removed by adding the
Custom Command seen below. Place this command as the first line in
Program & Tool Path -> Program -> Canned Cycles -> Common Parameters.
global mom_prev_pos mom_pos
if {[info exists $mom_prev_pos(0)]== 0 } {
if {[ string compare $mom_prev_pos(0) $mom_pos(0)] == 0 } {
#MOM_output_literal "they are the same"
MOM_suppress once X
}
}
if {[info exists $mom_prev_pos(1)]== 0 } {
if {[ string compare $mom_prev_pos(1) $mom_pos(1)] == 0 } {
#MOM_output_literal "they are the same"
MOM_suppress once Y
}
}
The output might look something like the picture below when complete. Notice that the
XY words have been removed.
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V1876
Function: POSTBUILDER
Ref: 002-8015173