macro
Close
Login to Your Account
Results 1 to 2 of 2

Thread: macro

  1. #1
    Join Date
    Mar 2018
    Country
    INDIA
    Posts
    1
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    0

    Default macro

    hi let me know any error in this program. it's working but when #26 value reached at 1.6 program ended. so I get the depth 1.5 only. please help me...
    #21=.1
    #26=.1
    WHILE[#26LE1.6]DO1
    G90G0X-22.5Y20.5
    G90G01Z-#26F#23
    G90G01X21.
    Y17.75
    X-21.
    Y15.
    X21.
    Y12.25
    X-21.
    Y9.5
    X21.
    Y6.75
    X-21.
    Y4.
    X21.
    Y3.2
    X-22.5
    #26=[#26+#21]
    END1

  2. #2
    Join Date
    Sep 2010
    Location
    Victoria Australia
    Posts
    3,112
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    1216

    Default

    Quote Originally Posted by RAJIL View Post
    hi let me know any error in this program. it's working but when #26 value reached at 1.6 program ended. so I get the depth 1.5 only. please help me...
    #21=.1
    #26=.1
    WHILE[#26LE1.6]DO1
    G90G0X-22.5Y20.5
    G90G01Z-#26F#23
    G90G01X21.
    Y17.75
    X-21.
    Y15.
    X21.
    Y12.25
    X-21.
    Y9.5
    X21.
    Y6.75
    X-21.
    Y4.
    X21.
    Y3.2
    X-22.5
    #26=[#26+#21]
    END1
    Hello RAJIL,
    Try the following:

    #1 = 0 (Z START LEVEL)
    #2 = -0.1 (Z CUT IN AMOUNT)
    #26 = -1.6 (Z FINAL)

    WHILE[#1 GT #26]DO1
    #1 = #1 + #2
    IF[#1 LT #26] #1 = #26 (STOP OVER CUT IN Z)
    G90 G0 X-22.5 Y20.5
    G01 Z#1 F#23
    X21.
    Y17.75
    X-21.
    Y15.
    X21.
    Y12.25
    X-21.
    Y9.5
    X21.
    Y6.75
    X-21.
    Y4.
    X21.
    Y3.2
    X-22.5
    END1

    Regards,

    Bill
    Last edited by angelw; 03-09-2018 at 04:20 AM.


Tags for this Thread

Bookmarks

Posting Permissions

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