Hello Guest it is April 25, 2024, 09:34:42 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Chaoticone

Pages: « 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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 »
301
General Mach Discussion / Re: I Need a macro written will pay.
« on: February 01, 2018, 08:34:40 PM »
I don't have a link handy but you can search this forum for Mach 4 Teach File and find it pretty quick I think.

302
 :)

303
General Mach Discussion / Re: I Need a macro written will pay.
« on: February 01, 2018, 06:41:13 PM »
If your interested in trying it with Mach4 I posted a teach file script for it not too long ago that may get you almost where you want to be. Would just need to get the register value you will be using for the analog input from the laser instead of Z axis position And automate some moves between readings I think.

304
General Mach Discussion / Re: Large Calibration Numbers- Opinions?
« on: February 01, 2018, 05:44:15 PM »
 :)

305
Yup, then set your stuff in motion in the PLC with the C bits.

If you do it right you can drive the tool changer from 2 sources. Inputs (like push buttons) and modbus (changing bits from Mach). However your right may not require it to be driven from multiple sources so the rest of this may just be noise you have no need to hear....

Input ********* comes on, C bit ********* goes high.

In ladder, if C bit goes high, do your thing, turn that C bit off and turn on the next C bit so it does its next thing. But what happens if that C bit you just turned off is still high because the input is still on? Well, you need to check its state before you do the next thing. But you know if you check in the next rung of the PLC ladder the bit is off because you just turned it off. The ladder will turn the bit back on but not until it gets back up to the top again (which takes about as long as your scan time...... so its real quick) where the input turns that C bit on.

You get around things like this by having a register you write to for stages. Its value is used to check that things are right before doing the next step or stage. Can be a lot to think about but can be worth the effort too.

Another way to do it is have a ladder for each mode (manual/auto). One wont work if the other is on. Modbus ladder is driven by C bits, manual ladder is driven by inputs.

Lots of ways to do it. Just have to play with things until you get it working just like you want it to. When it does that, its right.

306
General Mach Discussion / Re: Large Calibration Numbers- Opinions?
« on: January 31, 2018, 07:54:53 PM »
Hmmm, 16 teeth per rev and 8 teeth per inch on the rack = roughly 2 inches (8 teeth per inch) per rev.

Now you need to know how many pulses you have to send the motor for it to rotate 1 revolution. Your micro steps will be considered in this part. And, you need to know the actual number, not guess and change until it moves one rev. No telling how many steps it skipped moving that one rev when guessing like that.

If your steps per do == 19,000 and your motion device can support the frequency of pulses, then nothing wrong with it. There are lots of systems running higher resolution than 19,000 steps per inch.

Just some numbers for you........

19,000 steps per inch X 12 inches = 228,000 pulses per foot

228,000 X 160 feet per minute = 36,480,000 pulse per minute

36,480,000 \ 60 seconds = 608,000 pulses a second or 608 kHz

Depends on what your using to generate your pulses but some external motion devices can reliable send millions of pulses a second (MHz).

The parallel port tops out at about 50kHz or less in most setups.


307
Quote
I like the second part of your post Brett, all the more reason to free up that "Y".

Yup, it does add some complexity to the ladder in the PLC but it does work nice. On some machines its not as big a benefit. But if the tool changer is attached to the gantry and the gantry has a 40 foot travel being able to do something like disable Mach (which puts the tool changer in the PLC in manual mode) and then work that tool changer with the manual tool change buttons attached to the gantry can be worth a lot over the life of a machine. On small machines its still nice to free up IO. Either way, in almost all cases its best to do things as efficient as possible.

308
I can't speak for Chads logic so can't say why he did it like that. I bet he explains it somewhere though. Might be he fires a physical output of the PLC from mach to start the tool change and when tool change is finished it turns that output off, telling Mach the tool change finished. This manual link could act as a pseudo watchdog in a way too...... maybe, just thinking out loud.

Yup, I would have the top section of my ladder setting the state of bits I could get and set through modbus. The bits would mirror the physical IO states. Then I would drive the outputs and read the inputs in Mach over modbus by changing or reading those bits. Hope that makes sense. This enables you to drive the tool changer through physical inputs or inputs over modbus from Mach.


309
 :)

310
Thats neat! Thanks for sharing Tweakie!

Pages: « 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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 »