Hello all,

My objective is to use my renishaw prob to locate a surface. When that surface is located it is store in the #14001 and # 14002 ( X Y for G154 P1)
I'm adding value #5061 and #5221 for X and #5062 + #5222 for Y when contact is made with the surface.

The problem I'm having is to save #14001 and # 14002 in a usb key in append mode (not deleting the previous points)

Question: Does anyone know how to save points to an usb key?

Here's my code:

%
O8855
N1 G90 G20 G17 G40 G49 G80 G94 G54 G00
N2 T1 M6
N3 G43 H1
N4 G00 Z0.5
N5 G0 X0. Y0.
N6 G65 P9832
N7 G31 X-1.0 F2.0
N8 #14001 = [#5061 + #5221]
N9 #14002 = [#5062 + #5222]
N10 G00 X0. Y0.
N11 G0 Z1.0
N12 G65 P9833 #<FILENAME>="USB:/probed_coordinates.txt"
N13 G65 P9834 #<FILENAME>="USB:/probed_coordinates.txt" A#14001 B#14002
N14 M30
%

My machine is a HAAS GR510, and my probe is a RENISHAW 40-2

Error: I get a ERROR 248 at N12