Hello Guest it is April 18, 2024, 09:39:35 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 »
1341
Hi,
have you measured how square the X and Y axes are to each other?. Only a very small angular deviation from
900 will have a significant effect on a circular interpolation path.

Craig

1342
Mach4 General Discussion / Re: Seig 2.7
« on: November 12, 2020, 04:38:07 AM »
Hi,
you mention SmoothStepper:
Quote
the online documentation for the stepper motors referenced Smooth Stepper control boards
and then you mention UC100:
Quote
the guys I bought the kit from suggested a UC100,

So which do you have?
They are not the same. The Ethernet SmoothStepper (Warp9TD) has 51 inputs and outputs whereas the UC100 has only 17 inputs
and outputs. The UC100 has sufficient IO for only the most basic of machines, with all the 'input economizing' like combining
home and limit switches that we used to have to do with Mach3 and a parallel port in days gone by. With an ESS, or other boards
like 57CNC (PoKeys) with 57 IO's or the UC300 (CNCDrive) with 85 IO's you can have separate inputs for homes and limits. Thus with a three
axis machine you would have three home switches, one per axis, and six limit switches, two per axis. With that setup all this stuff
like 'Home in Place', Soft Limits and 'Work Area' just falls into place.

Without Home switches and a repeatable Referencing (Homing) procedure you will always get the mind-bending errors you are referring too.
With Home switches you don't get 'Home in Place' and Soft limits which are directly related to 'Work Area' are consistent and repeatable,
without Home switches Soft Limits and Work Area are meaningless.

Craig

1343
Modbus / Re: Mach 4 modbus setup with Click PLC
« on: November 05, 2020, 08:43:14 PM »
Hi,
this post would be best in the Mach4 General Discussion Board, it will get more response.

Using the Mach4 Modbus plugin generates Registers into which you may place data or alternately read data
from the Modbus device.

You will need to write Lua scripts that place the required data into the outgoing data registers and read in incoming
data registers.

It is common to write macros, named m100, m101 etc and then whenever you need to execute code just MDI m100 for example.

Craig

1344
Mach4 Plugins / Re: Plugin for Mega 2590 Ramp 1.4 running GRBL
« on: November 05, 2020, 08:35:21 PM »
Hi,
in order to write a plugin you will need in-depth information about Mach4 and particularly its data IO.
In order to get that info you need to contact NFS and sign a Non-Disclosure-Agreement. NFS are very keen
to have enthusiastic individuals and companies write Mach4 plugins for their hardware......it all benefits
NFS sales.

I must say I echo Zasto's comment that the effort you're going to go to to write a plugin is such that any
commercial return would price it well outside of your projected sale price range.

Given that Mach4Hobby is $200USD, even if you could build a $50 external motion controller, is $250USD
a 'low budget hobbyist CNC primer' solution?

My personal experience of Mach4, and I've been using it for six years is that it is far from a 'low-budget CNC primer' solution,
but competes very favourably with industrial CNC solutions costing many tens of thousands of dollars. It's not so much
that Mach4 (and compatible hardware) is too expensive for low-budget CNC primer but rather that it is a very  cheap
alternative to high end industrial solutions.

Craig

1345
Mach4 General Discussion / Re: MACH4 4th axis Limit switch
« on: November 04, 2020, 05:24:44 AM »
Hi,
that is the advantage of having separate home and limit switches.

If a home switch activates Mach does not care except when the axis is being homed. Limit switches should always be active,
UNLESS you specifically disable them to perform a certain operation and then reinstate them immediately after.

Unless your motion controller has very limited inputs available why not have separate homes and limits? All of the industrial machines
I've encountered all have separate limits and home switches.

Craig

1346
Mach4 General Discussion / Re: macro for Home Axis
« on: November 04, 2020, 03:04:54 AM »
Hi,
do you have a motor assigned as number 5?

If you have no home switch assigned to an axis which is being homed it will 'home in place', ie not move. An axis will
move only when it is logically connected to a motor number and a home signal for that motor is enabled.

Craig

