Is there a system variable that the post is aware of so it can tell whether the current Wire EDM operation is defined as using 2 or 4 axis geometry?
Solution
It should be possible to use the "mom_tool_axis_type" variable to test on what kind of wire path was defined in the operation.
In a 2-axis wire operation, this has a 0 value.
In a 4-axis wire operation, it does have a value of 4.
A basic example of logic structure that can test on this variable in a custom command or an output condition in the post would look like:
========================================
global mom_tool_axis_type
if { $mom_tool_axis_type == 4 } {
set up the 4-axis stuff...
} else {
do the 2-axis stuff...
}
========================================
Post writers can build any needed output or codes based on this framework.
Notes