Hello Guest it is March 28, 2024, 11:59:41 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 »
291
Mach4 General Discussion / Re: List of Control States?
« on: February 08, 2018, 05:43:20 PM »
Look at all the options for enabled states for a button in screen editor. That may help.

292
Mach4 General Discussion / Re: Glad |I asked first
« on: February 08, 2018, 05:41:12 PM »
Wish I had time to explain it all but I don't. It has been explained very well many, many times already. Here (on this forum) and other places.

But I can save you some time. Just reread my previous reply. It's been my job for 25 years to make machines produce good parts. thosj gave a real good real world example. If you have code that rewrites the laws of physics then please ignore my input. Otherwise backlash comp is a selling point most software and hardware manufacturers are pressured into implementing by customers that are certain it is an acceptable solution.

293
Mach4 General Discussion / Re: Glad |I asked first
« on: February 08, 2018, 03:58:08 PM »
Quote
In fact, the ONLY reason I was going the Mach4 route over the GRBL setup was because I wanted the backlash compensation.

This has been debated to death and in some cases backlash comp. can work. The problem is the 99.9% of the cases it wont work in. Backlash compensation on a control truly is an oxymoron. And in those cases it wont work in, this is not just my opinion it's a simple fact. Until someone finds a bit of software that can rewrite the laws of physics the only fix for backlash is removing the mechanical backlash.

294
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 08, 2018, 03:20:00 PM »
Quote
I put this in the "First Run PLC Script."  It didn't crash and as far as I can tell it didn't alter anything else.  Is that okay?  Or is there a better way to make something run only on startup?   Open to any and all suggestions.  

Yes, that is acceptable. I would build the function in the screen load script and call that function only once from the PLC script by doing like you have in first run or maybe even third run.

Quote
Also, I thought we could use Global Variables (like "testcount" in PLC Script) everywhere, even in a macro.  It won't let me.

I like calling them regionally global.  ;D

Macros and screens run in 2 different instances so ones global is not global to the other. The only thing (that i know of) right now that is global global are registers. They can be read and written to from the screen, macros, modules, lua panels, etc.

295
Mach4 General Discussion / Re: List of Control States?
« on: February 08, 2018, 03:09:33 PM »
These could be stuffed into a table (like the mcErrorCheck module) pretty quick using notepad++.
Code: [Select]
MC_STATE_IDLE =                   0,
MC_STATE_HOLD =                   1,
MC_STATE_FRUN_SUB =               2,
MC_STATE_MRUN_SUB =               3,
MC_STATE_JOG =                    4,
MC_STATE_DRYRUN =                 5,
MC_STATE_HOME =                   6,
MC_STATE_CONFIG =                 7,
MC_STATE_FRUN =                   100,
MC_STATE_FRUN_FH =                101,
MC_STATE_FRUN_PROBE =             102,
MC_STATE_FRUN_PROBE_FH =          103,
MC_STATE_FRUN_THREAD =            104,
MC_STATE_FRUN_THREAD_FH =         105,
MC_STATE_FRUN_FH_JOG =            106,
MC_STATE_FRUN_TAP =               107,
MC_STATE_FRUN_MACROH =            108,
MC_STATE_FRUN_MACROH_JOG =        109,
MC_STATE_FRUN_SINGLE_BLOCK =      110,
MC_STATE_FRUN_RETRACT =           111,
MC_STATE_FRUN_HOMING =            112,
MC_STATE_FRUN_SINGLE_BLOCK_HOLD = 113,
MC_STATE_FRUN_END =               199,
MC_STATE_MRUN =                   200,
MC_STATE_MRUN_FH =                201,
MC_STATE_MRUN_PROBE =             202,
MC_STATE_MRUN_PROBE_FH =          203,
MC_STATE_MRUN_THREAD =            204,
MC_STATE_MRUN_THREAD_FH =         205,
MC_STATE_MRUN_TAP =               206,
MC_STATE_MRUN_MACROH =            207,
MC_STATE_MRUN_MACROH_JOG =        208,
MC_STATE_MRUN_RETRACT =           209,
MC_STATE_MRUN_HOMING =            210,
MC_STATE_MRUN_END =               299,

296
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 08, 2018, 02:36:17 PM »
I'm not sure what your exact flow is but you may need to do a couple of message boxes. One ask a question........ then pop up next based on response. Could have lots of options for next. Might even need more steps which = more message boxes. I hope that makes sense.

297
Mach4 General Discussion / Re: Touch Screen vs Probing Screen
« on: February 08, 2018, 02:26:38 PM »
Quote
Does calibration performed in the probing screen affect the touch screen?

No, the in screen method and the touch module are 2 totally different things.

Quote
When would you use one feature over the other?

In a nutshell........... when one suits your needs or way of working better than the other.

The biggest difference is the in screen probing was meant to be used with actual probes. The Touch module will work with a probe but not as nice as the built in probing. But, the touch module will also work for those using touch plates and /or tools instead of a probe. Without a probe with give built in, doing a fast find (which the built in screen probing does) can damage the tool / part / touch plate.

I also tried to make the Touch module a good example folks could study and learn by or even modify to their own liking. It was also good practice for me writing it with a useful purpose.

298
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 08, 2018, 11:25:06 AM »
Sure is..........

local MyNum = wx.wxGetNumberFromUser("Message", "Prompt", "Caption", 50, 0, 100) --Default, min, max

Or you can get it as a string and then convert it to a number. Can do some checks with either, flip numbers, etc. Goods and bads using both methods. Just have to figure out what works best for you and your condition.

local MyText = wx.wxGetTextFromUser("Message", "Caption", "Default Value")


299
Mach4 General Discussion / Re: Mach 4 Goto Zero
« on: February 08, 2018, 11:19:11 AM »
Yup, folding works good. Just make sure all of your end of lines are for windows format (Edit, EOL conversion, Windows). If the eol is mixed folding doesn't work correctly. Also make sure you put one line after the very last. If not, formatting may not look right.

I also use the function list, document map and view all characters pretty often. Notepad++ is just an awesome tool.


300
Mach4 General Discussion / Re: Mach 4 Goto Zero
« on: February 08, 2018, 06:06:26 AM »
Quote
I could imagine writing some code to do a text compare or maybe there is a feature like text compare in one of the text programs.

Notepad++ has a compare plugin. You paste both scripts in as 2 different files then compare using the compare plugin. It will show you where any differences are if any. Using Notepad++ with the Mach4 lua language package I posted for it is an extremely useful tool. I still use the 32 bit version of Notepad++ because many of the plugins weren't supported in 64 bit last time I looked.

https://notepad-plus-plus.org/

http://www.machsupport.com/forum/index.php/topic,32263.msg224557.html#msg224557

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 »