CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-05-2008, 11:51 PM
CanSir's Avatar  
Join Date: Apr 2006
Location: Canada
Posts: 87
CanSir is on a distinguished road
Question Touch-off plate for CNC router?

I've been playing with EMC2 while waiting for my CNC parts to arrive so I'm very new to EMC2, but from the sounds of it, it is very customizable. One of the cool add-ons I've come across for a CNC router is a touch off plate to accurately adjust the z height for the current tool bit.

I can find information on using a touch-off plate with Mach3 and how to add a custom screen for that application, but I haven't seen anything specific on how to accomplish the same thing using EMC2. The closest I've come across is adding probe functionality to EMC2.

Has anyone configured/customized EMC2 to use a touch-off plate? Care to share how it's done?

Regards,

Dean.
Reply With Quote

  #2   Ban this user!
Old 08-06-2008, 08:20 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

The probe is what you want..

There is a sample g-code program showing how to set tool lengths.

http://cvs.linuxcnc.org/cvs/emc2/nc_...ngth-probe.ngc

I have used this for making circuit boards. Once the first tool length is known - the rest are referenced from that.

(I use a microswitch)

sam
Reply With Quote

  #3   Ban this user!
Old 08-07-2008, 12:16 PM
CanSir's Avatar  
Join Date: Apr 2006
Location: Canada
Posts: 87
CanSir is on a distinguished road

Thanks for the link! It's going to take me a little while to wrap my head around the g-codes and whatnot, but it does look like it'll do what I was asking.
Reply With Quote

  #4   Ban this user!
Old 08-08-2008, 04:49 AM
CanSir's Avatar  
Join Date: Apr 2006
Location: Canada
Posts: 87
CanSir is on a distinguished road

I've been looking over that code and I'm starting to understand it, but the implementation of it still leaves me puzzled. I use the AXIS interface and I can only see two ways to implement that touch-off gcode. One way would be to type in those gcodes line by line on the MDI interface and the other would be, even before launching EMC2, to do a search on the G-code file and insert that code snippet after every toolchange command. Is there a cleaner way?

I was envisioning the following:
I secure my workpiece to the table
I lay my touch-pad (the thickness of which is already known to EMC) on top of the material
I jog the router to be above the touch-pad
I hit a button in AXIS and it magically lowers the router until the bit touches the pad
Viola! EMC is configured to cut to the exact depth specified in my job

When prompted to do a tool change, it would be nice if I could repeat the above steps and afterwards have the router return to it's last XYZ position before signaling that the bit change is complete.

I see lots of examples on interfacing with hardware, but nothing showing how I can add a button onscreen that executes some G-Code commands. Does anybody have some examples of using python scripts within EMC?
Reply With Quote

  #5   Ban this user!
Old 08-26-2008, 07:53 PM
 
Join Date: Aug 2008
Location: UK
Posts: 545
BillTodd is on a distinguished road

Hi Cansir,

I found this thread after looking to do the exactly the same thing.

