Additional implicit calls with G800-G819 (P-CHAN-00187)


Additional implicit calls with G800-G819


As an extension to the implicit call of subroutines with G80-G89, the parameter ‘g800_prog_file[i]' offers the possibility of defining a further 20 names of global subroutines which are called implicitly if G800 - G819 is detected in the NC program. A G800-G819 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 [G8xx='<prog_name>']. The new subroutine names are then valid until program end M30 or until a further #FILE NAME [G8xx=”<prog_name>”] [PROG] occurs.

After RESET or program start, the entries of 'g800_prog_file[i]' in the channel parameters list are valid again.


g800_prog_file[i] where i = 0 19

Data type


Data range

Maximum 83 characters (application-specific)



Default value



Parameterisation example:

g800_prog_file[0] (subroutine name with G800)

g800_prog_file[1] (subroutine name with G801)

g800_prog_file[2] (subroutine name with G802)

g800_prog_file[3] (subroutine name with G803)

g800_prog_file[4] (subroutine name with G804)

g800_prog_file[5] (subroutine name with G805)

g800_prog_file[6] (subroutine name with G806)

g800_prog_file[7] (subroutine name with G807)

g800_prog_file[8] (subroutine name with G808)

g800_prog_file[9] (subroutine name with G809)

g800_prog_file[10] (name of UP with G810)

g800_prog_file[11] (subroutine name with G811)

g800_prog_file[12] (subroutine name with G812)

g800_prog_file[13] (subroutine name with G813)

g800_prog_file[14] (subroutine name with G814)

g800_prog_file[15] (subroutine name with G815)

g800_prog_file[16] (subroutine name with G816)

g800_prog_file[17] (subroutine name with G817)

g800_prog_file[18] (subroutine name with G818)

g800_prog_file[19] (name of UP with G819)

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