Hello Guest it is April 25, 2024, 02:06:09 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 »
2201
Mach4 General Discussion / Re: Feed Hold in MDI Window hangs up mach 4?
« on: August 02, 2019, 09:23:12 PM »
Hi,
I don't have an answer...but rather a question.

When Mach is executing a Gcode program and you <feedhold> the buffered moves execute and then the  machine stops.
Mach would transition from MC_STATE_FRUN to MC_STATE_HOLD. No problems....normal. The length of time between
you hitting <feedhold> and the machine stopping is determined by the buffer length of the your motion controller, the default
with the ESS is 180ms.

With the code you have posted the buffer will have time slices stacked up in the buffer, to the length of the buffer, all with
no motion because the Gcode is a g4 p.....Thus when you hit <feedhold> I would expect the buffered moves to be executed,
ie nothing happen as they are all no-motion time slices, and then Mach would stop. Mach would in this case transition from
MC_STATE_MRUN, because the executing code string is MDI data, to MC_STATE_MRUN_FH. Because the <feedhold> has
interrupted the Gcode interpreter I would not expect the m5 to have been interpreted and put in the buffer. In this circumstance
I would anticipate that the spindle would carry on running because you have not commanded it do otherwise.

Note that this behavior can be changed. See the attached pic. I'm guessing that these two settings add code to enact the desired
behavior to the <feedhold> function within Machs core.

Even if you make those settings as appropriate to your desired behavior that does not explain why Mach should hang
up after hitting <feedhold>.

May I suggest some experiments that explore this quirk a little further. For instance if you had a motion command that was
interrupted rather than a wait command. For example MDI:
m3
g1 x100 f100
m5
and while the X axis move is executing hit <feedhold> and see what happens.

Quote
Even when exiting Mach 4 - it can not be started again because a "Mach 4 GUI" Process is still running as seen in the task manager. You have to manual quit this task with windows task manager and start complete mach 4 again.

This is normal, if Mach crashes or exits unusually then one chunk of code is left running and must be manually shut down
before you can restart. The trick is to avoid Mach crashing!

Craig

2202
Hi,
firstly this post should be on the Mach4 General Discussion Board.

Mach4 like Mach3 which preceeded it does not back off. If you set a 'home offset' when that axis homes instead of the
machine coordinates of that axis being set to zero they are set to the value you have nominated as 'home offset'

In addition to that feature of Mach some motion controllers including the 57CNC and ESS allow you to set  a 'Back off Distance'
as well. Thus the setting you are looking for if offered by the controller and will be found it the PoKeys plugin.

There is a difference between Home Offset and Back-Off.

Craig

2203
Mach3 under Vista / Re: Mach3 and TB6600 under Win7 cant run motors
« on: August 02, 2019, 04:19:53 AM »
Hi Scintilla,
I migrated to Mach4 and an Ethernet SmoothStepper about for years ago. As it turns out the port and pin settings
are similar. Note also that I use Homann Desgins MB02 breakout boards. They are bidirectional and so don't
have any relays, opto isolators nor does it have a PWM to analogue circuit. I add these as and where I find necessary.
These boards are very similar to C10's which you may be familiar with.

I take advantage of the bidirectional ability of the board to make the second port pins 2-9 as inputs.
Thus one port one I have 12 outputs and 5 inputs and the second port offers an additional 4 outputs and 13 inputs.

They are arranged like this:
Port 1:
 Outputs
  pin 1 spare
  pin 2 X direction
  pin 3  X step
  pin 4 Y direction
  pin 5 Y step
  pin 6 Z direction
  pin 7 Z step
  pin 8 spare
  pin 9 spare
  pin 14 spare
  pin 16 Forward
  pin 17 PWM output
 Inputs
  pin 10 Estop
  pin 11 X Home
  pin 12 Y Home
  pin 13 Z Home
  pin 15 Probe

