![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Bear with me, I am very new to using industrial machines so im sure my error is very obvious. Pasted below is the beginning part of my ~2000 line program, upon trying to run this in single block mode I get a syntax error, can you spot it? (RhinoCAM posted this code, my Fanuc 21m controller adds a semicolon character at the end of each line) O0001 % N0005G0 G91 Z0 N0010G0 G90 G17 G20 G40 G80 G90 G94 G64 N0015G0 G90 G54 X0 Y0 (2 1/2 Axis Facing) N0020 T3 M6 N0025 M8 N0030 G90 G1 X-0.8875 Y0.6125 F200. S5000 M3 N0035 G90 G43 Z0.25 H0 N0040 Z-0.0625 F60. N0045 Y2.75 N0050 X-0.8753 Y2.8744 N0055 X-0.839 Y2.994 N0060 X-0.7801 Y3.1042 N0065 X-0.7008 Y3.2008 N0070 X-0.6042 Y3.2801 N0075 X-0.494 Y3.339 N0080 X-0.3744 Y3.3753 N0085 X-0.25 Y3.3875 N0090 X3.25
__________________ Rockcliff PE/Aluminum Router > 4'x8' CNC Router/Plasma > Manual DRO/CNC X2 > 4 Axis Syil SX3 and an Emco PC Mill 125 |
|
#5
| ||||
| ||||
| Error is: 9 N 0 SYNTAX ERROR (i have changed H0 to H3, what does this do?)
__________________ Rockcliff PE/Aluminum Router > 4'x8' CNC Router/Plasma > Manual DRO/CNC X2 > 4 Axis Syil SX3 and an Emco PC Mill 125 |
| Sponsored Links |
|
#6
| |||
| |||
| dcoupar's other comment looks like a good change as well. Which line is it stopping on? You should be able to look at the line after the error pops up. If you have a problem with that, try using single block until you get the error. That should narrow it down greatly. Edit: Doh, your second line is % that usually marks the beginning and end of a g-code file. |
|
#9
| ||||
| ||||
it is used with communication software for start and end of transmission This is the only source for the syntax error. It is to be the only code on #1 line ( some controls use it at the end of the filename string on the 1st line--Okuma's ) or deleted, it should also be the last character in the file All other items mentioned will not cause the machine to not cycle start |
|
#10
| ||||
| ||||
| Sorry to nitpick But having % mid way through the program doesn't cause the Syntax error. Not having the program number after the % at the beginning of the program will cause an error. When the data is sent over RS232 it uses the O program number after the % to name it's self. |
| Sponsored Links |
|
#12
| |||
| |||
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto Tool Zero VBA Code gives Syntax Error | kiltjim | Mach Wizards, Macros, & Addons | 2 | 02-02-2009 05:32 PM |
| Need Help!- Fanuc Error code | Racecarengineer | General CNC (Mill and Lathe) Control Software (NC) | 1 | 06-12-2008 12:46 PM |
| Fanuc 10M Error Code | WallStreet | General CNC (Mill and Lathe) Control Software (NC) | 1 | 10-12-2007 03:41 PM |
| Error code help on Fanuc | digger1969 | Fanuc | 8 | 03-29-2007 04:38 AM |
| syntax error | pyroracing85 | G-Code Programing | 9 | 01-27-2005 07:09 PM |