![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I have set up EMC2 with four axis and now need to set up the fourth axis with a couple of shortcuts on the key board. I would like to use "Insert and Delete" keys to jog the fourth axis. Does anybody know how to do this? I have tried adding to the tkemc.tlc file but keep coming up with errors. Here is what I have added, maybe I didnt add something properly, proc priorDone {} { jogStop 2 bind ManualBindings } proc priorDown {} { axisSelect 2 bind ManualBindings after cancel priorDone jogPos 2 } proc priorUp {} { global debounceTime after cancel priorDone after $debounceTime priorDone } bind ManualBindings bind ManualBindings proc nextDone {} { jogStop 2 bind ManualBindings } proc nextDown {} { axisSelect 2 bind ManualBindings after cancel nextDone jogNeg 2 } proc nextUp {} { global debounceTime after cancel nextDone after $debounceTime nextDone } bind ManualBindings bind ManualBindings ################################################################ # Added for fourth axis proc insertDone {} { jogStop 3 bind ManualBindings } proc insertDown {} { axisSelect 3 bind ManualBindings after cancel insertDone jogPos 3 } proc insertUp {} { global debounceTime after cancel insertDone after $debounceTime insertDone } bind ManualBindings bind ManualBindings proc insertDone {} { jogStop 3 bind ManualBindings } proc deleteDown {} { axisSelect 3 bind ManualBindings after cancel deleteDone jogNeg 3 } proc deleteUp {} { global debounceTime after cancel deleteDone after $debounceTime deleteDone } bind ManualBindings bind ManualBindings ################################################################### bind . # force explicit updates, so calls to emc_estop, for example, don't # always cause an NML read; they just return last latched status emc_update none Any help would be greatly appreciated. I do not understand the tcl langauge that well, so if any one out there could give me some advice as to what I am doing wrong, I would be very grateful. Thank you for your patience. |
|
#2
| |||
| |||
| Ok, I figured it out. Here is the revision. ################################################ proc priorDone {} { jogStop 2 bind ManualBindings } proc priorDown {} { axisSelect 2 bind ManualBindings after cancel priorDone jogPos 2 } proc priorUp {} { global debounceTime after cancel priorDone after $debounceTime priorDone } bind ManualBindings bind ManualBindings proc nextDone {} { jogStop 2 bind ManualBindings } proc nextDown {} { axisSelect 2 bind ManualBindings after cancel nextDone jogNeg 2 } proc nextUp {} { global debounceTime after cancel nextDone after $debounceTime nextDone } bind ManualBindings bind ManualBindings ###################################### proc insertDone {} { jogStop 3 bind ManualBindings } proc insertDown {} { axisSelect 3 bind ManualBindings after cancel insertDone jogPos 3 } proc insertUp {} { global debounceTime after cancel insertDone after $debounceTime insertDone } bind ManualBindings bind ManualBindings proc deleteDone {} { jogStop 3 bind ManualBindings } proc deleteDown {} { axisSelect 3 bind ManualBindings after cancel deleteDone jogNeg 3 } proc deleteUp {} { global debounceTime after cancel deleteDone after $debounceTime deleteDone } bind ManualBindings bind ManualBindings ################################################### bind . Note: I had to use a diffrent editor from the default. I ended up using Screem HTML/XML editor. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creat new Machine Set-up, | CharlieM | Kellyware CAM | 2 | 01-14-2008 11:08 PM |
| My mill are making shortcuts?? | spesmek | LinuxCNC (formerly EMC2) | 3 | 12-14-2007 04:21 PM |
| How can I creat tubular 3D enteties(with arcs) | PeteGallo | General CAM Discussion | 21 | 08-07-2007 08:12 AM |
| Keyboard shortcuts for jog commands? | hindocarina | Mach Mill | 6 | 06-14-2007 09:29 PM |
| VCarve Pro Shortcuts | dighsx | Vectric | 0 | 08-01-2006 04:20 PM |