Hello Guest it is April 19, 2024, 07:08:57 PM

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 - joeaverage

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 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 »
3031
Mach4 General Discussion / Re: Mach4 jogging output.. diagnostics screen
« on: February 25, 2019, 07:19:53 PM »
Hi,
that looks like the Sim(ulator) diagnostic output.

Are you sure that you have the UC100 plugin enabled and selected as the current motion control?

Craig

3032
Mach4 General Discussion / Re: reading and writing to registers
« on: February 25, 2019, 07:14:57 PM »
Hi,
now you have a new register/registers and you can inspect/edit manually. Note all this and more is covered in the
Mach4 Scripting Manual chapter 4, in Mach4Hobby/Docs folder.

Note that section 4.4 of the manual is somewhat out of date. It used to be necessary to explicitly flush the contents of
a register to the .ini file and reload it at the start of a new session. This is no longer required. None the less it is still
useful to be able to send the contents of a register to the .ini file under programmatic control.

Per Chapter 4 the main APIs are:

Quote
ï‚· hreg = mc.mcRegGetHandle(inst, path)
ï‚· val = mc.mcRegGetValue(hreg)
ï‚· string = mc.mcRegGetValueString(hreg)
ï‚· mc.mcRegSetValue(hreg)
ï‚· mc.mcRegSetValueString(hreg)

Thus to retrieve the value of jewelHeightReg in my example:

Code: [Select]
local hreg=mc.mcRegGetHandle(inst,'iRegs0/jewelHeightReg')
local ValuejewelHeightReg=mc.mcRegGetValue(inst,hreg)

As so often is the case reading a variable in Lua is a two step process, the first step is to find the variables 'handle'
or current address. Note that as the Mach session progresses that location can change....don't be duped.....get the
handle THEN get the value.

Craig

3033
Mach4 General Discussion / Re: reading and writing to registers
« on: February 25, 2019, 06:47:59 PM »
Hi,
now that you have a new register defined you can inspect its contents....
Diagnostics/Regfile. Picture 1 attached

Expand  iRegs0 to see the currently defined registers and their current contents. Note that in my example that the
register iRegs0/jewelHeightReg has a value of 105.22 rather than its initial value as I assigned to it in my previous post.
This is because the last time I used this register its value was changed to 105.22 and because it is persitent it is saved
between Mach sessions. Picture 2 attached. Note that a useful feature is to 'pin' the regfile window to the top which allows
you to monitor the contents while a process or debug session is in progress.

You can manually edit the contents of a register by double clicking on it. Picture 3 attached.

Craig

3034
Mach4 General Discussion / Re: reading and writing to registers
« on: February 25, 2019, 06:23:26 PM »
Hi,
I will go through the basics first.

I assume you want a register to hold a value or string for your use? There are already a goodly number of registers defined in Mach4,
some for core variables, some will be for your motion controller variables, or Modbus variables, or Serial Comms variables......etc.

In the first instance you need to define a new register.

1)Ensure the regfile plugin is enabled  ( Configure/Control/Plugins) picture 1 attached.
2)Open the regfile plugin (Configure/Plugins/Regfile) picture 2 attached
3)Define a new Instance Register by clicking on the green icon, name the new register, assign an initial value if necessary
and decide whether it is to be persistant, that is to say saved to the .ini file on shutdown and repopulated when Mach
restarts. Picture 3 attached.

Craig

3035
Mach4 General Discussion / Re: pmc / plc
« on: February 25, 2019, 05:12:09 PM »
Hi,
the PMC editor produces Lua code that runs in the PLC script.

The PMC is for those people who can't or don't want to code in Lua directly but are happy with ladder logic.

Craig

3036
Mach4 General Discussion / Re: Mach4 Output Config. gets lost with shutdown
« on: February 25, 2019, 04:14:10 PM »
Hi,
when you close Mach all the current settings should be flushed to the .ini file. I can't imagine any reason that the
.ini file would be updated in such a way that it would work over today for instance and yet somehow loose information
over several days.

Quote
When I close Mach4, I loose my Device and Output Name and therefore control of my outputs

Would you explain a little more please?

I'm guessing that you mean the Galil controller name?

When you select the motion control device, did you shut down immediately? Remembering that shutdown will flush that change
to the .ini file and should thereafter be permanent.

Quote
I'm using the Galil Plug-in and a DMC-41730 Motion Controller with a RIO-47300 I/O Controller. Any clues?

I am not familiar with either. Does the IO Controller hook to the Galil or to Mach? If it hooks to the Galil would not the details
of the IO device be in the Galil plugin?

Craig

3037
Mach4 General Discussion / Re: Mach4 MPG axis stop after inc steps overflow
« on: February 25, 2019, 12:09:07 PM »
Hi,
try Continuous mode, that's what its for.

Craig

3038
Video P*r*o*b*i*n*g / Re: 3d Probing on Granite slabs
« on: February 25, 2019, 02:52:05 AM »
Hi,
I make PCBs by isolating routing. The result is highly dependent on the PCB blank being dead flat  (within a few um)
OR use Autoleveller. It is a free software utility that probes the surface and subtly varies the Z axis depth of cut to maintain
constant cut depth.

You might be able to adapt Autoleveller to your needs.

http://www.autoleveller.co.uk/

Smurph, one of the developers of Mach4 has heralded the upcoming release of a Mach4 feature that does something similar.
A PM to Smurph or even an Email to NFS may net you enough details that would allow you to decide whether the new
Mach4 feature would suit your purpose.

Craig

3039
Mach4 General Discussion / Re: touch probeing
« on: February 25, 2019, 01:27:40 AM »
Hi,
I use the ESS and have no problems with overrun, I suspect you are correct about XHC.

If you've read any of my posts you will know I hate XHC with a vengeance. I am NOT a disinterested observer.

I don't have any recommendations excepting the obvious.....Reinshaw and/or Heidenhan!!!

Craig

3040
Mach4 General Discussion / Re: touch probeing
« on: February 24, 2019, 07:06:15 PM »
Hi,
what controller? Its the controller that does the business not Mach.

Craig

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 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 »