![]() | |
| 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'm having trouble sorting over the lengthy docs can someone please help ? I've already got everything setup w/ the steppers and got past the external MPG tutorial, so I can use a jog-dial on an axis, which does work. The example unfortunately wants me to use a MUX encoder to toggle between axis and jog resolutions. What I want to do, is assign a push-button to select the MPG jog resolution (.1, .01, and .001) - and another pushbutton to assign the axis (x, y, or z). So, it would default to the first value, and each time I push the button it iterates thru the list looping back to the first. Is there an example somewhere or can someone help me figure out how to do this please? Thanks.
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. |
|
#2
| |||
| |||
| You could do this using classicladder connect your button (through CL) to a counter then have outputs that respond to each count of that counter. similar idea to this: http://wiki.linuxcnc.org/cgi-bin/emc...dexing_counter If you know how to program you could also build a custom HAL component. see the manual. |
|
#3
| ||||
| ||||
| I managed to figure out how to toggle the MPG resolution with one button, it took me two days of studying, trial and error: Code: # The following is the 4-value select / pushbutton ! net scale1 toggle.3.in <= pyvcp.jogResB1 net scale2 toggle.3.out => pyvcp.mux4Led1 toggle.4.in mux4.0.sel0 net scale3 toggle.4.out => pyvcp.mux4Led2 mux4.0.sel1 # sets the jog value for the mpg net pend-scale axis.0.jog-scale <= mux4.0.out net pend-scale axis.1.jog-scale net pend-scale axis.2.jog-scale
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. Last edited by DrStein99; 10-22-2009 at 10:01 AM. |
![]() |
| 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 |
| Jog Mode Toggle | dynamotive | Mach Software (ArtSoft software) | 0 | 09-29-2009 09:04 PM |
| Robotool CVM1 toggle switches | fred.rowe | Want To Buy...Need help! | 0 | 07-25-2009 11:05 AM |
| Q: Mach3 Wiring / Toggle Switch | Deviant | Gecko Drives | 3 | 02-10-2009 09:21 PM |
| DIY Toggle Clamp Holddowns | Regnar | DIY-CNC Router Table Machines | 6 | 04-19-2007 07:33 PM |
| Can bad forward/reverse toggle cause motor not to spin? | ZipSnipe | General Electronics Discussion | 16 | 06-03-2006 08:45 AM |