Hello Guest it is May 02, 2024, 07:41:00 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 »
381
Mach4 General Discussion / Re: PMDX-416 USB Can't Connect
« on: January 06, 2023, 03:34:38 PM »
Hi,

Quote
A GRBL board is also an option for using with Mach4.

No, GRBL is not in any way compatible with Mach4.

Craig

382
Hi,
the ESS has both a Mach3 plugin and a Mach4 plugin and has supported Mach exclusively since the company's formation some fifteen years ago.
CNCDrive, the manufacturer of the UC100, UC400, UC300 and the AXBB-E is more of a 'Johnny Come Lately' by comparison
and CNCDrive's Mach4 plugins for their controllers have shortcomings relative to the Warp9TD plugin, single point lathe threading, THC, laser ops for
example.

The AXBB-E has two ports worth of IO, ie 34 inputs and outputs whereas the ESS has three ports worth, ie 51 inputs and outputs.

Is there a reason that you would not consider a more capable motion controller?

Craig

383
Mach4 Toolbox / Re: How to access "stats" variables
« on: January 03, 2023, 06:40:52 PM »
Hi,
I can only guess. In the ScreenUnload script there is just the one conditional with:

Code: [Select]
if (Tframe ~= nil) then

Tframe:Close()
    Tframe:Destroy()
end

being the last code. My guess is that if you appended your own code it would run AFTER the Mach4 save, which, again only my guess, is triggered by Tframe:Close().
If your code were pre-pended then I would expect it to run prior to the Mach4 save.

Craig

384
Mach4 Toolbox / Re: How to access "stats" variables
« on: January 03, 2023, 02:43:02 PM »
Hi,
well I cant find any pound variables to match. I wrote this macro:

Code: [Select]
function m500()
local inst=mc.mcGetInstance()
local varNum=0;
local dataValue=0;
for varNum=0, 19999,1 do
dataValue=mc.mcCntlGetPoundVar(inst,varNum)
if(dataValue>=178.5 and dataValue<=178.6)then
wx.wxMessageBox(tostring(varNum))
end
end
end
if (mc.mcInEditor()==1)then
m500()
end

It purpose is to scan through all the pound variables up to #19999 and give a message should a variable have a numeric match for:

Code: [Select]
[Stats]
TotalHours=746.538345
SpindleHours=0.005496
DistanceX=234.864638
DistanceY=178.509416
DistanceZ=16.935888
DistanceA=0.000000
DistanceB=0.000000
DistanceC=0.000000
M3=1
M4=0
M6=37

which was excerpted from the .ini file (on my regular PC, not the machine PC)
I have tested the macro and am reasonably confident that it works and would find a numeric match if there is one....but nothing???

Craig

385
Mach4 Toolbox / Re: How to access "stats" variables
« on: January 03, 2023, 12:58:43 AM »
Hi,
we should be able to write a script to find them.

Craig

386
Mach4 Toolbox / Re: How to access "stats" variables
« on: January 02, 2023, 10:45:04 PM »
Hi,

Code: [Select]
mcCntlSetStats
C/C++ Syntax:
int mcCntlSetStats(
MINSTANCE mInst,
mstats_t *stats);

LUA Syntax:
N/A

Description:
Set/reset the machine statistics.

Mach4Hobby/Doc/Mach4CoreAPI.hm is the API I'm familiar with. Note that all the entries have both a C syntax, for those writing in C, say a plugin
developer, and a Lua syntax, which is more appropriate for us users writing scripts. This particular API has no Lua syntax, ie it's implemented in C only.
Given that's the case then I would suggest that as a 'Hardware Guy' that means that you can't do anything about it.

I keep coming back to finding the pound variables that hold the data....that's something you can do.

Craig

387
Mach4 Toolbox / Re: How to access "stats" variables
« on: January 02, 2023, 09:16:46 PM »
Hi,
well, that describes a data structure in C....but I'm not sure how we can use it.

We have Lua compiler but not a C compiler. I'm not sure how to go about accessing a C structure using the tools we have in Mach4.

I'd still guess that the individual data values that make up the structure are still in pound variable form....but how to work out which ones?.
My first guess  to search for the values would be to write a Lua script which searches through all the pound variables one by one until
you hit a match. For instance, if you know the current state of the accumulated X axis is 1234.56789 then search through all the variable until
you find a match. It would be a fair guess that the variable which has a numeric match is the right one.

Craig

388
Mach4 Toolbox / Re: How to access "stats" variables
« on: December 29, 2022, 03:44:54 PM »
Hi,
I would guess that this data is stored in pound variables. I'm not familiar with which variables they are, but a email to NFS should get you the info you need.
If you do so would you be kind enough to post the results of your search here:

https://www.machsupport.com/forum/index.php?topic=40051.0

So others can replicate your results down the track.

Craig


389
Mach4 General Discussion / Re: wxLathe screen weird problem
« on: December 25, 2022, 12:43:32 AM »
Hi,
the easiest way around that is to rename the earlier version on the screen set that you like with a unique name. Then when you update
the uniquely named .set file will survive the update and can now be selected for use with the updated build.

Craig

390
Mach4 General Discussion / Re: wxLathe screen weird problem
« on: December 24, 2022, 07:38:00 PM »
Hi,
I should add just in case that you don't know, when you make a new screenset say by editing an existing or supplied screenset like wx4.set,
make a copy with a unique name. Then when you update Mach some months down the track your modified wx4.set does not get over written,
it's a PITA to have to redo all that work!

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 »