@droftarts
yep that's pretty much what i managed to dig last night
so i can get M112 or call external script
now im facing problem thta if i call M112 then there no motion is possible at all
where i want to go back in case of collision... ex say we are homing and there something on bed causing collision so we tiger may switch stop homing process and go back -10mm from last known position to avoid hardware tension
... then will test what happens during print, caz if its printing woudl need to do same but pause printing... could be easier during printing