Hi all.

I came here if someone would be willing in helping me writing measuring program for Sinumerik 840D
Powerline. I am an operator trying to get my life little less complicated becouse as for now we measure only in JOG which takes time. It's on 5 axis vertical machine with swivel table.
I am new with Sinumerik so i now only basic stuff and almost none of it for measuring.

I have wrote part of it and test it but it's not working as i would like to also i have some problems with understanding some parameters like _EVNUM

Problem is i don't understand what is _EVNUM how to calculate it or when use it.

If any have time and will to help me with that i would be most gracious.

I have wrote explanation what i am doing in attached file.
Thanks in advance