Fatal Post Errors: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Dannym (talk | contribs)
Dannym (talk | contribs)
Line 17: Line 17:
==="Divide by zero!"===
==="Divide by zero!"===
'''More details:''' <br>
'''More details:''' <br>
The post processor has attempted to divide by zero in it's logic. If you expand the Show Error Details, and look at the last sub-routine name in the Prog Callstack, you can locate where the divide by zero occurs. An example code snippet might be: "DIV# Num#('1') Num#('0')"
The post processor has attempted to divide by zero in it's logic. If you expand the Show Error Details, and look at the last sub-routine name in the Prog Callstack, you can locate where the divide by zero occurs. An example code snippet might be: "[[DIV#]] [[Num#]]('1') [[Num#]]('0')"


'''Potential Fixes:''' <br>
'''Potential Fixes:''' <br>
Don't divide by zero. If your code snippet looks something like this: DIV# Num#('1') EPX#, then EPX# must be qualified first to ensure it's non-zero before performing division on it.
Don't divide by zero. If your code snippet looks something like this: [[DIV#]] [[Num#]]('1') [[EPX#]], then [[EPX#]] must be qualified first to ensure it's non-zero before performing division on it.


==="Invalid Axis Set"===
==="Invalid Axis Set"===

Revision as of 18:20, 10 December 2014

Overview

GibbsCAM 2015 contains a new Post processor error detection system where, upon hitting the Process button to generate NC-output, a Fatal Post Error message may appear with details about where a posting error occurred and why. This article itemizes the "Error:" descriptions that might be encountered and offers recommended trouble-shooting techniques for each.

Errors

"Discrepancy in calculated polar angle"

More details:
This error detects a problem specific to certain legacy (GibbsCAM 2014 and earlier) Okuma MTM posts. These Okuma posts tell the post-engine to output in polar interpolation mode, but then output C and radial X. They track X in polar, but not Y, so our automatic calculation of C is wrong. Because they've also tracked C, we can detect this when the calculated C is significantly different from the C that they asked to track to.

Potential Fixes:

  • Update your post against the current Okuma MTM Master post, which contains a fix.
  • Add code to your post to also track the Y-axis similar to how the X-axis is currently tracked for Polar Interpolation. For example, probably in "interpStartPos:" sub-routine, add "TrackYNO# StartPosY#" for Polar Interpolation.

"Divide by zero!"

More details:
The post processor has attempted to divide by zero in it's logic. If you expand the Show Error Details, and look at the last sub-routine name in the Prog Callstack, you can locate where the divide by zero occurs. An example code snippet might be: "DIV# Num#('1') Num#('0')"

Potential Fixes:
Don't divide by zero. If your code snippet looks something like this: DIV# Num#('1') EPX#, then EPX# must be qualified first to ensure it's non-zero before performing division on it.

"Invalid Axis Set"

More details:
The Flow Axis Set (FAS) associated with a particular operation in the VNC part file does not exist in the MDD that has been compiled with the post processor.

Potential Fixes:
Ensure the MDD used in the VNC part file is the same MDD compiled with the post processor.

"Invalid Rotary Axis"

More details:
This error means the rotary axis that the post is calling for does not exist in the current Interpolation Set.

Potential Fixes:
The exact cause of this error can vary greatly, so a specific fix is difficult to specify. As an example, the post processor might be for a 4-axis machine and is calling MoveC, but a 3-axis MDD is being used in GibbsCAM. The 4th-axis doesn't exist in the 3-axis MDD. The fix to this example is to use the proper post/MDD setup.

"Invalid Wrap Axis on a rotary mill op"

More details:

Potential Fixes:

"Can't find appropriate real axis for wrapping"

More details:

Potential Fixes:

"Linear Axis Does not Exist"

More details:

Potential Fixes:

"Rotary Axis Does not Exist"

More details:

Potential Fixes:

"Invalid axis for tracking"

More details:

Potential Fixes:

"Bad axis info"

More details:

Potential Fixes:

"Invalid wrap axis"

More details:

Potential Fixes:

"Discrepancy in calculated polar angle"

More details:

Potential Fixes:

"Can't get previous FeatureStep"

More details:

Potential Fixes:

"Can't get state for requested op"

More details:

Potential Fixes:

"State operation not equal to current op"

More details:

Potential Fixes:

"Incompatible Axis Values"

More details:

Potential Fixes:

"Boolean called outside of logical test"

More details:

Potential Fixes:

"Trying to call CRC command other than current or previous op"

More details:

Potential Fixes:

"Non-legacy axis used in MTG upgrade op."

More details:

Potential Fixes:

"Invalid op state in B_FirstHomeAxisIsMachineHome"

More details:

