ID 21313

Percent sign not allowed within global subroutine part.

Description

In a global subroutine (GUP), a percentage sign (%) is read, although the global subroutine is already executed.

The execution of a global subroutine is started, if either a % character followed by a program name (without "L"!) was found in the file, or if the first character found in the file outside comments is one that is neither a space nor a "%". In this case, this character is evaluated as the first character of an unnamed program. It also means that no block numbers, variable declarations etc. may be programmed before the first “%”.

[PROG//Chapter – Subroutine techniques]

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify global NC subroutine. Ensure that no NC block numbers, variable declarations etc. were programmed before the first %-character (e.g. remove block numbers at the beginning of comment lines!).

Nxx (Comment) (GUP-Start here)

:

%L UP1 (<- Error 21313 here!)

Nxx

:

%GUP

Nxx

:

or

Nxx (Comment) (GUP-Start here)

:

%GUP (<-Error 21313 here!)

:

or

(Comment)

:

%L UP1

Nxx

:

%GUP (GUP-Start here)

Nxx

:

%STRING (<-Error 21313 here!)

:

or

Nxx (GUP-Start here)

:

%STRING (<-Error 21313 here!)

:

Error type

1, Error message from NC program.