(author: Julian Koenig) (version: 2.0) (date: 30.05.2024) o sub # = #<_ini[probe]TOOL_NUMBER_1> # = #<_ini[probe]TOOL_NUMBER_2> # = #<_ini[probe]TOOL_NUMBER_3> # = #5401 # = #5402 # = #5411 # = #5412 # = #1 (0 for normal; 1 for used while calibration) # = #<_ini[probe]MAX_XY_DISTANCE> # = #<_ini[probe]MAX_Z_DISTANCE> # = #<_ini[probe]VEL_SLOW> # = #<_ini[probe]VEL_FAST> # = #<_ini[probe]VEL_FF> # = #<_ini[probe]DEBOUNCE_TIME> # = #<_ini[AXIS_X]MAX_ACCELERATION> # = #<_ini[AXIS_Y]MAX_ACCELERATION> # = #<_ini[AXIS_Z]MAX_ACCELERATION> (Check for too high velocities) o140 if [[#] GT [#]] # = # o140 else # = # o140 endif # = [60 * [SQRT[[[[#]*[#]*0.001]*[[#]*[#]*0.001]] + [2*[#]*[#]]] - [[#]*[#]*0.001]]] # = [60 * [SQRT[[[[#] *[#]*0.001]*[[#] *[#]*0.001]] + [2*[#] *[#]]] - [[#] *[#]*0.001]]] o141 if [[[#] LT [#]] OR [[#] LT [#]] OR [[#] LT [#]]] (debug,Your current probe velocity values are to high for X/Y safety, so that your probe could be damaged. Please lower your values, aborting.) (debug,Maximum values for velocity X/Y: %.1f#) o return [0] o141 elseif [[[#] LT [#]] OR [[#] LT [#]]] (debug,Your current probe velocity values are to high for Z safety, so that your probe could be damaged. Please lower your values, aborting.) (debug,Maximum values for velocity Z: %.1f#) o return [0] o141 endif (return value default 0, if everything is fine value 1) o100 if [#5400 EQ 0] (MSG,No specified probe tool in spindle, aborting) o return [0] o100 elseif [[#5400 EQ #] OR [#5400 EQ #] OR [#5400 EQ #]] o110 if [#5410 EQ 0] (MSG,No tipdiameter specified. Please enter tipdiameter to tooltable, aborting) o return [0] o110 endif o120 if [# EQ 0] o130 if [[# EQ 0] OR [# EQ 0] OR [# EQ 0] OR [# EQ 0]] (MSG,No calibration data found in tooltable. Please do a calibration, aborting) o return [0] o130 else (If everthing is fine, then value 1) o return [1] o130 endif o120 elseif [# EQ 1] (If everthing is fine, then value 1) o return [1] o120 endif o100 else (MSG,No specified probe tool in spindle, aborting) o return [0] o100 endif o endsub M2 (end program)