Hello Guest it is April 20, 2024, 03:05:54 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 - 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 »
1781
Mach4 General Discussion / Re: B C axis independent from XYZ axis
« on: January 14, 2020, 04:10:07 AM »
Hi,

Quote
I apologize for starting another thread, but I try to solve the problems one at a time

I don't really car how many threads you start....its just they will all end the same way.

There is one solution....use two PCs with an external C# program to synchronise them per Katz Yakov's solution.
The other is to hassle smurph into selling you Mach4Expert which can handle multiple threads.

Craig

1782
Mach4 General Discussion / Re: How do I make the Extents mode visible
« on: January 14, 2020, 03:00:43 AM »
Hi,
in Screen Editor mode look at the properties of the toolplath window, per attached.

You can edit colors for contrast etc.

Craig

1783
Mach4 General Discussion / Re: B C axis independent from XYZ axis
« on: January 13, 2020, 01:27:00 PM »
Hi,
there was a thread about this a while back:

https://www.machsupport.com/forum/index.php?topic=42179.msg274870#msg274870

but then....you would know, you started that thread too??

Craig


1784
Mach4 General Discussion / Re: Mach4 Homing doesn't set DRO's to zero
« on: January 13, 2020, 12:52:29 PM »
Hi,
most likely you have non-zero home offsets in your Homing table or you have non-zero residual G92 offsets.
To check the later look on the Machine Diagnostics tab.

Craig

1785
Mach4 General Discussion / Re: B C axis independent from XYZ axis
« on: January 13, 2020, 05:23:12 AM »
Hi,

OK, so its not about slave axes.

Quote
I want to move the B or C axis together with the XYZ axes in the same program line (Ex: B100 X200) the B axis should not be delayed by the X axis, to reach 100 before the X axis, not at the same time as now.

That is not a coordinated move. For example if you code:

g0 x100 b270

then the x axis move occurs synchronously with the b axis move and they complete at the same time. This is normal.

I you wish the B axis to move BUT NOT SYNCHRONOUSLY then it is not a b axis any more, its an 'out-of-band' axis,
shortened to OB in Mach4. The spindle is an example of an OB axis, it rotates but not synchronously with any other axis.

If you wish to have a b or c axis move at some defined rate or distance and then have a coordinated axis move simultaneously
but not synchronously then you must re-define the b or c axis motors as OB axes. Then you use the jogging APIs:

Code: [Select]
LUA Syntax:
rc = mc.mcJogIncStart(
number mInst,
number axisId,
number dist)

Description:
Start an Incermetnal jog move.

rc = mc.mcJogSetRate(
number mInst,
number axisId,
number percent)

Description:
Set the jog rate of the given axis as a percentage of the axis' maximum velocity

rc = mc.mcJogVelocityStart(
number mInst,
number axisId,
number dir);

Description:
Start a velocity jog on the given axis.

Note these APIs are required to be enacted by a macro. The macro should start the jog then return (while the jog is
still moving) and then regular Gcode moves on the remaining coordinated axes will have the desired result.

Craig

1786
Mach4 General Discussion / Re: B C axis independent from XYZ axis
« on: January 13, 2020, 01:29:53 AM »
Hi,
can you explain a bit more about what you mean.

In Mach4 there are six independent axes X,Y,Z,A,B, C any of which can be moved independently of the others,
or any combination of them can be moved in coordinated fashion, sometimes call interpolated movement.
Interpolation seems a bit weird when you mix linear and rotational axes...but I suppose its not inappropriate.

I am guessing that you have come from a Mach3 background. In Mach3 it was common to slave the A axis say,
to the X axis say, and thereafter they would move together as a master/slave pair.

Mach4 is markedly different. If your thinking along the lines of Mach3 and slaved axes you need to unlearn that.
(Large quantities of  whiskey aid my forgetting of things!!!)

If you require a slave to the X axis motor, in Mach4 you may assign up to five slaves to the X axis motor on the
Axis Mapping tab of the Control plugin page per attached.

Even more importantly and flexibly you can by Lua script link and unlink the slave/slaves from the master at will.
There are a few quirks as to how and when changes made to the linked/un-linked status of any given slave motor
is flushed to the .ini file. Lets not go down that rabbit hole for the moment. These are from the API.chm file
(Mach4 Docs):

Code: [Select]
rc = mc.mcAxisMapMotor(
number mInst,
number axisId,
number motorId)

