Hello Guest it is April 23, 2024, 10:28:53 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 »
321
Mach4 General Discussion / Re: Suggested OS
« on: January 27, 2018, 07:54:50 PM »
Yup, guessing here confirmed. Not like I have a Vista PC so can't confirm or deny either way.

Quote
That's the good part. I have two fresh, free vista pc's all cleaned up and ready to go. (for what its worth   ;D)

Good for who? Lol

Quote
My 39 Chevy is all original ... and still runs fine.
If it ain't broke, why fix it ?  :)

Good point. But installing Mach4 and using an external motion device on a Vista PC is the equivalent of adding air ride, ABS brakes and electronic fuel injection to that 39. If Vista works good for you, I'd run it to death. But similarly, if your car breaks chances are it's gonna be a bit more troublesome to fix than something that has parts that are readily available and doesn't require a specialist with knowledge of ancient technology. Well, setting a system up with Vista is no different. I think what you need to do is push on through with the Vista/Mach4 setup. When you get done you can be the resident specialist for such cases. You could probably even make some money doing it. Tons of it. I'm talking Elvis Presley rich.  ;D

322
Mach4 General Discussion / Re: Suggested OS
« on: January 27, 2018, 05:39:48 PM »
And I'm guessing Art was kind of forced into making the parallel port driver work in Vista with 3 years ago (which was a huge pain form what i understand). Yeah, if you have it, might not hurt to throw it in. But if you don't, surely not worth the effort to.

323
Mach4 General Discussion / Re: Suggested OS
« on: January 27, 2018, 05:36:22 PM »
I'm not completely sure on this RC but I think the reason Vista is not listed for use with an external motion device is that no external motion device manufacturer tested their plugin against Vista. I can't say as I blame them either. Vista was\is considered by most (evidently, microsoft too) a big typo in itself. Kind of a bastard child. Coupled with the fact that Microsoft had ended support for it before Mach4 even came out......... yeah, I wouldn't have given it the first thought myself.

324
Mach4 General Discussion / Re: Trouble Loading Mach4Lathe
« on: January 26, 2018, 09:55:17 PM »
Quote
my expectation is that it would load and run with the Sim(ulator) plugin out of the box

Yes, well ummmmm in a perfect world bugs wouldn't exist either.  ;D

Quote
Have you checked the configuration to see if the axis have motors enabled and those motors are mapped to the axis? It won't jog if the axis do not have enabled motors mapped to them.

325
Mach4 General Discussion / Re: Trouble Loading Mach4Lathe
« on: January 26, 2018, 07:32:42 PM »
Did you try the ol' "Create your own Profile" trick?
After I did that, it would consistently open OK, but much of it wouldn't work ... like jogging.
My Dell Latitude 400 laptop w/XP was just too "poor".

Have you checked the configuration to see if the axis have motors enabled and those motors are mapped to the axis? It won't jog if the axis do not have enabled motors mapped to them.

326
Mach4 General Discussion / Re: Suggested OS
« on: January 25, 2018, 09:50:20 PM »
Running Windows 10 here.

327
Have a look at the mcTouchOff module in the modules directory.

Open a mill profile and click the touch button. That will launch it.

Maybe better than that is just using Gcode.


328
Take a look at my macro again.  It uses registers to tell the Click which tool is requested.

Yup, Chads' m6 looks like it does exactly all you will need to do in script. Get the PLC doing its thing and your done!  :)

329
Quote
I understand what you mean and can program my PLC for the most part

Good, get that done first like I said. Once you have the tool changer working right and it can change tools when you tell it 2 things....

1) What tool to get through a register
2) Change to that tool (start tool change) through a register

you're virtually finished and you can do all of this before you ever even install Mach4.

Then you will need the PLC to tell you that the tool change is complete (by changing that register that told it to change tools).

Once you have that done getting the m6 to do 3 things......

1) Tell the PLC those 2 things (what tool to get and start tool change).
2) Then wait for conformation that the PLC has finished changing tools.
3) Then update your tool offsets or error out depending on what the confirmation check comes back with.

will be super easy with Mach4. I have given you most of it (though not completely accurate) already. But you get the PLC changing tools as I described using only the PLC and Qmodbus (or similar) someone here will help you get the scripting in your m6 (if I have to do it myself). And do note I said help. Help means you will learn too. But if someone else does it all for you it will take all the fun out of it. Don't want that. Hobbies are supposed to be fun.  :)

Quote
How does Mach know what signal to send to my PLC with the identity of the tool that needs changing?

local current, rc = mc.mcToolGetCurret(inst)
local selected, rc = mc.mcToolGetSelected(inst)

But, like I said, you need not even worry about that yet. Use Qmodbus to write to a register in the PLC telling the PLC what tool to change to.

Quote
but I'm not understanding the code.

You can fix that. Look up those 2 api calls in the Mach4 core API doc. It's in your C:\Mach4 Hobby\Docs directory.

Trust me, doing this in Mach4 will be much easier than you think if you can get the PLC doing its thing. But I wont be helping much with that. Others here probably will but if not I'm sure you can work through it between Click's docs and AutomationDirects forum, support and other resources.

330
If you do it like I'm suggesting, you can get rid of just about all of that script. It does require the PLC ladder to handle all of the tool change internally though but how it should be IMO.

function m6()
    local current = mc.mcGetCurret(inst)
    local selected = mc.mcGetSelected(inst)

    if (current ~= selected) then --do a tool change
        Set tool number reg in PLC to selected
        Set go to work bit to 1 --Maybe fire a PLC output to a Mach input instead or map that register to an input so can do a wait for signal
        rc = mc.mcSignalWait(signal, state, time)
        if (rc ~= 0) then --we had some kind of error
            mc.mcCntlSetLastError(inst, "Tool Change Failed" )
            mc.mcCntlCycleStop(inst)
        end
    end
end

That's not exactly right but about all the script you would need.

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 »