O.K., now I understand why it didn't work... programming seems to have some evil traps for beginners
Nevertheless thanks for your advice. I have now finished my script using seperate vars for every axis and it works fine...after this early success I probably have to work on basic understanding more.