Hello Guest it is April 20, 2024, 11:32:34 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 »
581
Mach4 Videos / Re: Creating a function for the Screen Load Script
« on: December 14, 2016, 10:01:11 AM »
Could you run the soft limits enable function from the Ref All home function? Maybe twice........... once at beginning to disable then again after motion stops to enable?

582
Mach4 General Discussion / Re: New engraving screen for testing
« on: December 09, 2016, 02:23:50 PM »
Here is a link to a little video about the Font Engrave module.

https://www.youtube.com/watch?v=qoi8i-FA0a4

583
Mach4 Plugins / Re: Pokeys Mach4 plugin LUA reference for LCD
« on: December 08, 2016, 05:47:58 PM »
NP, that may not be exactly right (I did not get to test it) but you get the idea. Would make it a lot cleaner.

584
Mach4 Plugins / Re: Pokeys Mach4 plugin LUA reference for LCD
« on: December 07, 2016, 03:21:09 PM »
Good, glad your making progress.

This might work too.

Put this in your screen load script....

--------------------------------------------------------------
-- Yaskawa Pendant Clear LCD Display
--------------------------------------------------------------
function YPenLCD(Axis, Line)
    local CurPos = scr.GetProperty("droCurrent" .. tostring(Axis), "Value")
    local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line" .. tostring(Line)))
    mc.mcRegSetValueString(hreg, string.format(tostring(Axis) .. ":  " .. tostring(CurPos) .. "          "))
end

This in you PLCs first run....
YPenLCD(X, 1)
YPenLCD(Y, 2)
YPenLCD(Z, 3)
YPenLCD(A, 4)

This in your X DRO update event.......
YPenLCD(X, 1)

This in your Y DRO update event.......
ThiYPenLCD(Y, 2)

etc, ect. for Z and A DROs

585
Mach4 Plugins / Re: Pokeys Mach4 plugin LUA reference for LCD
« on: December 06, 2016, 07:13:10 PM »
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 1"))
                 mc.mcRegSetValue(number hReg, 0x01)

In line 2, is "number hReg" right? Shouldn't it just be hReg?

Seems to me this should clear it.........

local hreg = mc.mcRegGetHandle(inst, "PoKeys_32062/LCD Line 1")
mc.mcRegSetValue(hReg, "                    ")

586
General Mach Discussion / Re: Question for Plasma guys on material sensing
« on: December 06, 2016, 03:24:09 PM »
Thanks for the update Hood.

Did you get your fan yet?

587
General Mach Discussion / Re: Mach Not Closing After Enabling Modbus
« on: December 06, 2016, 01:53:57 PM »
I think I would do a clean install of Mach3 and enable modbus in one of the default profiles to see if the issue still exist.

588
General Mach Discussion / Re: Mach Not Closing After Enabling Modbus
« on: December 06, 2016, 01:23:39 PM »
Are you running any antivirus? If so, what happens when you disable it?

589
Mach4 Plugins / Re: Pokeys Mach4 plugin LUA reference for LCD
« on: December 05, 2016, 06:03:23 PM »
OK, the reason the LCD does not update when Mach starts up is because the DROs are not updating and that script only runs when the DROs update (value changes). Anything that changes the value of the DROs should update the LCD.

Quote
I have not been able to find a command to send via the POKEYS unit to clear the LCD display in the very beginning so the POKEYS on MACH4 message gets erased prior to the coordinates getting display, but I will keep looking.  I know I can build a string of "   " 20 spaces and send that which might be a work around.

Not familiar with it but yes, sending an empty string should clear it.

OK, my idea is to build a function that updates the LCD. It would basically be all of the script you put in each dro combined into a single function in the screen load script. Then in the PLC script check to see if the DROs have changed and if they have, run the function. Also, to initialize the LCD when Mach starts run the function once in first run of PLC script. Look in the router screen sets PLC script for the Update fractional DROs section to see how it would work.

Another option that may be even better is to update the LCD to the values in the DROs in the first run of the PLC script and leave the onupdate scripts where they are (no need for a function in the screen load script then and will only run once when Mach is launched).

This should have put an X in front of the X value in the LCD display..........
Xcoords = string.format("X%4.4f", Xcoords)

This should put a X, a : and a space..........
Xcoords = string.format("X: %4.4f", Xcoords)

590
Mach4 Plugins / Re: Pokeys Mach4 plugin LUA reference for LCD
« on: December 05, 2016, 05:08:54 PM »
I have another idea that I think will work better all around. Let me know if your interested.

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 »