1347
Mach4 General Discussion / Re: MACH4 4th axis Limit switch
« on: November 04, 2020, 03:00:02 AM »
Hi,
why does it matter if the home sensor is triggered, the only time Mach will do anything or act on a home signal is when its homing.

Craig

1348
Hi,
the difference between the two is:

Code: [Select]
LUA Syntax:
rc = mc.mcSignalWait(
number mInst,
number sigId,
number waitMode,
number timeoutSecs);

Description:
Wait on a signal to change state.

Parameters: Parameter Description
mInst The controller instance.
sigId A valid signal ID. (NOT a signal handle)
waitMode An integer specifying whether to wait on the signal to go high (WAIT_MODE_HIGH) or low (WAIT_MODE_LOW).
timeoutSecs A double specifying a timeout period.

and:
Code: [Select]
LUA Syntax:
rc = mc.mcSignalHandleWait(
number hSig,
number waitMode,
number timeoutSecs);

Description:
Wait on a signal to change state.

Parameters: Parameter Description
hSig The handle for the signal.
waitMode An integer specifying whether to wait on the signal to go high (WAIT_MODE_HIGH) or low (WAIT_MODE_LOW).
timeoutSecs A double specifying a timeout period.

So one API uses a Signal_ID where the other uses a Signal_Handle.

All signals in Mach have a numeric signal number or identifier, for instance input signal ISIG_15 has a numeric identifier 16 and the probe signal ISIG_PROBE1
has a numeric identifier of 183 for example. These are Signal_ID's . You can find some useful signal identifiers, other useful ENUMS and various other
lists like machine states, error identifiers etc  here:

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

If you find the Signal_Handle with mc.mcSignalGetHandle(....) a number will be returned corresponding to the handle, an hexadecimal integer of commonly
5 or 6 digits. The 'handle' means...sort of....the current memory location that the variable of interest is in.

Lua is a dynamic memory language and a variable may not have one constant and unchanging memory address but rather its
memory location will be formed, used and then 'garbage collected' as the program segment goes out of scope, whereas a Signal_ID is
constant.

The use of either is fine, all you have to remember is that you get a current signal handle from within the current scope in order to address
a signal variable. While it sounds like using a Signal_ID is better it is programmatically less efficient because Lua has to stop, look up the Signal_ID
table, which could well be in another page of memory,  get the signal current handle, then execute the Signal_Wait routine. Additionally a Signal_ID
is numeric and therefore prone to human confusion, a Signal_ENUM is far less confusing and much easier to read many months after you have
written the code.

I fell into a trap in the early days. I was trying to use mc.mcSignalHandle Wait(inst, mc.ISIG_SPINDLE_AT_SPEED).

The numeric identifier for ISIG_SPINDLE_AT_SPEED is 181. What I did not know was at that time the SignalHandleWait() API was limited to a
signal identifiers of 64 or less and the API failed. It took a lot of shagging around before I discovered the reason. I believe that limitation has since
been rectified but it serves to point out that you are inviting trouble if you do not test EACH AND EVERY possible return code for this API otherwise
you are inviting Mach to hang up, and you'll have to use Task_Manager to stop it, very, VERY tedious after a while.

Craig

1349
General Mach Discussion / Re: Mach3 - usb NVUM_SK BOB outputs not working
« on: October 30, 2020, 11:16:19 PM »
Hi,
that company is on the Hall of Shame record for peddling pirate Mach3 licenses and is not supported here.
If you have bought a genuine license then check with Tweakie, he may relent.

Craig

1350
Hi,
at depower of your circuit one phase is hanging on a few milliseconds longer than the other phases creating a
phase imbalance leading to an RCD trip event.

It looks like the RCD is 'C' curve, that is to say the type demanded by most electrical authorities for protection
of domestic consumers. There are other types, I think possibly 'D' or 'M' types which are more tolerant of momentary
imbalance that will not nuisance trip.

Any industrial electrician will tell you what RCDs are required in domestic situations and those which are for industrial
situations in your jurisdiction.

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 »