Hi, in line 18 it gives you an error because you write coordinates in 7 axes... but your robot only has 6 axes. the same applies to other lines where you write the values in the axis number 8,9,10,11,12.
I'll try on my robot how to write the frame through the positional registers...I don't remember exactly, but it's not as simple as you tried to write it, a matrix is used. ..