Potential Fixes:

"AnyMoves? can't be called in path loop"

More details:

Potential Fixes:

"B_InterpAxisIsAttchedToPart called for axis that is not in InterpSet"

More details:

Potential Fixes:

"Post processor does not support this drilling cycle"

More details:

Potential Fixes:

"ReSetPass1 should not be used"

More details:

Potential Fixes:

"Can't call ResetPass2 from within a Pass1 EachFeat/NextFeat loop"

More details:

Potential Fixes:

"Can't call ResetPass2 from an EachRep/NextRep loop"

More details:

Potential Fixes:

"SetAddTools used, please use StraightTG mode with proper offsets"

More details:
The SetAddTools command has been deprecated/removed. It never worked correctly and is best described as a "backwards" version of SetOutputStraightTG, but it was used in some posts, which means the input values were also "backwards" to compensate for the broken command.

Potential Fixes:
Replace SetAddTools with SetOutputStraightTG in the post. The toolgroup datum input must also change back to "normal" to eradicate the work-around used with this command.

"Can't call SetPass2 from an EachFeat/NextFeat loop"

More details:

Potential Fixes:

"Post that supposedly doesn't use legacy modes used one"

More details:

Potential Fixes:

"Invalid Axis for TGAngle"

More details:

Potential Fixes:

"Can't call EachMillDrillFeat: not in the path loop of a mill drill op"

More details:

Potential Fixes:

"Hole cycle expansion not found"

More details:

Potential Fixes:

"Bad hole cycle expansion"

More details:

Potential Fixes:

"Prog does not contain root code segment"

More details:

Potential Fixes:

"Unable to create output file _____"

More details:

Potential Fixes:

"Too many consecutive jumps"

More details:

Potential Fixes:

"No available coolant code"

More details:

Potential Fixes:

"Unable to find string map named _____ for iteration"

More details:

Potential Fixes:

"Invalid Arithmetic Operator"

More details:

Potential Fixes:

"Unknown Comparator"

More details:
The post is attempting to use a math operator that is not supported.

Potential Fixes:
Remove the unsupported operator. The sub-routine in which the operator is called will be listed in the Prog Callstack section withing the Fatal Post Error dialog. Also see the Infix_Math article for supported operators.

"Unknown Trig Operator"

More details:

Potential Fixes:

"Post Error: Changing plane in path feat loop not supported"

More details:

Potential Fixes:

"Invalid nodes"

More details:

Potential Fixes:

"Can't calculate dwell time: spindle is off"

More details:

Potential Fixes:

"Trying to access 'thread finish x' for non-threading op"

More details:

Potential Fixes:

"Trying to access 'thread finish z' for non-threading op"

More details:

Potential Fixes:

"FeatFieldData not implemented"

More details:

Potential Fixes:

"Toolgroup called on a non tool op."

More details:

Potential Fixes:

"Invalid tool used while getting the tool position."

More details:

Potential Fixes:

"_____ is not a valid axis component"

More details:

Potential Fixes:

"Incremental Okuma angles not supported"

More details:

Potential Fixes:

"CRC commands need implementation for stepper posts, one that doesn't map to TG"

More details:

Potential Fixes:

"Feed rate type is unknown"

More details:

Potential Fixes:

"Unable to read Post Processor File"

More details:

Potential Fixes:

"Required literal not found"

More details:

Potential Fixes:

"It is illegal to use Next with a feed-rate command"

More details:

Potential Fixes:

"The output feed rate type is invalid"

More details:

Potential Fixes:

"Toolpath iterator is null"

More details:

Potential Fixes:

"Invalid Op for CS node"

More details:

Potential Fixes:

"Supposedly 'better' post called legacy mode command!"

More details:

Potential Fixes:

"Invalid to call EachRotation within another loop"

More details:

Potential Fixes:

"Invalid to call NextRotation without first calling EachRotation"

More details:

Potential Fixes:

"Invalid to begin a pass 2 EachFeat loop without finishing prior loop"

More details:

Potential Fixes:

"Op not found"

More details:

Potential Fixes:

"Approach start pos not found"

More details:

Potential Fixes:

"Retract end pos not found"

More details:

Potential Fixes:

"Couldn't find op start"

More details:

Potential Fixes:

"Read of second logical parameter when argument is already resolved"

More details:

Potential Fixes:

"Something is wrong, there aren't any parPoses."

More details:

Potential Fixes:

"Saved steps can't be used in non-stepper posts"

More details:

Potential Fixes:

"RestoreStep: step named '_____' not found"

More details:

Potential Fixes:

"Drill R level searched for and not found"

More details:

Potential Fixes:

"Toolpath end got when jumping to end of _____"

More details:

Potential Fixes: