585,886 active members*
5,244 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Fadal > Need HELP uploading a handwritten program
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    37

    Need HELP uploading a handwritten program

    I have written a program by hand and am trying to use Mastercam to send the program to the machine with no luck. Mastercam still sends my NC files created with Mastercam just fine so I know the communications is working.

    I am afraid I have something embedded in my program that my Fadal is having a hard time reading. When I go to load the program it will take the first line and thats about all.

    A little background on my program. I wrote the program in Excel as it was easy to organize variables and my program in general. I then copied the program from Excel and pasted it into Notepad so now it looked like a normal text document. I also tried saving the Excel file as a text (tab delimited) file as well. I changed the extension on lthe files to .nc and tried sending them via Mastercam.

    My question is, are there sublties about a text file that need to be considered when writing or posting them?

    Also, is there a good software for communicating with my machine just to send and maybe receive programs?

  2. #2
    Join Date
    May 2008
    Posts
    37
    %
    N0100 O600 (VISE DR-2076M6 MASTER PROGRAM)
    N0101 (CHANGE TO FANUC FORMAT AND CHANGE OFFSETS TO G54…)
    N0102 (****START TOOL LIST****)
    N0103 (T2 3 INCH FACEMILL)
    N0104 (T7 1/2 INCH ENDMILL)
    N0105 (T6 13/32 INCH DRILL)
    N0106 (T8 7/8-14 SAE PORT TOOL)
    N0107 (T9 .440 REAMER)
    N0108 (T10 14 TPI NPSF THREAD MILL)
    N0109 (T11 90 DEGREE CHAMFER MILL)
    N0110 ()
    N0111 (VARIABLES)
    N0112 #100=1.250 (Width of stock material - 1.125 nominal)
    N0113 #101=2.0 (Length of stock material - 2.0 nominal)
    N0114 #102=2.130 (Height of finished block)
    N0115 #103=4200 (3" face mill feed rate)
    N0116 #104=1.0 (Center of holes in the x direction for 7/8-14 UNF port)
    N0117 #105=1.605 (Center of holes in the x direction for .406 hole in lower port - absolute value - (work offset 6 & 7)
    N0118 #106=.805 (Center of holes in the x direction for .406 hole in upper port - absolute value - (work offset 8 & 9)
    N0119 #107=1.505 (Center of holes in the x direction for 1/2-14 NPSF lower port - absolute value - (work offset 6 & 7)
    N0120 #108=.805 (Center of holes in the x direction for 1/2-14 NPSF upper port - absolute value - (work offset 8 & 9)
    N0121 #109=.790 (Diameter of hole for 7/8-14 UNF threads - pre port tool)
    N0122 #110=.660 (Diameter of hole for spring and spring seat)
    N0123 #111=.735 (Diameter of hole for 1/2-14 NPSF threads)
    N0124 #112=#102 (Top of hole 1 for 7/8-14 threads)
    N0125 #113=1.765 (Bottom of hole1 for 7/8-14 threads)
    N0126 #114=#113 (Top of .660 hole)
    N0127 #115=1.108 (Bottom of .660 hole)
    N0128 #116=#101 (Top of hole 3 for 1/2-14 NPSF threads)
    N0129 #117=1.345 (Bottom of hole 3 for 1/2-14 NPSF threads)
    N0130 #118=.125 (Depth of cut of 1/2 endmill)
    N0131 #119=15.0 (Plunge rate of 1/2 endmill)
    N0132 #120=22.0 (Feedrate of 1/2 endmill)
    N0133 #121=28.0 (Drilling feedrate of .406 drill)
    N0134 #122=.400 (Drilling peck size)
    N0135 #123=23.0 (Port tool drilling feedrate)
    N0136 #124=5.0 (Reamer drilling feedrate)
    N0137 #125=7.5 (Thread mill feedrate)
    N0138 #126=100.0 (Thread mill plunge rate)
    N0139 #127=.883 (Thread mill major diameter at 7/8-14 UNF threads)
    N0140 #128=.827 (Thread mill major diameter at 1/2-14 NPSF threads)
    N0141 #129=.670 (Thread mill tool diameter)
    N0142 #130=.0714 (Thread pitch)
    N0143 #131=7. (Number of teeth)
    N0144 #132=20. (Chamfer mill feed rate)
    N0145 #133=2.0 (Depth of chamfer mill at 7/8-14 UNF ports)
    N0146 #134=2.0 (Depth of chamfer mill at 1/2-14 NPSF ports)
    N0147 #135=4200 (3 inch facemill spindle speed)
    N0148 #136=6000 (1/2 inch endmill spindle speed)
    N0149 #137=1500 (.406 drill spindle speed)
    N0150 #138=4200 (Port tool spindle speed)
    N0151 #139=2600 (Reamer spindle speed)
    N0152 #140=4000 (Thread mill spindle speed)
    N0153 #141=1200 (1 inch chamfer mill spindle speed)
    N0154 #142=#102 (Top of 7/8-14 threads)
    N0155 #143=1.765 (Bottom of 7/8-14 threads)
    N0156 #144=#101 (Top of 1/2-14 NPSF threads)
    N0157 #145=1.345 (Bottom of 1/2-14 NPSF threads)
    N0158 #146=1.670 (Chamfer mill depth at 1/2-14 NPSF ports)
    N0159 #147=1.582 (Chamfer mill depth at 7/8-14 UNF ports)
    N0160 ()
    N0161 (FORMULAS)
    N0162 #211=[#101/2] (Center of hole 1 in the y direction for all ports - absolute value)
    N0163 #212=#211+#101 (Center of hole 1 in the y direction for all ports - absolute value)
    N0164 #213=#212+#101 (Center of hole 1 in the y direction for all ports - absolute value)
    N0165 #214=#213+#101 (Center of hole 1 in the y direction for all ports - absolute value)
    N0166 ()
    N0167 ()
    N0168 T02 M6 ( 3 INCH FACEMILL )
    N0169 (Face milling blocks to height)
    N0170 G54.1 P5 G0 G90 X-4.1 Y5.75 (Rapid to start position in X & Y)
    N0171 S#135 M3 (Spindle on clockwise)
    N0172 G43 H02 Z[#102+.050] M08 (Rapid to .050 above part, coolant on)
    N0173 G17 G1 Z#102 F#103 (Feed to finished height of block)
    N0174 X-4.
    N0175 X-1.25
    N0176 G2 X-1. Y5.5 I0. J-.25
    N0177 G1 Y-7.5
    N0178 G2 X-1.25 Y-7.75 I-.25 J0.
    N0179 G1 X-4.
    N0180 X-4.1
    N0181 Z[#102+.050] F100. (Feed to .050 above material)
    N0182 M5 (Spindle off)
    N0183 M09 (Coolant off)
    N0184 G0 Z0 G43 H0
    N0185 (
    N0186 (
    N0187 T07 M6 (1/2 Flat Endmill)
    N0188 G0 G90 G54.1 P4 X-#104 Y-#214 (Rapid to position 1 in X & Y)
    N0189 S#136 M3 (Spindle on clockwise)
    N0190 G43 H07 Z[#102+.050] M08 (Rapid to .050 above material, coolant on)
    N0191 G66 P8001 E#118 T#112 B#113 H#114 M#115 C.5 D#109 A#110 F#120 S#136 U #119 L0 M08(Begin Macro, Generate .790 and .660 holes at work offsets 4 & 5)
    N0192 (VARIABLES)
    N0193 (E = #8 depth of cut)
    N0194 (T = #20 top of hole 1 - z value)
    N0195 (B = #2 bottom of hole 1- z value)
    N0196 (H = #11 top of hole 2 - z value)
    N0197 (M = #13 bottom of hole 2- z value)
    N0198 (C = #3 cutter diameter)
    N0199 (D = #7 diameter of hole 1)
    N0200 (A = #1 diameter of hole 2)
    N0201 (U = #21 mill plunge rate)
    N0202 (F = #9 milling feedrate)
    N0203 (S = #19 spindle speed)
    N0204 Y-#214
    N0205 Y-#213
    N0206 Y-#212
    N0207 Y-#211
    N0208 G54.1 P5 Y#211
    N0209 Y#212
    N0210 Y#213
    N0211 Y#214
    N0212 G67 (Macro cancel)
    N0213 G54.1 P7 X-#107
    N0214 G66 P8002 E#118 T#116 B#117 C.5 D#111 U#119 F#120 S#136 L0 ( Begin Macro, Generate .735 holes for 1/2-14 ports)
    N0215 (E = #8 depth of cut)
    N0216 (T = #20 top of hole - z value)
    N0217 (B = #2 bottom of hole- z value)
    N0218 (C = #3 cutter diameter)
    N0219 (D = #7 diameter of hole)
    N0220 (U = #21 mill plunge rate)
    N0221 (F = #9 milling feedrate)
    N0222 (S = #19 spindle speed)
    N0223 Y#214
    N0224 Y#213
    N0225 Y#212
    N0226 Y#211
    N0227 G54.1 P6 Y-#211
    N0228 Y-#212
    N0229 Y-#213
    N0230 Y-#214
    N0231 G54.1 P8 X#108 Y-#214
    N0232 Y-#213
    N0233 Y-#212
    N0234 Y-#211
    N0235 G54.1 P9 Y#211
    N0236 Y#212
    N0237 Y#213
    N0238 Y#214
    N0239 G67 (Macro cancel)
    N0240 M5 (Spindle off)
    N0241 M09 (Coolant off)
    N0242 G0 Z0 G43 H0
    N0243 T06 M06 (13/32 Drill Fullerton Nov 2011)
    N0244 G0 G90 G54.1 P9 X#106 (Rapid to position 1 in X & Y)
    N0245 S#137 M3 (Spindle on clockwise)
    N0246 G43 H06 Z[#101+.050] M08 (Rapid to .050 above material, coolant on)
    N0247 G81 G98 X#108 Y#214 Z.8737 R0+1.375 F#121 (Drilling .406 hole at 1/2-14 NPSF ports)
    N0248 Y#213
    N0249 Y#212
    N0250 Y#211
    N0251 G54.1 P8 Y-#211
    N0252 Y-#212
    N0253 Y-#213
    N0254 Y-#214
    N0255 G54.1 P6 X-#105 Y-#214
    N0256 Y-#213
    N0257 Y-#212
    N0258 Y-#211
    N0259 G54.1 P7 Y#211
    N0260 Y#212
    N0261 Y#213
    N0262 Y#214
    N0263 G80 (Drilling cycle cancel)
    N0264 G0 G90 Z[#102+.050] (Rapid to .050 above finished height of block)
    N0265 G54.1 P5 X-#104 Y#214
    N0266 G81 G98 X-#104 Y#214 Z.1987 R0+1.052 F#121 (Drilling .406 hole at 7/8-14 UNF ports)
    N0267 Y#213
    N0268 Y#212
    N0269 Y#211
    N0270 G54.1 P4 Y-#211
    N0271 Y-#212
    N0272 Y-#213
    N0273 Y-#214
    N0274 G80 (Drilling cycle cancel)
    N0275 M5 (Spindle off)
    N0276 M09 (Coolant off)
    N0277 G0 Z0 G43 H0
    N0278 T08 M06 (Port tool Nov 2011)
    N0279 G0 G90 G54.1 P4 X-#104 Y-#214 (Rapid to position 1 in X & Y)
    N0280 S#138 M03 (Spindle on clockwise
    N0281 G43 H08 Z[#102+.050] M08 (Rapid to .050 above finished height of block, coolant on)
    N0282 G81 G98 X-#104 Y-#214 Z1.8 R0+2.020 F#123 S#138 (Drilling port tool at 7/8-14 UNF ports)
    N0283 Y-#213
    N0284 Y-#212
    N0285 Y-#211
    N0286 G54.1 P5 Y#211
    N0287 Y#212
    N0288 Y#213
    N0289 Y#214
    N0290 G80 (Drilling cycle cancel)
    N0291 M5 (Spindle off)
    N0292 M09 (Coolant off)
    N0293 G0 Z0 G43 H0
    N0294 T09 M6 (.440 Reamer Nov 2011)
    N0295 G0 G90 G54.1 P5 X-#104 Y#214 (Rapid to position 1 in X & Y)
    N0296 S#139 M03 (Spindle on clockwise)
    N0297 G43 H09 Z[#102+.050] M08 (Rapid to .050 above material, coolant on)
    N0298 G81 G98 X-#104 Y#214 Z1.0 R0+1.052 F#124 S#139 (Reaming .440 hole at 7/8-14 UNF ports)
    N0299 Y#213
    N0300 Y#212
    N0301 Y#211
    N0302 G54.1 P4 Y-#211
    N0303 Y-#212
    N0304 Y-#213
    N0305 Y-#214
    N0306 G80 (Drilling cycle cancel)
    N0307 M5 (Spindle off)
    N0308 M09 (Coolant off)
    N0309 G0 Z0 G43 H0
    N0310 T10 M6 (Thread mill)
    N0311 G0 G90 G54.1 P4 X-#104 Y-#214 (Rapid to position 1 in X & Y)
    N0312 S#140 M03 (Spindle on clockwise)
    N0313 G43 H10 Z[#102+.050] M08 (Rapid .050 above finished height of block, coolant on)
    N0314 G66 P8003 A#131 E#130 T#142 B#143 C#129 D#127 F#125 U#126 L0 (Macro begin, Thread milling 7/8-14 UNF threads)
    N0315 (VARIABLES)
    N0316 (A = #1 number of teeth on insert or thread mill)
    N0317 (E = #8 pitch of thread)
    N0318 (T = #20 top of threads - z value)
    N0319 (B = #2 bottom of threads - z value)
    N0320 (C = #3 cutter diameter)
    N0321 (D = #7 major diameter of threads)
    N0322 (F = #9 thread milling feedrate)
    N0323 (U = #21 threadmill plunge rate)
    N0324 Y-#214
    N0325 Y-#213
    N0326 Y-#212
    N0327 Y-#211
    N0328 G54.1 P5 Y#211
    N0329 Y#212
    N0330 Y#213
    N0331 Y#214
    N0332 G67 (Macro cancel)
    N0333 G0 G90 Z[#102+.050] (Rapid to .050 above finished height of block)
    N0334 G54.1 P7 X-#107 Y#214 (Rapid to position 1 in X & Y)
    N0335 Z[#101+.050] (Rapid to .050 above material)
    N0336 G66 P8003 A#131 E#130 T#144 B#145 C#129 D#128 F#125 U#126 L0 (Thread milling 1/2-14 NPSF threads)
    N0337 (VARIABLES)
    N0338 (A = #1 number of teeth on insert or thread mill)
    N0339 (E = #8 pitch of thread)
    N0340 (T = #20 top of threads - z value)
    N0341 (B = #2 bottom of threads - z value)
    N0342 (C = #3 cutter diameter)
    N0343 (D = #7 major diameter of threads)
    N0344 (F = #9 thread milling feedrate)
    N0345 (U = #21 threadmill plunge rate)
    N0346 Y#214
    N0347 Y#213
    N0348 Y#212
    N0349 Y#211
    N0350 G54.1 P6 Y-#211
    N0351 Y-#212
    N0352 Y-#213
    N0353 Y-#214
    N0354 G54.1 P8 X#108 Y-#214
    N0355 Y-#213
    N0356 Y-#212
    N0357 Y-#211
    N0358 G54.1 P9 Y#211
    N0359 Y#212
    N0360 Y#213
    N0361 Y#214
    N0362 G67 (Macro cancel)
    N0363 M5 (Spindle off)
    N0364 M09 (Coolant off)
    N0365 G0 Z0 G43 H0
    N0366 T11 M06 (1 inch Chamfer mill)
    N0367 G0 G90 G54.1 P9 X#108 Y#214 (Rapid to position 1 in X & Y)
    N0368 S#141 M03 (Spindle on clockwise)
    N0369 H11 Z[#101+.050] M08 (Rapid to .050 above finished height of block, coolant on)
    N0370 G81 G98 X#108 Y#214 Z#146 R0+2.020 F#132 (Chamfering hole at 1/2-14 NPSF ports)
    N0371 Y#213
    N0372 Y#212
    N0373 Y#211
    N0374 G54.1 P8 Y-#211
    N0375 Y-#212
    N0376 Y-#213
    N0377 Y-#214
    N0378 G54.1 P6 X-#107 Y-#214
    N0379 Y-#213
    N0380 Y-#212
    N0381 Y-#211
    N0382 G54.1 P7 Y#211
    N0383 Y#212
    N0384 Y#213
    N0385 Y#214
    N0386 G80 (Drilling cycle cancel)
    N0387 G0 G90 Z[#102+.050] (Rapid to .050 above finished height of block)
    N0388 G54.1 P5 X-#104 Y#214 (Rapid to position 1 in X & Y)
    N0389 G81 G98 X#108 Y#214 Z#147 R0+2.020 F#132 (Chamfering hole at 1/2-14 NPSF ports)
    N0390 Y#213
    N0391 Y#212
    N0392 Y#211
    N0393 G54.1 P8 Y-#211
    N0394 Y-#212
    N0395 Y-#213
    N0396 Y-#214
    N0397 G54.1 P6 X-#107 Y-#214
    N0398 Y-#213
    N0399 Y-#212
    N0400 Y-#211
    N0401 G54.1 P7 Y#211
    N0402 Y#212
    N0403 Y#213
    N0404 Y#214
    N0405 G80 (Drilling cycle cancel)
    N0406 M5 (Spindle off)
    N0407 M09 (Coolant off)
    N0408 G0 Z0 G43 H0
    N0409 M30
    %

  3. #3
    Join Date
    Feb 2008
    Posts
    586
    Look for O's that are supposed to be zeroes.
    Look for parentheses that don't have a mate (like N0185 and N0186 above)
    Your program should start with an O####
    Percent signs will tell the "reader" to stop reading at the end of the file. The one at the beginning is OK, though.

Similar Threads

  1. Uploading to cnc mill
    By bandya03 in forum G-Code Programing
    Replies: 1
    Last Post: 12-16-2010, 04:39 AM
  2. Replies: 5
    Last Post: 12-14-2007, 04:38 AM
  3. uploading problem
    By stubis in forum Tutorials
    Replies: 1
    Last Post: 05-10-2006, 06:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •