603,371 active members*
3,954 visitors online*
Register for free
Login
Page 12 of 29 2101112131422
Results 221 to 240 of 563
  1. #221
    Join Date
    May 2006
    Posts
    1469
    Sage

    Need to have the zero macro in the macro folder.

    Copy the macro to a text (notepad) file and call it M615.m1s or some number not in use. Place this in the macro folder with the name of your profile (Mach3mill)

    Then use the number 615 in the shuttle config. It is that easy.

    Also what you should do is use this code for the on screen button. Code "M615"

    Greg

  2. #222
    Join Date
    Jul 2008
    Posts
    58
    Ok so following your instructions and for the benefit of others:

    I found the macro for the on-screen button tool setter was called
    "hidenscript.m1s" and is kept in the c:\mach3\macros\mach3mill directory.
    I found that out by editing the on screen button (operator\edit button script). The name is at the top the editing window.

    I copied that macro file and renamed the copy M620.m1s (noting that that macro file number 620 was not used.)

    I went into the config screen in mach selected "config plugins" and selected the shuttle pro for configuration. I found the button I wanted to program and assigned it "macro #1" from the pulldown.

    In the box for macro#1 on the same screen (right side middle) I entered 620 and pressed ok.

    Bob's your uncle as they say. The chosen button on the shuttle pro now operates the tool setter just like the one on the screen.


    Man, that was easy.

    Thanks

    Sage

  3. #223
    Join Date
    Mar 2006
    Posts
    65
    Hello, have been following this for a while and wanted to put my thoughts in for those that might want another option.
    I chose to use the button edit and asign my code to the unused tool zero button. This was not as pretty as some of the screen edit types but not as cumbersome as using the screen 4 utility... ( more time spent with actually using my machine) , John

  4. #224
    Join Date
    Nov 2008
    Posts
    2

    Quote Originally Posted by dsage View Post
    I would have to agree (and have already stated) that the macro needs to save the current conditions for those Items it intends to use, set them to appropriate values, execute it's function and then put the conditions back where it found them. I do a lot of micro processor programming and this is standard programming procedure for an interrupt procedure (to push and pop the stack), which is essentially what you have here

    I agree it might have gotten screwed up by killing a program mid stream. But who's to say the tool setter can't be used after stopping a program. I do a lot of dry runs on programs with the cutter retracted to be sure they work properly for the first (of many passes) then stop the program and reset the axis to start again. I don't think that's unreasonable.

    Maybe someone can suggest a way to press a button to reset all of stuff to safe values.

    I guess I could put some pre-amble at the beginning of every program to do that initializing, then have an M1 to pause the program for a manual Z-axis calibration before continuing.


    Sage

    Hi
    The powerful estimating tool is designed specifically to meet the needs of estimators in the structural steelwork industry.


    http://www.acecadsoftware.com/steel_estimating

  5. #225
    Join Date
    Dec 2006
    Posts
    10
    I got the touch plate working tonight, after some initial problems. At first I had to hard-code the plate thickness in, to get it to work. Then I re-read all the posts on this thread, and found the solution in post 134, where Rod explained about hitting enter to make the DRO setting stick.

    So, many thanks to Greg for the screen, and the explanations in various posts. Also thanks to Rod, who saved me a quantity of hair.

    Now looking on ebay for a laser cross pointer, so I can do Greg's x y zero trick.

  6. #226
    Join Date
    Nov 2003
    Posts
    244
    ...He who makes no mistakes makes nothing! ...
    Tom

  7. #227
    Join Date
    May 2006
    Posts
    1469
    I got this one, http://www.dealextreme.com/details.dx/sku.5942

    It focused to a good line. Though I do think that it is a bit hit and miss at this price point.

    Also bought a more expensive one that was useless. Poor focus.

    Greg

  8. #228
    Join Date
    Dec 2006
    Posts
    10
    Thanks Greg. I picked that up from one of your earlier posts, and odered a couple of them.

    Chris

  9. #229
    Join Date
    Jul 2008
    Posts
    58
    I think I stumbled on the problem with the tool setter jamming itself into the work piece instead of retracting.
    I was doing some moving around manually and had set G91 using the manual code entry line. I used the tool setter and it jammed itself into the part. I put it back to G90 and it was fine again.
    I guess it makes sense this would screw it up so I'm thinking I should change the tool setter button code to include the statement:

    Code "G90"

    at the beginning.

    Granted this will screw up your operation if you needed G91 set but I don't usually use G91 unless I'm playing around manually and any good code should set it properly.

    So the question is: Will this work? I haven't done it yet.

    I haven't ruled out something else also causing this problem but at least this one I think I've proven (unless I got mis-led somehow)

    Sage

  10. #230
    Join Date
    Feb 2007
    Posts
    27

    Help

    It is clear that some thing is wrong. I can not get my zero touch plate to work correctly.

    First let me explain what I am doing. I am not using the Mach3 screens. I have a touch plate with a small LED light attached. When things are working correctly, I will test that I have a complete circuit by touch the plate to the bit. If the light turns on, I will know that I can run the macro with out the fear of driving the bit through the table. I will use my Shuttle Pro to run the macro.

    I have used the code off of this thread. I even got some code from the Mach3 forum but that did not work either. When I touch the plate, I see on the Mach3 Diagnostic page that I have a closed circuit. When I run the macro the bit touches the plate and the light lights but the router continues to drive down. It is not stopping. I think you should be able to hold the plate in the air and touch the bit once the macro is running and it should work.

    How do I get this to work? Do you need additional information? Do I need to add a pull up resistor?

    Thanks for helping.

  11. #231
    Join Date
    Dec 2004
    Posts
    1137
    Guys this might have already been answered/settled but it's been a while since I visited this thread so apologies if so. The CNC4PC C10 BOB that I use has 10Kohm pull-down resistors on all pins. The touch probe works by connecting the input to ground (active low). Since the pin is already pulled down to low, one simply needs to pull up the input pin with a smaller resistor creating a voltage divider. For my touch probe I uses a 1Kohm resistor from Vcc (5V) to the input pin. I also found it necessary to add some bypass capacitors (.1uF tantalums) due to noise.

    Edit: By adding the 1Kohm resistor in series with the 10Kohm resistor there is a constant current of .5mA and the input pin will see 4.5V (ideally). When the probe touches the grounded plate 5/1000 or 5mA will flow through the 1Kohm resistor.

    The photo show my probe box (an RS project box and a plug in connector from the junk bin). The gray wire at the top of the photo goes to the DB9 serial connector and ultimately to the input pins and Vcc and GND pins on the C10). The bigger yellow and black wires go to my probe (used some wires off a dead PC power supply but there in no real need to use this big of a gauge, 22AWG is fine). The servo connector connects to my photo limit switch (seen on the right hand of the photo. (I can post the schematic/brd/and gcode if you would like it). Like I said, to prevent noise from giving false triggers I added a bypass cap both across the Vcc and GND, and from the probe in to ground (effectively this places it parallel to the 10K pull-down resistor).

    FWIW,
    Jay
    Attached Thumbnails Attached Thumbnails probe_bo_640.jpg  

  12. #232
    Join Date
    Feb 2007
    Posts
    27

    Probe Input on Mach

    My problem was resolved when I used the Probe input in Ports and Pins configuration. Now, as soon as the bit touches the plate it waits a short period and retracts. I had the wrong input set up.

  13. #233
    Join Date
    Mar 2003
    Posts
    35494
    I'm gonna make this thread sticky.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  14. #234
    Join Date
    Feb 2008
    Posts
    154
    Instead of the LED being assigned to probe (I assume 825 is probe). I want to assign it to OEM trigger in the mach 3 ports and pins config. I have my digital probe already set up and the high low settings are different to the z plate.

    How do I do this?

  15. #235
    Join Date
    Oct 2005
    Posts
    7
    Question:
    Rather creating a UserDRO(1152), couldn't you use OEMDRO(1001) which is already on the offsets page (ie the Gage Block Height DRO) ?

  16. #236
    Join Date
    Jul 2004
    Posts
    442
    Mica,
    I think that will work and I think a lot of this probe interface could be integrated in that page.
    Ozzie

  17. #237
    I just read this thread the past few days, and decided to make one since I am making lots of took changes in current projects.

    It works fine with mach3, and my C11 BOB...BUT.....it is not accurate. It seems to vary about .030" each time. I did have to use 2 - 4.7k resistors to get it work with my mill setup.

    any Ideas?
    Donald

  18. #238
    Join Date
    Feb 2007
    Posts
    27
    Donald,

    I had some trouble with my Zero Touch Plate macro also when I had the Z move upward after the bit touched the plate. I found that when it was an inch, it was not accurate so I changed the upward distance to .8 of an inch and it has been accurate.

    What distance do you have it move upward?

  19. #239
    Quote Originally Posted by sailfl View Post
    Donald,

    I had some trouble with my Zero Touch Plate macro also when I had the Z move upward after the bit touched the plate. I found that when it was an inch, it was not accurate so I changed the upward distance to .8 of an inch and it has been accurate.

    What distance do you have it move upward?
    I have it set to retract a 1/4" only.
    Donald

  20. #240
    Join Date
    May 2006
    Posts
    1469
    Whether retract distance is set to 1mm or 200mm or 0.1" or 10" should make no difference at all to the accuracy.

    All the height setting is done and finished before it retracts.

    If you are adjusting the retract height to get accuracy then you have some other issues going on.

    Better to track them down.

    Greg

Page 12 of 29 2101112131422

Similar Threads

  1. Replies: 1
    Last Post: 03-04-2014, 01:08 AM
  2. Auto tool setter / touch plate ?
    By chrisnis in forum Machines running Mach Software
    Replies: 2
    Last Post: 04-06-2013, 12:24 AM
  3. Tool Setter Macro for M-V60C and Metrol Setter
    By mitshack in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 02-02-2013, 12:08 PM
  4. Auto Tool Setter Button IH taylored !
    By Cruiser in forum Charter Oak Automation Support Forum
    Replies: 7
    Last Post: 08-06-2009, 03:25 PM
  5. Tool setter macro for M-V60C and Metrol setter
    By mitshack in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 10-06-2008, 02:38 PM

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
  •