# ID 21382

Impermissible write/read access to cycle parameters.
Description | This error output is caused by a write/read access on a cycle parameter within a main program or by a direct call of a cycle as a stand-alone program. A write/read access to cycle parameters (@Pxx=...) may only be carried out in the cycle program itself (e.g. @P1=@P5+@P6) or in cycle call L CYCLE [NAME=... @Pxx=..].

Example:

Wrong:

%main

N05 X0 Y0 Z0 G00

N20 G01 X200 F3000

N25 @P1=10

N40 L CYCLE [NAME=dummy1.cyc …]

N50 G01 Y300 F1000

N60 G01 Z300 F2000

N90 M30

Correct:

%main

N05 X0 Y0 Z0 G00

N20 G01 X200 F3000

N25 V.L.VAR1=10

N40 L CYCLE [NAME=dummy1.cyc @P1=V.L.VAR1…]

N50 G01 Y300 F1000

N60 G01 Z300 F2000

N90 M30

Response | Class | 2 | Abort NC program processing.
Solution | Class | 3 | Check and modify NC program. Remove write/read accesses in main or normal subroutines, or move them into the cycle. Start cycle only by a global sub program call within the main program (L CYCLE [...]).
Parameter | %1: | Current value [-]
%2: | Error value [-]
Error type | 1, Error message from NC program.