thanks Ya-Nvr-No, Brett and Dan13.
Ya-Nvr-No don't know where the sleep setting is.
i tried it but no idea if working

Brett, i used what you had and same results. works in
VB but not in MDI.
Can13. i have it in the gcode but it does nothing. i should be able to
use mcodes in the MDI, shouldn't i ?
Thanks
and the brain is enabled in control