I have no idea why, but it seems a couple of phpBB forums I'm on refuse to send me email on thread responses.....argh. I've even tried 3 different email accounts from different hosts....not even going to junk.
Anyway, thanks for all the responses. I have plenty of inputs. So that's why I was confused as to why I'd have to switch a probe input with an output. But the G31 is the problem with a speed change. Ok. So maybe like Erik suggested a slow Z jog first or even my second suggestion below with two G31 moves (laser switch behind the tool setter, but this would use a little extra time).
Maybe I should break down the sequence better for explanation.
- Code: Select all
Setup tool change location in setup.
Press tool height set button.
Macro will go to tool change location and ask tool number.
Tool number is set as current tool.
Asks to start probe for tool height.
Starts probe cycle at fast probe speed
Input 3 (laser switch) trips
Continues probe at slow speed
Input 2 (tool setter) trips
Back off set distance
Second probe at 10mm/min for accurate probe trip
Input 2 (tool setter) trips
write offset to tool number (specified in line 3) tool table
Return to safe Z tool change position
The other option that I had considered, if the above was an issue, was to place the laser switch behind the tool setter (offset by 20mm -Y position) as a bit of a safety. Then just get the rough Z trip point and move back over the tool setter but using a starting Z height that was measured from the laser. (which a few mm safety margin).
- Code: Select all
Setup tool change location in setup.
Press tool height set button.
Macro will go to tool change location and ask tool number.
Tool number is set as current tool.
Asks to start probe for tool height.
Move -Y 20mm to laser switch position
Starts probe cycle at fast probe speed
Input 3 (laser switch) trips
Store Z offset value
Move to tool change position using the new stored Z coordinate +5mm
Continues probe at slow speed
Input 2 (tool setter) trips
Back off set distance
Second probe at 10mm/min for accurate probe trip
Input 2 (tool setter) trips
write offset to tool number (specified in line 3) tool table
Return to safe Z tool change position
Thanks for any input. I would not use this macro with any tools that needed to be manually jogged (like a flycutter or facemill), as I realize that wouldn't work out well. It's just for setting all my normal end mills and drills (especially drills for quicker change).