You might be able to get the G-code post processor of your CAM package to insert the measuring code automatically after each tool change (I'm using SheetCAM which has this type of option in the post processor).

All you'd have to do then is set the probe switch height to match the surface of your material at the start of the job. The machine could probe the tools after they're changed. (At least this is how I think it should work )

Bill
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-27-2008, 02:05 PM
CanSir's Avatar  
Join Date: Apr 2006
Location: Canada
Posts: 87
CanSir is on a distinguished road

I've made some progress by using bit's and pieces out of several how-to articles on the emc wiki site:
http://wiki.linuxcnc.org/cgi-bin/emc...cKnowledgeBase

I've managed to create a virtual control panel in AXIS and re-configure HAL to use my tool change code instead of the supplied manual tool change code. Unlike some other people, I discovered that I really do need to connect my cutter to ground in order to get a reliable "touch" signal. I believe I am 90% of the way there and just need to put it all together for a real test.

When I get it all working, I will create a knowledge base article on that linux wiki site to share what I've come up with.

I never considered looking into my CAM program to see how it could help. Probably just need to add code to the post-processor file for the Tx command?

- Dean
Reply With Quote

  #7   Ban this user!
Old 08-27-2008, 03:03 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

As I understand it you have the tool probe in a certain spot and in your G code you move over and do a probe move to find the length of the tool. You can then do an offset from that. You have to hook up the probe to the probe input and define that. If you used stepconf to set up then in the parallel port page you can define which pin is Probe In.

If you need more help just holler.

John
Reply With Quote

  #8   Ban this user!
Old 09-07-2008, 05:14 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

I too am looking at tool changer for my gantry router.

I envisage a linar tool changer rack along an adge of the table.

The g code file ( job file) is to incorporate some code to controll the action of the spindle and to instruct it to go over to the rack and pick up tools from the rack.

The tools are 1/8" shank bits with distance rings held in cups.

I am yet to build up the tool rack and position it in its place, however the code seems to be working.

More as it becomes available.
Reply With Quote

  #9   Ban this user!
Old 10-27-2008, 02:39 PM
 
Join Date: Oct 2006
Location: usa
Posts: 104
chazmtu is on a distinguished road

I know this thread has been silent for a while, but I've been trying to do the same thing as cansir using this tutorial. I'm new to EMC and just starting to learn about the interactions between files.
Can someone help me figure out how to get a VCP button to run multiple lines of gcode? So far I have a button controlling a probe move for my touch off plate but can only run one line of code. I followed the tutorial then renamed the button and changed the gcode line. I'm pretty sure that I have to change my postgui.hal file line for that button. Right now it reads:

net remote-z-axis-touchoff halui.mdi-command-00 <= pyvcp.z-axis-touchoff

Here's what I know. z-axis-touchoff is my button variable. This "<= pyvcp.z-axis-touchoff" connects my button to the preceding command. and "mdi-command-00" lets me run one mdi command from my .ini file. What do the net and remote commands do? What do I replace "mdi-command-00" so that I can call a file or sub section in my .ini file with the code? Any help would be greatly appreciated.

Chuck
__________________
http://chuckscnc.blogspot.com/
Reply With Quote

  #10   Ban this user!
Old 10-27-2008, 10:21 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

I was thinking about this. HAL-UI allows you to have MDI commands that are invoked by HAL pins. If you set up a few MDI commands on pins then had classicladder run these pins in order (you would have a button to start the process) , you may be able to do what you want. All theory of course I have not tried this. Food for thought.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-28-2008, 10:27 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Originally Posted by chazmtu View Post
I know this thread has been silent for a while, but I've been trying to do the same thing as cansir using this tutorial. I'm new to EMC and just starting to learn about the interactions between files.
Can someone help me figure out how to get a VCP button to run multiple lines of gcode? So far I have a button controlling a probe move for my touch off plate but can only run one line of code. I followed the tutorial then renamed the button and changed the gcode line. I'm pretty sure that I have to change my postgui.hal file line for that button. Right now it reads:

net remote-z-axis-touchoff halui.mdi-command-00 <= pyvcp.z-axis-touchoff

Here's what I know. z-axis-touchoff is my button variable. This "<= pyvcp.z-axis-touchoff" connects my button to the preceding command. and "mdi-command-00" lets me run one mdi command from my .ini file. What do the net and remote commands do? What do I replace "mdi-command-00" so that I can call a file or sub section in my .ini file with the code? Any help would be greatly appreciated.

Chuck
Chuck the net part creates the connection, the signal name is remote-z-axis-touchoff, the <= are only to make it more readable. I'm not sure if you can call files from the mdi. Only valid mdi commands work. If your really wanting to call a subroutine look a the "O" codes.

John
Reply With Quote

  #12   Ban this user!
Old 10-28-2008, 12:47 PM
 
Join Date: Oct 2006
Location: usa
Posts: 104
chazmtu is on a distinguished road

Hi John,

Thanks for the clarification. I have looked into using the O codes for the mdi command but I got errors because they were not recognized as a valid command. Maybe because it doesn't know where to look for a subroutine? What I don't understand is, the integrator manual states that the mdi command function is for more "complicated tasks", but running one line of gcode doesn't seem all that complicated or terribly useful. Unfortunately, I only found the one example. Chester88 might be onto something though. I'll have to look into ladder commands. I'm not much of a programmer.
__________________
http://chuckscnc.blogspot.com/
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Z axis touch plate spalm Mach Software (ArtSoft software) 5 10-08-2011 01:03 AM
Taig Micro Touch Off Plate fretsman Taig Mills & Lathes 0 06-15-2008 11:17 AM
Machine Large Alu Plate for CNC router wfung General Metalwork Discussion 6 12-11-2007 04:07 PM
DIY pressure sensor ? - Touch Off Plate ? deleteallusers Mechanical Calculations/Engineering Design 4 06-22-2007 04:56 PM
rousseau router plate dimensions? Madclicker WoodWorking 1 08-19-2006 08:50 PM




All times are GMT -5. The time now is 05:24 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361