Sprutcam post to output G2 G3 as non modal


Results 1 to 3 of 3

Thread: Sprutcam post to output G2 G3 as non modal

  1. #1
    Member
    Join Date
    Jun 2009
    Location
    Serbia
    Posts
    33
    Downloads
    0
    Uploads
    0

    Default Sprutcam post to output G2 G3 as non modal

    We have one italian machine PEAR and its control requires G2 and G3 codes to be output on every line which need it to be in effect.
    So it treats it as non modal , and the coordinate move on next line interprets as G1 .

    Is there a way to edit the postprocessor for v7 or later so it outputs G2 and G3 on every consecutive line needed?

    Thanks!

    Similar Threads:


  2. #2
    Member
    Join Date
    Aug 2013
    Posts
    0
    Downloads
    0
    Uploads
    0

    Default Re: Sprutcam post to output G2 G3 as non modal

    program Circle
    if cld[4] > 0 then INTERP_ = 3 else INTERP_ = 2 ! G3/G2

    INTERP@=Maxreal ! Paste this command here

    XC_ = cld[1] - XT_ ! I,J,K in increments always
    YC_ = cld[2] - YT_
    ZC_ = cld[3] - ZT_
    X = cld[5] ! X,Y,Z in absolutes
    Y = cld[6]
    Z = cld[7]
    if ABS_INC = 91 then begin ! X,Y,Z in increments
    X = X - XT_
    Y = Y - YT_
    Z = Z - ZT_
    end
    XC_@ = MaxReal; YC_@ = MaxReal; ZC_@ = MaxReal
    X@ = MaxReal; Y@ = MaxReal; Z@ = MaxReal
    if Plane = 17 then begin ZC_@=ZC_; Z@=Z end
    if Plane = 18 then begin YC_@=YC_; Y@=Y end
    if Plane = 19 then begin XC_@=XC_; X@=X end
    call OutBl ! output to NC block
    XT_ = cld[5] ! save current coordinates
    YT_ = cld[6]
    ZT_ = cld[7]
    end



  3. #3
    Member
    Join Date
    Aug 2013
    Posts
    0
    Downloads
    0
    Uploads
    0

    Default Re: Sprutcam post to output G2 G3 as non modal

    program Circle
    if cld[4] > 0 then INTERP_ = 3 else INTERP_ = 2 ! G3/G2

    INTERP@=Maxreal ! Paste this command here

    XC_ = cld[1] - XT_ ! I,J,K in increments always
    YC_ = cld[2] - YT_
    ZC_ = cld[3] - ZT_
    X = cld[5] ! X,Y,Z in absolutes
    Y = cld[6]
    Z = cld[7]
    if ABS_INC = 91 then begin ! X,Y,Z in increments
    X = X - XT_
    Y = Y - YT_
    Z = Z - ZT_
    end
    XC_@ = MaxReal; YC_@ = MaxReal; ZC_@ = MaxReal
    X@ = MaxReal; Y@ = MaxReal; Z@ = MaxReal
    if Plane = 17 then begin ZC_@=ZC_; Z@=Z end
    if Plane = 18 then begin YC_@=YC_; Y@=Y end
    if Plane = 19 then begin XC_@=XC_; X@=X end
    call OutBl ! output to NC block
    XT_ = cld[5] ! save current coordinates
    YT_ = cld[6]
    ZT_ = cld[7]
    end



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Sprutcam post to output G2 G3 as non modal

Sprutcam post to output G2 G3 as non modal