Is been obsolete because of the solution from @foosel .
Thanks anyway
https://reprap.org/wiki/G-code#M85:_Set_Inactivity_Shutdown_Timer