Hello everyone, I'm a mechanical engineer who faces the cnc programming . I plan about a week a work center with Fanuc Hartford OID equipped with hard drives seen as dataserver , I just managed to make a profile path with repetitions and increase with M98 Q loaded on the memory of the CNC , the same path if given in DNC mode directly from hard drive gives me error file not found, from what I deduced that M98 only works when loaded into memory , the path is as follows:

%
O001
G17 G54 G5.1Q1 R6
T07 M06
S4000 F8000 M03
G00 G91 G28 Z0 (Z DI SICUREZZA)
G90
M58
G43 H07 Z100
G00 X0 Y-66
G00 Z2
G01 Z0 F100
M98 Q33 L5
G00 G91 G28 Z0
G90
G00 G53 X-700 Y0 (SPOST TAVOLA FRONTE OPERAT)
G5.1Q0
M30

N33
G01 G91 Z-0.5 F100
G90
G01 X0 Y-46 G41 F8000 D07
G01 X-249
G02 X-255 Y-40 I0 J6
G01 Y40
G02 X-249 Y46 I6 J0
G01 X249
G02 X255 Y40 I0 J-6
G01 Y-40
G02 X249 Y-46 I-6 J0
G01 X0
G00 X0 Y-66 G40
M99
%

I ask you experts if I can create a path with the parameters that make me repeat the profile for XX times and increase Z . I hope I helped to load because a path on the memory without being able to create folders in fact I complicates things over to the production , manufacture progressive dies from 300 parts and then the career paths taken by cam, with some changes , I'd like you could to feed directly from HD DNC mode so that they are divided by folder and would not go into total confusion . I have a laptop on the machine from which I transfer the files to the dataserver and intake modifications to the paths . If you need more information do not hesitate to ask