584,814 active members*
5,393 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > How can I simplify variable knot..
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2007
    Posts
    72

    How can I simplify variable knot..

    Any suggestion on how I can make this work in 1 sequence.....
    ....
    N210 IF [V9 GT 1] GOTO N240
    N220 LRT=DL+.06
    ....
    ...is there a way to set a variable based on a condition?
    ....
    N210 IF [V9 GT 1] LRT=DL+.06
    ....

    Cheers!
    I'm just a butcher masquerading as a machinist

  2. #2
    Join Date
    Jun 2008
    Posts
    372
    I would do the following
    IF [V9 GT 1] NAAA
    GOTO N100
    NAAA LRT=DL+.06
    N100

    BLAH BLAH

  3. #3
    Join Date
    Jul 2007
    Posts
    72
    I am looking to reduce the overall number of lines/characters from the prog.

    here is a sample of how the prog is currently configured...
    N02
    IF [V9 GT 1] GOTO N04
    LRT=DL+.06
    IF [V9 EQ 1] GOTO N03
    LRT=DL+V16
    N03
    V9=LRT
    N04
    LRT=V9
    this is how I would like it to look
    N02
    IF [V9 NE 0 OR 1] N03
    IF [V9 EQ 0] LRT=DL+.06
    IF [V9 EQ 1] LRT=DL+V16
    V9=LRT
    N03
    LRT=V9
    is it possible, I dont know if or how the "OR" statement works
    also the "if [******] then x=y" statement is a source of problems also

    suggestions and advice appreciated

    Cheers!
    I'm just a butcher masquerading as a machinist

  4. #4
    Join Date
    Mar 2006
    Posts
    45
    Okuma's IF logic is coded for a jump following the logic statement. budgieW's example is the way I would do it.

    Kev

  5. #5
    Join Date
    Apr 2009
    Posts
    1262
    You can compress slightly by combining line numbers with variables being set. Multiple variables can be set on the same line also if need be.

    Your OR statement will work if you add more brackets and spaces can be eliminated before and after deliminators:

    IF[[V9 NE 0]OR 1]N03

    Hope this helps,

Similar Threads

  1. Moving Knot
    By MunchyMonster in forum DIY CNC Router Table Machines
    Replies: 3
    Last Post: 11-05-2010, 11:52 PM
  2. simplify my program PLEASE!
    By jay_dizzle in forum Fanuc
    Replies: 3
    Last Post: 10-05-2010, 07:51 PM
  3. Simplify Body
    By Luis Franco in forum UG NX
    Replies: 1
    Last Post: 10-26-2009, 03:09 PM
  4. trying to simplify my program
    By johnpiero in forum G-Code Programing
    Replies: 4
    Last Post: 11-18-2008, 01:56 AM

Posting Permissions

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