Description:
Map a motor to an axis.

rc = mc.mcAxisUnmapMotor(
number mInst,
number axisId,
number motor)

Description:
Unmap the motor from the axis.


For instance if you have a slave motor on your gantry they would in normal operation be slaved together. What happens if the
gantry gets out-of-square? With the two APIs you can drive to the master home switch of that axis, then unlink the slave
form the master and then 'jiggle' the slave motor back and forth until the secondary home switch ( or gantry squaring switch)
is activated, then you can link the slave back to the master, and all of this can be done in a script, maybe at the push of
a button of your design.

Mach4 is most marvelously flexible once you get into it.

Craig

1787
Mach4 General Discussion / Re: Make a button toggle an output
« on: January 13, 2020, 12:58:42 AM »
Hi,
have you, in the first instance, explored ALL the toggle button properties?

Refering to the attached you can set the Up text, the Down text, you can attach the button to an input OR an output.
You can set fonts and all manner of things, have you tried them all?

The events tab of the toggle button reveals that you can have an Up Action, a Down Action, an Up script and a Down
script. Of course the Actions are what is built in to Mach4 but is quite an extensive list, as the small part of the drop down
list (pictured) shows.

Even more importantly you can have your own scripts, the Up script and the Down script and scripts are limited by
your imagination only.

May  suggest explore the full range of features built in, it may well transpire that with a few keystrokes you could achieve
all you could desire WITHOUT the need for tricky-dickey code.

Craig

1788
Hi,

Quote
I would make the case that this is close enough... but I know I'm wrong. 

don't get me wrong, I cut corners to save budget and it is legally permissible given that I am an amateur, but the shortcuts
I take would not be permissible in a commercial machine.

I am surprised that Clearpath don't have a braked model. Then I suppose there are too few wires going to the servo to enact it.

I find that Clearpath are expensive for what you get. A 400W Delta or DMM servo and 230VAC drive costs less than a Clearpath
of 200W. Of course with a separate drive you can have many more wires for control features like a brake.

I have a braked 750W Delta B2 series servo and drive, it has in addition to step/direction inputs has 8 programmable
digital inputs, six programmable digital outputs and two programmable analogue outputs. It cost about $100USD more than
a non-braked servo, $650USD including three day DHL shipping to New Zealand. Clearpath cant get within a country mile
of that, first I don't think they make a 750W servo, certainly not one with a brake.
Clearpath CPM-SDSK-3416P is 365W for $424
Clearpath CPM-SDHP-3446D is 410W for $695
Clearpath CPM-SDHP-N0561P is 986W for $928

Delta 400W B2 series (160,000 cpr encoder) and drive $385
Delta 750W B2 series and drive $439
Delta 750W B2 series braked and drive $565

1789
Mach4 General Discussion / Re: Make a button toggle an output
« on: January 12, 2020, 07:01:27 PM »
Hi,

by the way:

Quote
local stat=mc.mcSignalGetState(inst,mc.OSIG_OUTPUT0)

is completely illegal in Lua.   mc.OSIG_OUTPUT0 in Lua is an integer number, not an address. What you need is to find the 'handle'
of the signal, and the signal is numbered mc.OSIG_OUTPUT0, like this:

local SigHandle=mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT0)
local stat=mc.mcSignalGetState(inst,SigHandle)

The reasoning goes that variables in Lua are dynamically created and when no longer required are garbage collected.
It is entirely possible in fact probable that over the course of a Mach4 session a variable will exist at different memory
addresses (handles) at different times.

The term 'local' means that a variable doesn't even get the dignity of a handle, it is stored in a stack. Its 'address' is like this:
'fourth from the top of the local stack'....a bit later as two variables have been popped off the stack it 'address' will now be
'second from the top of the local stack'. A little later still when that function has returned the stack has 'gone out of scope'
the whole stack is garbage collected.

Craig

1790
Mach4 General Discussion / Re: Make a button toggle an output
« on: January 12, 2020, 06:43:04 PM »
Hi,
I take it you used a toggle button provided by the GUI editor?

If you look the the properties of the toggle button you will find it very flexible, it has differing colors depending on its state, differing
blink rates, and can set/unset outputs  all without scr.SetProperty(....) statements.

You should really try to avoid all the scr.SetProperty(....) type statements, they work but are far from the best and even intended use
of the scr{} table.

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 »