Hello Guest it is April 20, 2024, 01:05:20 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 »
451
If you can make it work for you and your situation..... its most often a great idea.  :)

Mach can certainly be used to control things not on the CNC. Heck, they don't even have to be associated with CNC. Home automation, security, you name it. Its all I/O and mach is pretty good at receiving and sending that stuff. I have lots of plans for Mach4 in this regard.

I added a clapper to my mill once. People would come by and be looking at the mill. I would come out the office and say get you butt back to work and clap (which was tied to Cycle Start).  ;D Some of the reactions were priceless.  Not the safest thing I ever did and neither was drag racing but they were both a lot of fun.

How about logging in remotely and turning the monitor off? Makes people think the machine is possessed. Once the steppers start with their demonic sounds they are certain of it.  ;D

Or a sarcastic screen set that uses the speak function a lot......... that was a hoot but only intended for users with 0 insecurities.  ;D

Just for fun I added in some code for the brown nosing redneck CNC on a customers machine once. Ran a lot of repetitive cycles. Each cycle it would speak "Gettin it done boss, gettin it done". When it reached the cycle count it would say "That job is done did, surely you can find another job for me to do".

If using Mach enhances your life in some way then your doing it right........ no matter what it controls.  :)

452
Mach4 General Discussion / Re: New CV tuning wizard
« on: June 15, 2017, 10:33:12 AM »
Open the wizard, enable CV Feedrate, accept then close Mach. That should make it so it sticks. I think what is happening is you have not saved the ini file with the CV feedrate enabled so it defaults to off. When you exit the config menu it goes back to default because you have not saved it as anything else. That is what happens here at least. I have no control of what happens when exiting the configuration dialog.

453
Mach4 General Discussion / Re: New CV tuning wizard
« on: June 15, 2017, 08:21:30 AM »
I have attached it to this post but there is not anything in it that is not in the wizard itself. If you read the instructions in the wizard, you have read the manual.

It's pretty straight forward. Click the button up top to enable CV feed rate and adjust the 2 sliders and accept.

The way it works is this. For CV feed rate there are 180 settings. One for each angle from 0-179 degrees. Each setting is the max feed rate you want the machine to take that angle at. So the wizard populates the setting for each angle based on slider positions. The stop angles greater than sets the feed rate for any angle greater than it to 0 which means it stops then makes the turn. An angle of 0 degrees can be taken as fast as any axis can go. An angle of one degree can be taken at what ever the Max feedrate slider is set to. That number is divided by the stop CV on angles greater than and the product of that is multiplied by each angle and that product is subtracted from the corresponding angle. That is how it works. The math may be slightly difference but the result would be the same. If you cannot get your CV Feedrate tuned to your liking using the CV tuning wizard you can use the CV_Feedrate wizard to manually enter any value for any angle (0-179).

Play with the wizard as you run the attached CVtest.txt Gcode file and notice the difference in the tool path for different angles.

454
Mach4 General Discussion / Re: Lua ListBox
« on: June 15, 2017, 08:03:46 AM »
You will add items in the form builder project. Look at some of the existing list boxes.

These are the links I use.

http://www.lua.org/manual/5.2/

http://www.lua.org/pil/contents.html#contents

http://docs.wxwidgets.org/3.0.1/

455
I'm pretty sure the mcCvTuningWizard was included in build 3390 but I know you can find the latest at the following link. Put it in your wizards folder and give it a go.

http://www.machsupport.com/forum/index.php/topic,34966.msg240319.html#msg240319

There are no P or Q parameters for G64 in Mach so be sure to clean those up in your Gcode.

456
Mach4 General Discussion / Re: Integers defined
« on: June 07, 2017, 09:10:36 AM »
Yup, your jog type function will not change how any of the screen buttons work, what they do or display. Again...... another great and powerful thing about Mach4. You can set your pendent up to do one thing and your screen to do another. They can run their own totally independent functions or you can have them both run the same function. Just because a button press does an incremental jog doesn't mean a screen button press must do the same thing.

457
Mach4 General Discussion / Re: Integers defined
« on: June 07, 2017, 06:33:03 AM »
Quote
Been looking at that, but having a tough time figuring things out I see there.  What does osig's have to do with toggling between INC and VEL?

In this case replace the word signal with flag when you think about. Most things in Mach4 have an associated signal. Checking those signals (flags) is a way to find out what mode it is in.

The core knows what state its in...... its an osig because it may need to send that state out to motion controllers, pendents, screens, etc. or all of the above. Mach4 gives you lots of tools.

A lot of the examples within the API docs are C++ however where you see something like X_AXIS you can put an mc. infront IE mc.X_AXIS and this will give you the correct result.

MC_JOG_TYPE_INC = mc.MC_JOG_TYPE_INC
MC_JOG_TYPE_VEL = mc.MC_JOG_TYPE_VEL

DazTheGas

Yup, these are constants. It's good practice to use them. Think of them as an alias. The benefit of using them is that updates could change the integer values but if your scripts are using constants it wont brake the script because the constant can be pointed to the correct integer.  If you check their value it will be == to some integer.

This is a nonsensical example that I can't see ever being a reality but a good example scenario so here goes......
The error message table for instance....... the constant mc.MERROR_NOERROR == 0. So today the script could use something like.......

if (rc == 0) then.....
or
if (rc == mc.MERROR_NOERROR) then

and they would both do the exact same thing because today mc.MERROR_NOERROR == 0.

Now pretend that for some reason the core code had to be changed because for whatever reason the error table must be changed so that 0 == mc.MERROR_GINORMOUSERROR and mc.MERROR_NOERROR == 1. If your script used the constant "if (rc == mc.MERROR_NOERROR) then" it would still work after the update. It would return a 1 now but the script would still work exactly as expected. However, if you were basing a decision on the error returning a 0 "if (rc == 0) then" your script would not work as expected because the meaning of 0 has changed from "no error" to "ginormous error".

I hope that makes sense.

I probably need to update the Mach4 lua language package I did for notepad++ but it does have all of the Mach4 constants in it (that existed when I did it).

459
I love them! The "Don't tread on me" is my favorite I think.  :)

Yeah, purpleheart is hard. You ever work with any ebony? It's dense but machines really nice. 

460
Mach4 General Discussion / Re: Modify Touch Screen
« on: June 04, 2017, 02:35:07 PM »
That is the UI in the mcTouchOff.lua module. Your are welcome to edit the module to suit your needs. You can find the module in the Mach4 modules directory.

No, editing it it really won't resemble editing the standard screens at all. I created the UI using form builder. Have a look at the module and see if you still want to edit it and if you do, let me know and I will see if I can get you the formbuilder file for the UI.

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 »