1. Macro Programming (Custom Macro) Exercises (Click here)


2. NC Code Examples / Exercises:

NO NameContentFile size / DateDownload
1Explanation:
Ex. O0000.nc
Simulation:
Ex. O0000.nc
Operation List POST: Alpha Standard 3 ax Mill
--------------------------------------------------
OP 1 CONTOUR POCKET - FINISH TOOL 3 FLAT - 10MM
EFFECTIVE DIAMETER 10, WIDTH OF CUT 5
CONTOUR POCKET - FINISH TOOL 3 FLAT - 10MM
...
File size: 28.7 Kb
Date Added: 2021-11-18 23:26:00
O0000.nc
2Explanation:
Ex. O0001.nc
Simulation:
Ex. O0001.nc
%
O0002; (FANUC 0i-MC)
G17 G21 G54;
G40 G49 G90;
T2 M06;
...
File size: 410 bytes
Date Added: 2021-11-15 11:55:00
O0001.nc
3Explanation:
Ex. O0002.nc
Simulation:
Ex. O0002.nc
%
N10 (PROGRAM PRODUCED 25/10/19)
N20 G90 G71
N30 G40 G80
N40 T0101 M03
...
File size: 832 bytes
Date Added: 2021-11-15 11:55:00
O0002.nc
4Explanation:
Ex. O0003.nc
Simulation:
Ex. O0003.nc
%
N10 (PROGRAM PRODUCED - 26 OCT 19)
N20 G90 G71
N30 G40 G80
'(OP 1 FINISH PASS TOOL 1 FLAT - 2MM)
...
File size: 3.1 Kb
Date Added: 2021-11-15 11:55:00
O0003.nc
5Explanation:
Ex. O0100.nc
Simulation:
Ex. O0100.nc
T1 M6
G21
G17
G0 Z20.000
G0 X0.000 Y0.000 S15000 M3
...
File size: 230.2 Kb
Date Added: 2021-11-16 22:35:00
O0100.nc
6Explanation:
Ex. O0101.nc
Simulation:
Ex. O0101.nc
G90 G21

T1 M6 (Reset tool)
(Reset coordinate systems)
G10 L2 P1 X0.0000 Y0.0000 Z0.0000
...
File size: 147.7 Kb
Date Added: 2021-11-16 22:34:00
O0101.nc
7Explanation:
Ex. O0102.nc
Simulation:
Ex. O0102.nc
;PYCAM-META-DATA: Filename: /home/jcoffland/projects/camotics/svn/trunk/camotics/examples/cat/tiny_cat_outline.svg
;PYCAM-META-DATA: Timestamp: 2012-01-27 20:11:57.397792
;PYCAM-META-DATA: Version: 0.5.1
;Estimated machine time: 6 minutes
G40 (disable tool radius compensation)
...
File size: 50.3 Kb
Date Added: 2021-11-16 22:34:00
O0102.nc
8Explanation:
Ex. O0103.nc
Simulation:
Ex. O0103.nc
G21
G0 Z3
F1600
M3 S10000
M6 T2
...
File size: 9.9 Kb
Date Added: 2021-11-16 22:33:00
O0103.nc
9Explanation:
Ex. O0104.nc
Simulation:
Ex. O0104.nc
G21
F400
M3 S4000
G0 Z5
G0 X50.240704 Y5.593287
...
File size: 60 Kb
Date Added: 2021-11-16 22:33:00
O0104.nc
10Explanation:
Ex. O0105.nc
Simulation:
Ex. O0105.nc
G21
F400
M3 S10000
M6 T1
G0 Z3
...
File size: 11.1 Kb
Date Added: 2021-11-16 22:32:00
O0105.nc
11Explanation:
Ex. O0106.nc
Simulation:
Ex. O0106.nc
G90 G20 M03 S2000
G0 Z0.2000
G0 X0.0000 Y0.0000 Z0.2000
G0 X0.0010 Y0.0010 Z0.2000
G1 X0.0010 Y0.0010 Z0.0000 F8.0
...
File size: 441.2 Kb
Date Added: 2021-11-16 22:32:00
O0106.nc
12Explanation:
Ex. O0107.nc
Simulation:
Ex. O0107.nc
G21 (mm)

#100=5
#101=50
#102=70
...
File size: 7.1 Kb
Date Added: 2021-11-16 22:31:00
O0107.nc
13Explanation:
Ex. O0108.nc
Simulation:
Ex. O0108.nc
G21
G0 Z5
G0 Z25
M6 T1
F400
...
File size: 34 Kb
Date Added: 2021-11-16 22:30:00
O0108.nc
14Explanation:
Ex. O0109.nc
Simulation:
Ex. O0109.nc
G21
G0 Z5
F400
G0 Y40
G1 Z-9.35
...
File size: 167 Kb
Date Added: 2021-11-16 22:30:00
O0109.nc
15Explanation:
Ex. O0110.nc
Simulation:
Ex. O0110.nc
G21
T1 M6
G0 Z10.000
G0 X0.000 Y0.000 S10000 M3
G0 X40.094 Y235.389 Z5.000
...
File size: 4.6 Kb
Date Added: 2021-11-16 22:28:00
O0110.nc
16Explanation:
Ex. O0111.nc
Simulation:
Ex. O0111.nc
G21 T3 F5
G0 X0 Y0 Z0
G1 X5 Y5 Z-5
G1 X10 Y10 Z0
G0 Z1
...
File size: 178 bytes
Date Added: 2021-11-16 22:36:00
O0111.nc
17Explanation:
Ex. O0112.nc
Simulation:
Ex. O0112.nc
G21
M3 S10000
M6 T3
G0 Z3
F437.5
...
File size: 33.4 Kb
Date Added: 2021-11-16 22:40:00
O0112.nc
18Explanation:
Ex. O0113.nc
Simulation:
Ex. O0113.nc
%
N1 G17 G90 G21 G40 G49;
N2 G05.1 Q0;
(Parallel Finishing)
N3 T0;
...
File size: 10.5 Kb
Date Added: 2021-11-16 22:44:00
O0113.nc
19Explanation:
Ex. O0114.nc
Simulation:
Ex. O0114.nc
%
N10 (PROGRAM PRODUCED - 16 NOV 21)
N20 G90 G71
N30 G40 G80
(OP 1 CONTOUR POCKET - ROUGH TOOL 1 FLAT - 12 MM + HOLDER)
...
File size: 28 Kb
Date Added: 2021-11-16 22:54:00
O0114.nc
20Explanation:
Ex. O0115.nc
Simulation:
Ex. O0115.nc
%
N10 (PROGRAM PRODUCED - 16 NOV 21)
N20 G90 G71
N30 G40 G80
N40 T0303 M03
...
File size: 7.3 Kb
Date Added: 2021-11-16 22:56:00
O0115.nc