NX outputting different wire compensation codes for 2 axis vs 4 axis path

2022-03-08T19:25:36Z
NX for Manufacturing

Summary


Details

WEDM control uses different cutcom codes depending on whether the path is a simple 2-axis cut or a more complex 4-axis cut.  How to have the post recognize these conditions and output the correct code format?

Solution

For a 2-axis path, the control uses the standard G41/G42/G40 cutcom codes.  For a 4-axis path, it calls for a variant syntax of G141/G142/G140 for cutcom.

In this post, all cutcom output is being handled through the standard Cutcom On machine control event in the post.  As noted in FAQ 001-9409297, the "mom_tool_axis_type" variable can be used to test on what kind of wire path was defined in the operation.  

Create an output condition for that machine control output block to alter the system cutcom code based on the wire axis type of the operation:

===============================
global mom_sys_cutcom_code
global mom_cutcom_status
global mom_tool_axis_type

if { $mom_tool_axis_type == 4 } {
  set mom_sys_cutcom_code(LEFT) 141
  set mom_sys_cutcom_code(RIGHT) 142
  set mom_sys_cutcom_code(OFF) 140
  } else {
  set mom_sys_cutcom_code(LEFT) 41
  set mom_sys_cutcom_code(RIGHT) 42
  set mom_sys_cutcom_code(OFF) 40
  }

return 1
===============================

With this in place, the post will substitute the G code numbers on the fly based on the wire axis type used in the current operation.



Hardware/Software Configuration

Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V1988
Function: POSTBUILDER

Ref: 002-8615071

KB Article ID# PL8615071

Contents

SummaryDetails

Associated Components

Manufacturing Post Builder