This is what the error 331 saying:
"Error 331 - The job the operator is about to run goes past and/over the soft limits of the machine. The soft limits are defined by the machine's programmed size. See section for code Error 47."
But for error 47, this is what it says:
The machine is actually at the outer limits you must jog away from the limits. The machine is incorrectly sized in the Setup Menu of ToolPath. Check the settings in ToolPath setup. Compensation is forcing job outside the Machine Size vales as defined in Setup
For additional information consult the following website: http://www.axyz.co.uk/en/amc-error-codes/