Calling Subprograms with User-Defined G-Code
A subprogram call can be performed with a G code defined by the user. Up to 10 special G codes can be created. Each special G code is sequentially directed to these subprograms, starting from the subprogram numbered O9010. The G codes to be directed to the subprogram should be entered into the PRM0-PRM9 parameters. These parameters should be specified in the 0.0 format. For example, if the subprogram O9010.cnc is to be called with the G51 code, the value 510 should be entered into PRM0. Similarly, if the subprogram O9011.cnc is to be called with the G51.1 code, the value 511 should be entered into PRM1.
The values entered into these parameters mask the G codes defined in the system. When G0 is redirected to a subprogram, the G0 code loses all its functions within the system.
Example:
