I'm looking for edge/corner finder script for Chinese controller


Results 1 to 4 of 4

Thread: I'm looking for edge/corner finder script for Chinese controller

  1. #1
    B77's Avatar
    Join Date
    Nov 2019
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default I'm looking for edge/corner finder script for Chinese controller

    Hi Everybody,

    I'm looking for edge/corner finder (but I would be over the Moon with a center finder) macro/script for my Chinese engraving machine. Of course, its controller is Chinese as well (BL-USBMach3).

    I have tried macros from youtube videos unfortunately, they didn't work.
    I have bought Gerry 2010 screenset, it didn't work even with his Chinese macros.

    However, the existing HiddenScript.m1s for the auto tool height works perfectly, see here and attached as well.

    'chengdu xhc tec. probe z surface macro
    FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO
    ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO
    GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height
    ZNew = ZCurrent - 300 'probe down 20 mm

    Code "G90F200" 'slow feed rate to 100 MM/MIN
    SetOemDRO(818,200)
    Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate
    Code "G31 Z" &ZNew
    While IsMoving()
    Sleep(10)
    Wend
    Call SetDro (2,GageH) 'DRO(2)=Z DRO

    FinalMove = GageH + 10
    Code "G0 Z" &FinalMove
    Code "F" &FeedCurrent 'restore starting feed rate
    SetOemDRO(818,FeedCurrent)




    Could someone help me please to modify this script or write a new based on this for the edge/corner/center finding?


    Thank you in advance,
    Kind Regards,
    Robert



  2. #2
    Member
    Join Date
    Sep 2005
    Location
    United States
    Posts
    1740
    Downloads
    0
    Uploads
    0

    Default Re: I'm looking for edge/corner finder script for Chinese controller

    Robert is your control software Mach3 or Mach4? Otherwise this is in the wrong forum.

    1000x750 Workbee CNC - Mach4 - PMDX USB - Windows 10 Pro


  3. #3
    B77's Avatar
    Join Date
    Nov 2019
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    Hi wmgeorge,

    Sorry, I have forgotten to mention, my control software is Mach3 of course.



  4. #4
    Member eabrust's Avatar
    Join Date
    Aug 2007
    Location
    United States
    Posts
    18
    Downloads
    0
    Uploads
    0

    Default Re: I'm looking for edge/corner finder script for Chinese controller

    Quote Originally Posted by B77 View Post
    Hi wmgeorge,

    Sorry, I have forgotten to mention, my control software is Mach3 of course.


    I think you have found the hard way that most of the cheap chinese controllers simply will NOT do a G31 probe command in X and Y axes properly, the only thing they properly put in the firmware is G31 in Z for tool touchoff.

    No amount of macro scripting will make them work for doing edge touchoff, the problem is the controller itself.


    regards,
    Eric



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

I'm looking for edge/corner finder script for Chinese controller

I'm looking for edge/corner finder script for Chinese controller