587,729 active members*
3,303 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Fadal > Macro commands not working over DNC
Results 1 to 20 of 40

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    3735

    Re: Macro commands not working over DNC

    Try V1=0, etc without the #.
    I just had a look in old Bosch manuals, and it requires all the variables, etc to initialized before executable code, and this I remember from using DNC stuff.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  2. #2
    Join Date
    Jun 2012
    Posts
    516

    Re: Macro commands not working over DNC

    Quote Originally Posted by neilw20 View Post
    Try V1=0, etc without the #.
    I just had a look in old Bosch manuals, and it requires all the variables, etc to initialized before executable code, and this I remember from using DNC stuff.
    I have to admit that I have not tried to run the macro statements without the # sign. the idea freaks me out because if you were to do for example, a math operation like V1=V2*V3, it should make a comment out of the V3 portion.

    I will try this immediately though - in a sense, declaring the variables at the start.

  3. #3
    Join Date
    Jun 2012
    Posts
    516

    Re: Macro commands not working over DNC

    Quote Originally Posted by mflux_gamblej View Post
    I have to admit that I have not tried to run the macro statements without the # sign. the idea freaks me out because if you were to do for example, a math operation like V1=V2*V3, it should make a comment out of the V3 portion.

    I will try this immediately though - in a sense, declaring the variables at the start.
    I tried some different things:

    V1=0

    #V1=0

    N40 #V1=0

    N40 V1=0

    I tried all these kinds of calls with the SETP parameter for line numbers in order set to On, and Off.

    the lines without # stop the program and say 'ERROR'
    the lines with # but with no line numbers stop the program and say 'ERROR'
    the lines with # but with line numbers just get skipped entirely.

    I also learned something interesting, when you have the SETP parameter for lines in order set to off / not in order, when you load a program into the CNC memory (not DNC, just a transfer) it adds line numbers, even though there may already be line numbers.

    I found that any line, when run from memory, that has two line numbers e.g. N10 N310 #V1=0 (or any other macro statement) gets ignored by the control, but lines with two line numbers e.g. N10 N320 G0 X0, get executed. interesting.

    problem still not solved tho

Similar Threads

  1. Replies: 2
    Last Post: 12-19-2012, 01:28 PM
  2. Replies: 3
    Last Post: 02-13-2012, 07:20 PM
  3. Dos Commands
    By LYN BYRD in forum Milltronics
    Replies: 12
    Last Post: 08-01-2011, 04:21 PM
  4. G2 and G3 Commands
    By Bohemund in forum G-Code Programing
    Replies: 19
    Last Post: 05-28-2007, 03:12 PM
  5. EMC & the G28/G30 Home commands
    By Javelin276 in forum LinuxCNC (formerly EMC2)
    Replies: 1
    Last Post: 07-18-2005, 09:13 PM

Tags for this Thread

Posting Permissions

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