@@ -1811,25 +1811,25 @@ string getMachineCoordinate( real coord ) {
1811
1811
string coordString = "";
1812
1812
switch(CNCmillResolution) { // 2011-02-02
1813
1813
case Res32 : CNCsolution = 100;
1814
- sprintf(coordString, "%05.0f", coord * CNCsolution);
1815
- break;
1814
+ sprintf(coordString, "%05.0f", coord * CNCsolution);
1815
+ break;
1816
1816
case Res33 : CNCsolution = 1000;
1817
1817
sprintf(coordString, "%06.0f", coord * CNCsolution);
1818
- break;
1818
+ break;
1819
1819
case Res34 : CNCsolution = 10000;
1820
1820
sprintf(coordString, "%07.0f", coord * CNCsolution);
1821
- break;
1821
+ break;
1822
1822
case Res3_2 : CNCsolution = 1; // 2011-02-03
1823
1823
sprintf(coordString, "%05.2f", coord * CNCsolution);
1824
- break;
1824
+ break;
1825
1825
case Res3_3 : CNCsolution = 1;
1826
1826
sprintf(coordString, "%06.3f", coord * CNCsolution);
1827
- break;
1827
+ break;
1828
1828
case Res3_4 : CNCsolution = 1;
1829
1829
sprintf(coordString, "%07.4f", coord * CNCsolution);
1830
- break;
1830
+ break;
1831
1831
}
1832
-
1832
+
1833
1833
return coordString;
1834
1834
}
1835
1835
@@ -1862,7 +1862,7 @@ void endlineCnc( int x2, int y2) {
1862
1862
}
1863
1863
1864
1864
void fullineCnc( int x1, int y1, int x2, int y2) {
1865
- printf("G00 X%s Y%s F%.0f\nG01 Z%s F%.0f\nG01 X%s Y%s F%.0f\nG00 Z%s F%.0f\n",
1865
+ printf("G00 X%s Y%s F%.0f\nG01 Z%s F%.0f\nG01 X%s Y%s F%.0f\nG00 Z%s F%.0f\n",
1866
1866
getMachineCoordinate(Mirror * u2mm(x1 + Mill_OffsetX) + u2mm(MillMirr_Offset)),
1867
1867
getMachineCoordinate(u2mm(y1 + Ref_null_offsetY)), Fast_vel * CNCrevolution,
1868
1868
getMachineCoordinate(Actualmilldeep), Drill_Vel * CNCrevolution, // Z-Achse eintauchen
@@ -2098,16 +2098,16 @@ void CircleDraw(int centerx, int centery, int diam, real drilldiamround, int dri
2098
2098
case devCNC:
2099
2099
// for CNC 1. Start point arc,
2100
2100
// 2. Center point arc
2101
- printf("G00 X%s Y%s\nG01 Z%s\n",
2102
- getMachineCoordinate(Mirror * (u2mm((centerx + diam / 2 - tool_diameter / 2) + Mill_OffsetX)) + u2mm(MillMirr_Offset)),
2103
- getMachineCoordinate(u2mm(centery + Ref_null_offsetY)),
2104
- getMachineCoordinate(Actualmilldeep)
2105
- );
2106
- printf("G03 X%s Y%s\nG00 Z%s\n",
2107
- getMachineCoordinate(Mirror * u2mm(centerx + Mill_OffsetX) + u2mm(MillMirr_Offset)),
2108
- getMachineCoordinate(u2mm(centery + Ref_null_offsetY)),
2109
- getMachineCoordinate(Mill_z_safety)
2110
- );
2101
+ printf("G00 X%s Y%s\nG01 Z%s\n",
2102
+ getMachineCoordinate(Mirror * (u2mm((centerx + diam / 2 - tool_diameter / 2) + Mill_OffsetX)) + u2mm(MillMirr_Offset)),
2103
+ getMachineCoordinate(u2mm(centery + Ref_null_offsetY)),
2104
+ getMachineCoordinate(Actualmilldeep)
2105
+ );
2106
+ printf("G03 X%s Y%s\nG00 Z%s\n",
2107
+ getMachineCoordinate(Mirror * u2mm(centerx + Mill_OffsetX) + u2mm(MillMirr_Offset)),
2108
+ getMachineCoordinate(u2mm(centery + Ref_null_offsetY)),
2109
+ getMachineCoordinate(Mill_z_safety)
2110
+ );
2111
2111
2112
2112
break;
2113
2113
}
@@ -2258,15 +2258,15 @@ void DeviceDraw(int x1, int y1, int x2, int y2, int state) {
2258
2258
break;
2259
2259
2260
2260
case Drill_coord :
2261
- printf("G00 X%s Y%s F%.0f\n",
2262
- getMachineCoordinate(Mirror * u2mm(x2 + Mill_OffsetX) + u2mm(MillMirr_Offset)),
2263
- getMachineCoordinate(u2mm(y2 + Ref_null_offsetY)), Fast_vel * CNCrevolution
2264
- );
2265
- printf("G01 Z%s F%.0f\nG00 Z%s F%.0f\n", // langsam Eintauchen, schnell hoch 2011-01-27
2266
- getMachineCoordinate(Actualmilldeep), Drill_Vel * CNCrevolution,
2267
- getMachineCoordinate(Mill_z_safety), Fast_vel * CNCrevolution
2268
- );
2269
-
2261
+ printf("G00 X%s Y%s F%.0f\n",
2262
+ getMachineCoordinate(Mirror * u2mm(x2 + Mill_OffsetX) + u2mm(MillMirr_Offset)),
2263
+ getMachineCoordinate(u2mm(y2 + Ref_null_offsetY)), Fast_vel * CNCrevolution
2264
+ );
2265
+ printf("G01 Z%s F%.0f\nG00 Z%s F%.0f\n", // langsam Eintauchen, schnell hoch 2011-01-27
2266
+ getMachineCoordinate(Actualmilldeep), Drill_Vel * CNCrevolution,
2267
+ getMachineCoordinate(Mill_z_safety), Fast_vel * CNCrevolution
2268
+ );
2269
+
2270
2270
break;
2271
2271
2272
2272
case One_line : fullineCnc(x1, y1, x2, y2);
@@ -2751,7 +2751,7 @@ void DeviceEnd(void) {
2751
2751
break;
2752
2752
2753
2753
case devCNC:
2754
- printf("G00 Z%.0f\nG00 X%.0f Y%.0f\n", ParkZposition * CNCsolution, ParkXposition * CNCsolution, ParkYposition * CNCsolution);
2754
+ printf("G00 Z%.0f\nG00 X%.0f Y%.0f\n", ParkZposition * CNCsolution, ParkXposition * CNCsolution, ParkYposition * CNCsolution);
2755
2755
printf("M05\nM30 Device ende\n"); // referenzpunkt anfahren 2011-01-27
2756
2756
break;
2757
2757
}
@@ -2905,10 +2905,10 @@ string RUN_pass(string run_Pass) {
2905
2905
Dim_on_off, // argv[29]
2906
2906
MInner_contour, // argv[30]
2907
2907
CNCmillResolution, // argv[31] 2011-02-02
2908
- Spindle_rpm, // argv[32] 2018-05-15
2909
- Tool_vel, // argv[33] 2018-05-15
2910
- Fast_vel, // argv[34] 2018-05-15
2911
- Drill_Vel, // argv[35] 2018-05-15
2908
+ Spindle_rpm, // argv[32] 2018-05-15
2909
+ Tool_vel, // argv[33] 2018-05-15
2910
+ Fast_vel, // argv[34] 2018-05-15
2911
+ Drill_Vel, // argv[35] 2018-05-15
2912
2912
Mill_z_safety, // argv[36] 2011-02-03
2913
2913
Drill_z_deep, // argv[37]
2914
2914
Z_down, // argv[38]
@@ -5121,7 +5121,7 @@ if (InPassPour) { // third run, wide isolate und copper pouring
5121
5121
string millout;
5122
5122
string s;
5123
5123
string coordoutline;
5124
- Actualmilldeep = Z_down*2 ; // 2018-05-16 two times milling deep Z Achse
5124
+ Actualmilldeep = Z_down; // 2011-01-27 milling Z Achse
5125
5125
board(B) {
5126
5126
real x1 = u2mm(B.area.x1) - MillToolFree/2, y1 = u2mm(B.area.y1) - MillToolFree/2;
5127
5127
real x2 = u2mm(B.area.x2) + MillToolFree/2, y2 = u2mm(B.area.y2) + MillToolFree/2;
0 commit comments