Hello Guest it is April 27, 2024, 12:39: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 - Chaoticone

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 »
461
Mach4 General Discussion / Re: Module Works Simulator
« on: June 02, 2017, 11:08:41 AM »
I have not. I don't have any W7 machines anymore.

462
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: June 02, 2017, 09:33:36 AM »
Hi. I was allso wondring about the RC word... What does it mean?
And how exactly do I make a external button to set an output without going back to previous state when using momentary buttons? I tought I knew, but still dont.
When a momentary button are pressed it changes state, but it does it again on release... This is probably a dumb question...
I tought I got control of my buttons until yesterday whan I found out that things dont work...

Things work just fine as screen buttons, but not as pokeys unput buttons...

Daz... Please. You know all about this, dont you ???

An tutorial video for dummies during setup of Pokeys buttons would be just awesome :))



Lots of ways you can do buttons, inputs, etc..

Regular button ..... is a momentary. It goes down when clicked and back up when released. Toggle: one press or state change sets the state of something, another press sets another state, another press........ etc.

First find out what state your in then do what ever you want on the next press/state change. For an on screen button do it in the buttons clicked script, for an input button use the sig lib (signal script) in the screen load script. If you want an on screen button and an input button to do the same thing create a function and call it from the on screen button and sig lib. If want a custom m code to do the same thing roll that function into a module and call if from onscreen buttons, input buttons and/or m codes.

Toggle Button....... is a two state button. It has an up and down state that are maintained until the next click. The up state script and properties are what you want the button to do, look like and say when in the up state. Same for down.

You can do any of teh above with dwell by using a timer as Daz has already done such a good job showing.



463
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: June 02, 2017, 09:15:15 AM »
Hi Chaoticone, thanks for the encouragement, it was of course your fault that I discovered the simplicity of using the standard switch as momentary.  Lesson there was, don’t assume without trying.

Other lesson, be more precise when asking questions.  I led DazTheGas off on a tangent looking for the switch to have a time delay, because that is what I asked for.  He is a good man hey.  Still I ended up using his idea in the Macros for M3, M4 and M5.  So all good.  And learned about the wx.timer along the way.

Now there you go mentioning something that I now need to know about.   Kind of like saying to a child, “did you know about the free ice cream?”  As if they are going to let that go.

Error checking??  Has that something to do with the rc.____  I see it a lot?  I worked out the “rc” must be Return Code, but return from what?

Thanks  Chaoticone, off to hit my head against another brick wall.

Craig.


Yup, rc = return code. It is used for Machs built in error checking and returned from the core (which is the wizard behind the curtain, manages all things Mach) the best I understand. I think all of the api calls have the various possibilities for each call listed in the API help file. The more you learn/understand about Machs lua the better the help file is. It really is good.

Here is a link you might find helpful.
http://www.machsupport.com/forum/index.php/topic,32263.msg224557.html#msg224557

And an attachment.

464
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: June 01, 2017, 08:48:11 AM »
Nice! I knew you would get it.  :)

You could use the return calls to do some error checking to make it a little more robust but what you have should work just fine.

I love seeing folks grow.

465
Mach4 General Discussion / Re: Module Works Simulator
« on: May 31, 2017, 06:02:16 PM »
Are you running the latest version of Mach4?

466
Mach4 General Discussion / Re: Mach 4 6 axis screen set
« on: May 30, 2017, 05:53:11 PM »
Yes, wx6. It has been included with the hobby installer for a while now.

467
Home in place should work. Make sure you do not have any axis enabled that you do not have Home in Place enabled for. Also, make sure your looking at machine coordinates and not work coordinates. Referencing does not change work offsets, only the positions work offsets are relative to.

Might want to start with a single axis. Get one axis doing as it should then add the next.

468
Mach4 General Discussion / Re: change the mother board to a Mach4
« on: May 30, 2017, 10:00:01 AM »
I highly recommend you read our FAQs page. It's a pretty short read and has lots of good information. You may find the "Where do I start? Are there Steps?" FAQ in particular very helpful.

http://www.machsupport.com/help-learning/f-a-q/

469
Mach4 Videos / Re: Mach4 Quicky #8 - Updating Custom WX4`s
« on: May 28, 2017, 09:23:36 AM »
Nice Daz!

470
Yes, well I bet they call you side pocket in the Netherlands too then.  ;D

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 »