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 03-16-2009, 06:04 AM
 
Join Date: Jan 2008
Location: Norway
Posts: 14
tottish is on a distinguished road
Performing tasks during X-axis-movement

Hi!
I have a problem that someone in here might know how to solve.
I have a laser mounted in a 3-axis router and would like to be able to switch it on and off from G-code without having to stop the movement.

For example:
__________
G1 X30
G3 S100
G1 X50
__________

This will make the X-movement come to a stop before the laser is turned on and then accelerate up to the specified speed.
Can I make this operation with constant X-speed? Do I have to use the ClassicLadder for such an operation?

Alternatively: Is there a function in EMC2 that is able to compensate, in the M3 S-value (normally spindle-speed), for the velocity of the machine-head? I'm told there is a function like this in Mach3 and I guess it would do the trick for my laser problem.

Thnx!
/Tottish
Reply With Quote

  #2   Ban this user!
Old 03-16-2009, 08:46 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

In 2.3 beta you can use M62/63 to do that.

http://www.linuxcnc.org/docview/deve...ec:M62-to-M65:

John
Reply With Quote

  #3   Ban this user!
Old 03-16-2009, 08:57 AM
 
Join Date: Jan 2008
Location: Norway
Posts: 14
tottish is on a distinguished road

I don't think so:
"The actual change of the specified outputs will happen at the beginning of the next motion command. If there is no subsequent motion command, the queued output changes won't happen. It's best to always program a motion g-code (G0, G1, etc) right after the M62/63."

From what I can tell this means that the router has to come to a stop and then start moving again for an M62/63-command to "execute". I need it to turn the laser on while moving. Preferably I would like to be able to set the M3 PWM that I now use for the laser but if only on/off is possible I guess it will do.

Any other Ideas?

Regards
/Tottish
Reply With Quote

  #4   Ban this user!
Old 03-16-2009, 09:00 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

No, It will act just the same if you didn't have the M62/63 in the line. Just keep in mind that the switching takes place at the start of the next move.

John
Reply With Quote

  #5   Ban this user!
Old 03-16-2009, 09:04 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

For example
G0 X1 Y1 M62 ( Set up to switch on at next move)
G1 X1.5 M63 (on during this part of the move)
X2 M62 (off during this part of the move)
X3 M63 (on)
G0 X1 Y1 (off)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-16-2009, 09:05 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

hmm, got a double post...

anyway the above move will be one smooth move within the constraints of your system.

http://www.linuxcnc.org/docview/deve...epts.html#r1_1

So it might be needed to have a G1 move before and after to maintain speed as outlined above.

John
Reply With Quote

  #7   Ban this user!
Old 03-16-2009, 09:35 AM
 
Join Date: Jan 2008
Location: Norway
Posts: 14
tottish is on a distinguished road

Sorry Big John. I'm new to G-code manipulation and I didn't realize that the M62/63-commands would fit in seamless. I tried doing the same thing with the M3-command and since that didn't work I thought that the code was executed line by line without any knowledge about what's on the next line. It seems I came to the wrong conclusion.

Is there any way to fit in the M3 command like that? It would just be awesome. If not I will probably have to sweep the whole image one time for every shade that I want.

Thanks a lot Big John and sorry for mistrusting you. =)

Regards
/Tottish
Reply With Quote

  #8   Ban this user!
Old 03-16-2009, 11:57 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

No problem, you just didn't know.

AFAIK M62/63 are the only ones that don't pause motion but I might be wrong...

John
Reply With Quote

  #9   Ban this user!
Old 03-16-2009, 02:05 PM
 
Join Date: Jan 2008
Location: Norway
Posts: 14
tottish is on a distinguished road

Hmm, I was wrong (again). It only works for me at slow speeds. At speeds over 500mm/min it becomes clear that it does stop (or at least slow down) between the lines.
Even without the M-commands it stops.
For example this block:
G1 X10
X 20
X30
Is performed in three distinct sequences at higher speeds. I have to double check for errors tomorrow. My head is spinning around right now.

Good Night from Norway!
/Tottish
Reply With Quote

  #10   Ban this user!
Old 03-16-2009, 02:34 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Did you set G64 Pnn ?

http://www.linuxcnc.org/docview/deve...ts.html#r1_1_3

For short moves at high speed this is needed. Also EMC will not go faster than it can stop so if your acceleration is low and your asking for high speeds it looks like a bumper car...

John
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-18-2009, 06:47 AM
 
Join Date: Jan 2008
Location: Norway
Posts: 14
tottish is on a distinguished road

I have now. But I'm afraidit didn't help.
When I run this program>
T1M6
G64 P0.5
G1 Z0.5 F2100.0

G0X0.000Y0.000

G1X8.525F2100.0

x10
X11
X12
X33
X34
X35
X50

G0X0.000Y0.000

G0X0Y0

M30
Everything runs smooth and it seems as if the naive CAMthingy 'morphs' all the Xmoves together and in the CodeWindow of AXIS the highlight skips right down to the last Xline and stays there until the value X50 is reached.

When I run this program, however, it is all chopped up and not smooth at all>
T1M6
G64 P0.5
G1 Z0.5 F2100.0

G0X0.000Y0.000

G1X8.525F2100.0

x10 M62
X11 M63
X12 M62
X33 M63
X34 M62
X35 M63
X50

G0X0.000Y0.000

G0X0Y0

M30
The highlight is jumping from row to row.

Any more pointers of what might be wrong here (questionmark)

Regards,
Tottish

EDIT: Oh, and the P-value for the G64 makes no apparent difference.
Reply With Quote

  #12   Ban this user!
Old 03-18-2009, 08:35 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Just to be sure are you running 2.3 beta?

It looks like the CamThingy breaks when M62/63 comes into play...

John
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
Need Help!- New SX3 - Axis Movement meyermicro Syil Products 11 05-27-2008 08:36 AM
Axis Movement KARD CamSoft Products 1 05-21-2008 05:29 AM
No Z-Axis Movement btcoutermash Bridgeport and Hardinge Mills 11 08-12-2007 02:42 PM
Axis Movement UKRobotics General Metal Working Machines 2 12-17-2004 01:33 PM
4th axis movement (and a few other gen ?s) corpse General Metal Working Machines 2 08-04-2004 06:13 PM




All times are GMT -5. The time now is 05:34 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