Hello Guest it is April 27, 2024, 04:33:33 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 »
7251
Mach4 General Discussion / Multiple controllers/devices
« on: January 05, 2017, 06:33:04 AM »
Hi All,
is it possible to have more than one motion controller active at once? I had assumed not but in truth don't know.

Looking at the Mach config for both inputs and outputs it looks like you can have different devices active for different I/Os.
Is this correct?

Craig


7252
Mach4 General Discussion / Re: Lua
« on: January 05, 2017, 06:06:32 AM »
Hi,
just had a look at the PoKeys 57 manual, pretty impressive.

From what I can gather you can have a total of 55 inputs or outputs, less one for each analogue input and less two
for every encoder. Haven't quite worked out how the digitised data gets communicated yet but guess its via Modbus registers.

If you can have more than one motion controller active you'll be fine.

Craig

7253
Mach4 General Discussion / Re: Lua
« on: January 05, 2017, 05:38:10 AM »
Hi Craig,
to my knowledge Mach4 can have one motion controller active at a time. I'm a very recent convert to M4 so what I say
is far from gospel. If I'm correct then a simple in/out pin pair arrangement won't work with ESS.

I am unfamiliar with the PoKeys board but sounds like your best bet particularly if it has analogue inputs.

Mach4 has plenty of in/out but you have to squeeze it thru your motion controller, I think that's going to be your
bottleneck.

Craig

7254
General Mach Discussion / Re: Kress FME-1050-1 + Inverter?
« on: January 05, 2017, 05:10:46 AM »
Hi,
correct me if I'm wrong but aren't Kress universal motors, ie wound armature/brushes and wound stator?

Inverters that you are talking about are 3 phase output for induction machines, different animal.

Craig

7255
General Mach Discussion / Re: AIRCRAFT PROPELLER
« on: January 05, 2017, 05:04:58 AM »
Hi,
yeah really nice job. I use 22's and 24's on a 94cc chainsaw engine, they scare the hell out of me at 9000rpm...


Craig

7256
Mach4 General Discussion / Re: Lua
« on: January 05, 2017, 04:44:43 AM »
Hi Craig,
I live in New Zealand.

That's a pretty impressive control panel, without any multiplexing I got to 27 inputs without counting the MPGs or Overrides.

I would be having a close look at the number of input/output pairs you require. I to use the ESS and it has three ports. Lets assume
that the motors, limits and homes use one port, leaving two still to be assigned. Assume also that you configure pins 2-9 on both
ports as inputs for a total of 26 inputs (2-9+10-13+15 times 2) and 8 outputs (1+14+16-17 times 2). Without multiplexing not enuf.

The overrides as you have shown them are analogue so will have to be converted to digital signals and even as serial inputs will
require 1 pin per override without multiplexing. MPGs require two pins each.

I think you either have to rationalise your control panel or do some sort of MODBUS arrangement. Depends on what you want to do,
if your hobby is tinkering with electronics and software go MODBUS or similar, if you want to make things with your machine then
shagging around with MODBUS is going delay proceedings bigtime.

Craig

7257
Hi smurph,
that's describes exactly what I see happening... thanks for the explanation. While I might have floundered around
for a bit I've learnt stuff on the way, good fun.

Having a bit of trouble with:
mc.mcGoCookMeSteakand Eggs()
maybe in the next build...LOL

Craig

7258
Mach4 General Discussion / Re: Lua
« on: January 05, 2017, 03:05:48 AM »
Hi Craig,
how many buttons does your control panel have?

If its a reasonable number say 5 or less then the simplest way would be to assign 5 pins as input to Mach and
assign 5 pins as outputs from Mach to turn on the lights. I'm not familiar with your controller but would guess you
have enuf inputs/outputs

There are more complicated ways (MODBUS) to do it where you can have dozens of inputs/outputs if you need them.

Craig

7259
Mach4 General Discussion / Re: Lua
« on: January 05, 2017, 01:15:32 AM »
Hi Craig,
I'm a newcomer to LUA myself and like you really struggled initially. While by no means fluent I'm getting there. Having got over
the hump I now find LUA to be superb.

API=Application Program Interface
mc.=Mach Core

LUA like all computer languages have variables which you can manipulate in any number of ways. For LUA to be useful to us we
need to be able to make it do things to our machine. Mach provides a whole bunch of functions which allow you to do that, collectively
called the API. On the 'Program Run' page with 'File Ops' in the lower notebook with Mach enabled there is a 'Help Docs?' button and in
there 'Mach4CoreAPI.chm' provides the complete list, aside from other manuals and lists. Its quite daunting to look at to start with.

Take a simple one to start with:
inst=mc.mcGetInstance()

The mc. means 'a function within Mach Core' and the function is mcGetInstance. Sometimes the mc. is referred to as a namespace
There are others and some I have a lot of trouble with for instance wx.  It refers to wxWidgets functions which are  graphical windows,
message boxes, dialogues and that sort of thing. Another one which crops up a lot is scr.  It addresses screen elements like buttons and LEDs.
While the Mach Core API is well documented some of the others are not, scr. for instance. wx. on the other hand is superbly documented
because it is so widely used by so many different languages, the downside is its so complete I can't usually make much sense of it, it takes
some serious 'nerdiness' to read.

I've found particularly with wx. I copy/edit examples of whats already been written, setting up frames, panels and event handlers from scratch
is not easy.

For basic LUA stuff I often have
https://www.lua.org/pil/contents.html
open on the desktop so I can dip into it at need.

The good news tho is that unless you have a particular need for something that you probably don't really need to write any code to convert
a machine, Mach4 is pretty complete for milling machines. Additionally if you do want something the chances are that someone has probably
got something pretty close you can copy/edit. There are some regular contributors, Daz-The-Gaz especially who is VERY well versed in LUA and
really goes out of his way to help newcomers.

Craig

7260
Mach4 General Discussion / Re: mcCntlGetGcodeFileName ...Crashes M4
« on: January 03, 2017, 10:09:27 PM »
Hi smurph,
tried that out and it works exactly as you said it would. The gcode probe job is constructed/written by another program
which calls my macros M40() and M41() and so that's how I named them.

Following your post I renamed them m40() and m41() and the job ran fine or even calling from the MDI line.

Still thinking about filenames. I record the path and filename of the probe job in a register with:
mc.mcRegSetValueString(hreg,pathCode); ie as its not read by the interpreter the string stored retains both
upper and lowercase of the original filename. At the end of the probe job m41() is called which among other things
opens the gcode file with:
   local pathCode=mc.mcRegGetValueString(hreg);
   local hcode=assert(io.open(pathCode,"r")); ie LUA is searching for a file. Would it succeed on a Windows platform if the
filename was correct but all in lowercase say?

I guess I can try it to see!

At the current time I believe M4 only runs on Windows platforms. Is it realistic to believe that it will run on other platforms
in the near future?

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 »