1. Chú ý: Các bạn nên tham khảo Nội quy trước khi viết bài (click vào liên kết bên dưới).
    * Nội quy và Thông báo diễn đàn CNCProVN.com
    * Nếu bạn thấy hứng thú với bài viết. Hãy dùng chức năng Share to facebook để chia sẻ bài viết lên facebook.

          
Kết quả 1 đến 20 của 20

Chủ đề: [Khoe - Chia sẻ] Auto Z Marco Mach3

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Thợ bậc 5
    Ngày tham gia
    Apr 2015
    Bài viết
    248
    Cám ơn
    65
    Được cám ơn 266 lần
           ở 50 bài viết
    đây là marco mình viết cho mach3

    CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
    CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
    CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

    Code "G91 G28 Z0."

    While IsMoving() 'wait while it happens
    Wend

    Code " G91 G28 A0 C0"

    While IsMoving() 'wait while it happens
    Wend


    Code "G54 G90 G0 X80.347 Y-29.898"

    While IsMoving() 'wait while it happens
    Wend

    If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
    DoOEMButton (1010) 'zero the Z axis so the probe move will start from here

    While IsMoving() 'wait while it happens
    Wend

    Code "G4 P1" ' this delay gives me time to get from computer to hold probe in place
    Code "G90 G31Z-200. F2500" 'probing move, can set the feed rate here as well as how far to move

    While IsMoving() 'wait while it happens
    Wend

    ZProbePos = GetVar(2002) 'get the exact point the probe was hit
    Code "G4 P0.5" 'Pause for Dro to update.
    Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun

    While IsMoving() 'wait while it happens
    Wend

    Call SetDro (2, 60.35) ' PROBE THICKNESS
    Code "G91 G1 Z5.F2500"

    While IsMoving() 'wait while it happens
    Wend

    DoOEMButton (1010) 'zero the Z axis so the probe move will start from here

    While IsMoving() 'wait while it happens
    Wend

    Code "G4 P1" ' this delay gives me time to get from computer to hold probe in place
    Code "G90 G31Z-10. F100" 'probing move, can set the feed rate here as well as how far to move

    While IsMoving() 'wait while it happens
    Wend

    ZProbePos = GetVar(2002) 'get the exact point the probe was hit
    Code "G4 P0.5" 'Pause for Dro to update.
    Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun

    While IsMoving ()
    Wend

    Call SetDro (2, 60.473) ' PROBE THICKNESS
    Code "G91 G1 Z" & 99.527 & "F2500"

    While IsMoving ()
    Wend

    Code "G90 G94 G54 "

    While IsMoving ()
    Wend

    Else
    End If
    Hoàng văn Mạnh Dt :0972284364

  2. Có 4 thành viên đã cám ơn hoangmanh cho bài viết hữu ích này:


Các Chủ đề tương tự

  1. Chia sẻ mẫu jd pain !
    Bởi donglinh1992 trong diễn đàn Hình ảnh, art, cad, cam v.v...
    Trả lời: 11
    Bài viết cuối: 18-02-2019, 10:58:13 AM
  2. Chia sẻ bản quyền của Mach3
    Bởi plchmikeyword trong diễn đàn Phần mềm CNC control
    Trả lời: 82
    Bài viết cuối: 25-09-2017, 08:37:14 AM
  3. Planet USB CNC - Chia sẻ schematic Mk1 và DIY mod
    Bởi plchmikeyword trong diễn đàn Phần mềm CNC control
    Trả lời: 2
    Bài viết cuối: 04-03-2017, 09:00:22 PM
  4. Chia sẻ trang web cơ khí
    Bởi katerman trong diễn đàn Trao đổi kinh nghiệm
    Trả lời: 2
    Bài viết cuối: 24-02-2016, 09:22:24 AM
  5. Chia sẻ mẫu bmp
    Bởi hoang.nvn trong diễn đàn Phần mềm ART
    Trả lời: 24
    Bài viết cuối: 02-11-2014, 08:43:42 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •