CNC.SCHOOL — Integrated solutions for manufacturing industries (CNC)
NC Listing:

1:  %
2:  O0002;
3:  #100 = 180 (LENGTH);
4:  #101 = 180 (WIDTH);
5:  #102 = 3 (CNT X);
6:  #103 = 3 (CNT Y);
7:  #104 = 10 (GAP 1 OUTSIDE);
8:  #105 = 8 (GAP 2 INSIDE);
9:  #106 = 1 (T/H/D NUMBER OP 1);
10:  #107 = 2 (T/H/D NUMBER OP 2);
11:  #108 = 4 (DIA TOOL #106 OP1);
12:  #109 = 4 (DIA TOOL #107 OP2);
13:  #110 = 2 (DEPTH Z OP1);
14:  #111 = 5 (DEPTH Z OP2);
15:  #117 = 50 (SAFETY LEVEL);
16:  #118 = 20 (R-POINT);
17:  #119 = 4 (STEP RECT);
18:  (DO NOT EDIT!);
19:  #112 = [[#100-[#104*2]-[#105*[#102-1]]]/#102]-[#108] (LENGTH WIND.);
20:  #113 = [[#101-[#104*2]-[#105*[#103-1]]]/#103]-[#108] (WIDTH WIND.);
21:  #114 = [#104+[#108/2]](ACT POS X);
22:  #115 = [#104+[#108/2]](ACT POS Y);
23:  #116 = #102 (FOR RESTART);
24:  #120 = FUP[#112/2/#119];
25:  #121 = FUP[#113/2/#119];
26:  #122 = #121;
27:  #123 = #112-[#119*2] (X LEN);
28:  #124 = #113-[#119*2] (Y WID);
29:  IF [#100 LE #101] THEN #122 = #120;
30:  #125 = #120;
31:  G17 G21 G90 G54 G40 G49 G80;
32:  M06 T#106;
33:  M03 S6000;
34:  G00 X#114 Y#115 Z#117 M08;
35:  G43 Z#118 H#106;
36:  N50 IF [#103 EQ 0] GOTO 1000;
37:  IF [#102 EQ 0] GOTO 500;
38:  G90;
39:  G00 X#114 Y#115 Z#118;
40:  G01 Z-#110 F100.;
41:  G91 Y#113 F125.;
42:  X#112;
43:  Y-#113;
44:  X-#112;
45:  #114 = #114+[#112+[#108]+#105];
46:  #102 = #102-1;
47:  M98 P0003;
48:  #123 = #112-[#119*2] (X LEN);
49:  #124 = #113-[#119*2] (Y WID);
50:  #122 = #125;
51:  GOTO 50;
52:  N500;
53:  #114 = [#104+#108/2];
54:  #115 = #115+[#113+#108+#105];
55:  #102 = #116;
56:  #103 = #103-1;
57:  GOTO 50;
58:  N1000;
59:  M05;
60:  M09;
61:  G90;
62:  M06 T#107;
63:  M03 S6000;
64:  G00 X[0-[#109/2]] Y[0-[#109/2]] Z#117 M08;
65:  G43 Z#118 H#107;
66:  G01 Z-#111 F100.;
67:  Y[#101+[#109/2]];
68:  X[#100+[#109/2]];
69:  Y[0-[#109/2]];
70:  X[0-[#109/2]];
71:  G00 Z#117;
72:  M05;
73:  M09;
74:  G91 G28 Z0.;
75:  G28 X0.Y0.;
76:  G90;
77:  M30;
78:  
79:  O0003;
80:  N10 IF [#122 EQ 0] GOTO 20;
81:  G91
82:  G01 X#119 Y#119;
83:  Y#124;
84:  X#123;
85:  Y-#124;
86:  X-#123;
87:  #123 = #123-#119*2;
88:  #124 = #124-#119*2;
89:  #122 = #122-1;
90:  GOTO 10;
91:  N20 M99;
92:  %
Simulation / Explanation:



Download O0002.nc

File size: 1.7 Kb
Date Added: 2022-06-30 20:54:06


Explanation [Russian]:

Simulation: