I have used your example, so thanks for this. I used it to see if there came a response from the machine, if so I used my own routine to initialise it. If there came no response it was not turned on or connected and then I don't call my routine.
So thank you very much.
Bakelaar