Port 2
 Outputs
  pin 1 C axis direction
  pin 14 C axis step
  pin 16 C axis multiplex
  pin 17 spare

 Inputs
  pin 2 X-- limit
  pin 3 X++ limit
  pin 4 Y-- limit
  pin 5 Y++ limit
  pin 6 Z-- limit
  pin 7 Z++ limit
  pin 8 spare
  pin 9 spare
  pin 10 spare
  pin 11 spare
  pin 12 spare
  pin 13 spare
  pin 15 spare

As you can see having a second port, particularly when you define pins 2-9 of the second port as inputs
means you have plenty of spares. You can have just one limit switch per input and separate home switches
and still have plenty left over.

Note also that I have a second spindle based on an Allen Bradley 1.8kW servo. I can run it as a C axis for rigid tapping,
For that I require two outputs, C axis direction and C axis step and a third output to multiplex between position mode
for rigid tapping and free running mode, called C axis multiplex

Note also that I sometimes (temporarily) assign three spare inputs in port 2 (pins 8-10) to a rotary encoder I have attached to my
coil winder spindle. I don't use if often but is a labour saver when I do.

Craig

2204
Hi,

Quote
What is the mc. for? Is this a way of calling out the custom API commands that are only for Mach? Is "mc" an abreviation for something unique to mach4?

That is explained in the SignalScript.pdf link I gave you.

mc= Mach Core.

Lua has one and one only data structure....the table.

Lets say you have a table called TableXYZ and you want to recall an entry in that table, say 'currentX', you would address this by:

TableXYZ.currentX. All member or entries of a table are addressed that way.

Look at a API, say:
mc.mcSignalGetHandle()

The actual function (or member or entry) is mcSignalGetHandle() but it is in a table of functions called mc.

The use of the table data structure and 'functions as first class values' are ABSOLUTELY FUNDEMENTAL to Lua's flexibility and
power. You will encounter these concepts over and over. Get familiar with them. It is exactly these principles that make
VB so last century.

Craig

2205
Hi,

Quote
Am I correct in saying I can copy all my motor ports and pins from Mach3 and add them in to my Mach4 setup ?

That is substantially correct. Set up the pins in the ESS/Pins Config tab, then assign the pins on the ESS/Outputs tab.
Note the ESS plugin automatically updates the Mach Control plugin, it should not be necessary to make the settings in both,
just the ESS plugin.

Craig

2206
Mach4 General Discussion / Re: mach 4 plasma
« on: August 01, 2019, 02:35:18 PM »
Hi,

Quote
but i just want my machine to do touch off and thats it.....i dont care about the "arc ok" signal...is there a way to opt out of it that im missing in the settings?

But you have called m03....ie start the plasma......therefore the machine waits for the ArcOK signal. Its fundamental to the
operation of plasma tables.

If you just want to touch off why don't you use either g31 direct  or write a script that includes a g31?

What you are trying to do is use a very small subset of a module that has many interlocked and dependent procedures,
when you use just one procedure the module expects you to carry on with the others....and faults if you don't.

Craig

2207
Hi,

Quote
However using the search tool in this help file is about useless.

There is no substitute for reading it.

A substantial part of Lua programming is knowing the API and the structure of Mach4. You were warned that Mach4
has a learning curve....this is it. It is for this reason that I encourage new-comers to setup Mach with all the standard
procedures that don't require any Lua coding.

I wrote a short intro about using the Signal Library, called SignalScript.pdf, it will answer some of your questions:

https://www.machsupport.com/forum/index.php?topic=40051.msg267764#msg267764

You will need this link, I have it open all the time when I'm coding:

https://www.lua.org/manual/5.3/

Craig

2208
Mach4 General Discussion / Re: mach 4 plasma
« on: August 01, 2019, 02:13:28 PM »
Hi,
m03 is meant to start the arc, The machine will wait until the arc starts as signaled by the 'Arc OK' signal.
If it doesn't get that signal eventually it will fault 'Timed Out'.

From what you have described the fault is you plasma is not starting.

What sort of plasma machine are you using?

Craig

2209
Hi,
log on to the NFS site and go to 'self managed licence' section.

Craig

2210
Hi,
you may have up to five machines, each will have its unique PCID.

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 »