10 Application of G-codes
3. Loading data into CAM chart: Load the G-codes/M-codes in Oxn (n: 0~2) into corresponding CAM
charts.
To load the data into CAM charts, work modes of 3 axes should be set up first, and then Oxn should
be called.
(A) Setting up work modes of 3 axes
X-axis Y-axis Z-axis
Work mode (bit 12) D1847=H1000 D1927=H1000 D2007=H1000
(B) Calling Oxn: Call Oxn to load the G-codes/M-codes in corresponding CAM charts, without
executing Oxn. When the G-codes/M-codes are loaded, M1792 will be rising-edge triggered.
The below diagrams are examples demonstrating how to call Oxn subroutines.
a. Calling the Ox0 subroutine
b. Calling the Ox1 subroutine
c. Calling the Ox2 subroutine
P.S.: Do not set up M1036 (continuous interpolation) before this step, otherwise the loaded data
will be G-codes/M-codes with continuous interpolation.
DVP-20PM Application Manual
10-14