Results 1 to 10 of 10

Thread: Illegal Expression in line

  1. #1
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0

    Illegal Expression in line

    If I On FADAL 4020 write this program:

    N1 G21
    N2 G1 X-50 Y50 Z-50 F2000
    N3 X50 Y-50 Z0
    N4 #GOTO N2
    N5 M2

    I have the Error message: "ILLEGAL EXPRESSION IN LINE".

    What is wrong?


  2. #2
    Registered carbidecraters's Avatar
    Join Date
    Apr 2005
    Location
    USA
    Posts
    1045
    Downloads
    0
    Uploads
    0
    That is because you are using BASIC programming language from the late 70s on a Fadal controller. #Goto N2 is not recognized as a valid expression. Check your Fadal manual and use the L number designation for repeat subroutines.
    We have had good luck with our Fadals milling mostly soft steel and aluminum up to 5 axis. We are always looking for spare parts :) If you have a broken down Fadal give a shout.


  3. #3
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0
    Instructions which have been on the machine (PDF files), describing how to program in such a way...

    How to do an infinite loop above using the L word?

    On the computer of the machine, instructions are put equal to this:
    Sect_18_-_Macros.pdf


  4. #4
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4519
    Downloads
    0
    Uploads
    0
    Are you sure you typed in the letter O and not the number 0 in the machine?
    http://www.kirkcon.com/


  • #5
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    64
    Downloads
    0
    Uploads
    0
    Try using M99P2 in place of your GOTO call.


  • #6
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by txcncman View Post
    Are you sure you typed in the letter O and not the number 0 in the machine?
    Yes, I am sure!


  • #7
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Dyad1 View Post
    Try using M99P2 in place of your GOTO call.
    I tried to do so. Such works, thanks!


  • #8
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0
    How can I then use "IF" comand?

    For Example:
    # IF V1 > V2 THEN GOTO :N5

    Controller is FADAL CNC 32MP. The controller has commands translated into German. Are maybe command by the programming in the German Language also?
    Last edited by hartan; 01-29-2012 at 11:38 AM.


  • #9
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0
    Is it possible on my Machine working with "If" Comand?

    Is that maybe impossible?


  • #10
    Registered
    Join Date
    Jun 2009
    Location
    Slovenija
    Posts
    60
    Downloads
    0
    Uploads
    0
    Whoever?

    "If" word on this mashine is possible?


  • Similar Threads

    1. Need Help!- 065 Illegal command in G71-G73
      By jdgromi in forum Fanuc
      Replies: 4
      Last Post: 12-15-2008, 02:45 PM
    2. Need Help!- 032 illegal offset value in G10
      By mr-seiki in forum Mori Seiki lathes
      Replies: 7
      Last Post: 10-15-2008, 03:11 PM
    3. SHOWDOWN! - Adobe Dreamweaver VS Ms Expression Web ?
      By thkoutsidthebox in forum CNCzone Club House
      Replies: 9
      Last Post: 01-21-2008, 09:53 AM
    4. Replies: 0
      Last Post: 09-12-2007, 02:08 PM
    5. Mazak Expression
      By iNk in forum Mazak, Mitsubishi, Mazatrol
      Replies: 1
      Last Post: 01-16-2006, 11:01 PM

    Posting Permissions



    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.