diff --git a/psng/macros/psng_gotots.ngc b/psng/macros/psng_gotots.ngc index a298275f..f7410124 100644 --- a/psng/macros/psng_gotots.ngc +++ b/psng/macros/psng_gotots.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [2] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif ; first go up then move to tool sensor position G90 diff --git a/psng/macros/psng_hook.ngc b/psng/macros/psng_hook.ngc index 22931939..978074fe 100644 --- a/psng/macros/psng_hook.ngc +++ b/psng/macros/psng_hook.ngc @@ -25,5 +25,5 @@ o sub ; value "6". # = #1 -o endsub +o endsub [0] M2 diff --git a/psng/macros/psng_manual_change.ngc b/psng/macros/psng_manual_change.ngc index 97e52c49..f8177308 100644 --- a/psng/macros/psng_manual_change.ngc +++ b/psng/macros/psng_manual_change.ngc @@ -1,7 +1,11 @@ ; manual toolchange with automatic tool length probe - o sub + +; Call the PSNG Hook and check return value o call [1] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif ;(debug, in change tool_in_spindle=# current_pocket=#) ;(debug, selected_tool=# selected_pocket=#) diff --git a/psng/macros/psng_probe_table.ngc b/psng/macros/psng_probe_table.ngc index 5655840b..9f53ebce 100644 --- a/psng/macros/psng_probe_table.ngc +++ b/psng/macros/psng_probe_table.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [3] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif #=#<_z> (save current Z position) G91 diff --git a/psng/macros/psng_probe_tool_setter.ngc b/psng/macros/psng_probe_tool_setter.ngc index 362b40a6..4a94fab8 100644 --- a/psng/macros/psng_probe_tool_setter.ngc +++ b/psng/macros/psng_probe_tool_setter.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [4] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif ; first go up then move to tool sensor position G90 diff --git a/psng/macros/psng_probe_workpiece.ngc b/psng/macros/psng_probe_workpiece.ngc index 5d424042..801d384f 100644 --- a/psng/macros/psng_probe_workpiece.ngc +++ b/psng/macros/psng_probe_workpiece.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [5] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif (cancel all Z offsets) G49 diff --git a/psng/macros/psng_xminus.ngc b/psng/macros/psng_xminus.ngc index f2df4344..b3308eba 100644 --- a/psng/macros/psng_xminus.ngc +++ b/psng/macros/psng_xminus.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [6] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif #=#<_x> (save start X position) G91 diff --git a/psng/macros/psng_xplus.ngc b/psng/macros/psng_xplus.ngc index 91e9177c..bf52e0ba 100644 --- a/psng/macros/psng_xplus.ngc +++ b/psng/macros/psng_xplus.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [7] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif #=#<_x> (save start X position) G91 diff --git a/psng/macros/psng_yminus.ngc b/psng/macros/psng_yminus.ngc index 6f573f1d..3eef5268 100644 --- a/psng/macros/psng_yminus.ngc +++ b/psng/macros/psng_yminus.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [8] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif #=#<_y> (save start Y position) G91 diff --git a/psng/macros/psng_yplus.ngc b/psng/macros/psng_yplus.ngc index 6f84c470..c777272d 100644 --- a/psng/macros/psng_yplus.ngc +++ b/psng/macros/psng_yplus.ngc @@ -1,5 +1,10 @@ o sub + +; Call the PSNG Hook and check return value o call [9] +o10 if [#<_value> LT 0] +(ABORT, PSNG hook indicated a failure: #<_value>) +o10 endif #=#<_y> (save start Y position) G91