Implicit calls with G80-G89 (P-CHAN-00160 - P-CHAN-00169)

P-CHAN-00160 -

Implicit calls with G80-G89


The parameters ‘g80_prog_file’ - ‘g89_prog_file’ define the names of global subroutines which are called implicitly when a G80 - G89 is detected in the NC program. G80-G89 is always executed as the last action at block end.

If the related parameter is not assigned or not present in the channel parameter list, the error message P-ERR-20131 'Unknown G function’ is generated if G80 - G89 is programmed.

The subroutine names defined in the channel parameters can also be overwritten or temporarily assigned in the NC program by the command #FILE NAME [G8x='<prog_name>']. The new subroutine names are then valid until program end M30 or until a further #FILE NAME [G8x=”<prog_name>”] [[PROG].

After RESET or program start, the entries of 'g8x_prog_file' in the channel parameters list are valid again.


g80_prog_file - g89_prog_file

Data type


Data range

Maximum 83 characters (application-specific)



Default value



Parameterisation example:

g80_prog_file (subroutine name with G80)

g81_prog_file (name of subroutine with G81)

g82_prog_file (subroutine name with G82)

g83_prog_file (name of subroutine with G83)

g84_prog_file (subroutine name with G84)

g85_prog_file (name of subroutine with G85)

g86_prog_file (subroutine name with G86)

g87_prog_file (name of subroutine with G87)

g88_prog_file (name of subroutine with G88)

g89_prog_file (subroutine name with G89)

* Note: The default value of variable is a blank string.