On 06/27/2015 02:49 PM, Tom Easterday wrote:
> I tried all combinations of STEP_SCALE, MIN_LIMIT, and MAX_LIMIT
> using
the .axisrc hack to display a back lathe. There is one config where
everything works EXCEPT that the up arrow moves the carriage down and
down arrow moves the carriage up - see "4) ****" below. So, I if I can
find the trick to remap the arrow keys I might have this working. I
don’t see the keys being messed with in the .axisrc code below. Does
anyone know what I would enter to reverse the meaning of the arrow keys
for just the X axis (up/down keys)? Or, barring that, is there some
other parameter that I have overlooked that will get me the behavior
shown here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?BackToolLathe
<http://wiki.linuxcnc.org/cgi-bin/wiki.pl?BackToolLathe> ?
>
>
> I have this in .axisrc:
> if lathe:
>   bind_axis("Down", "Up", 0)
>   def set_view_y(event=None):
>       widgets.view_z.configure(relief="link")

It looks like bind_axis() above does something with key bindings:
"...
> def bind_axis(a, b, d):
>     root_window.bind("<KeyPress-%s>" % a, kp_wrap(lambda e: jog_on(d, 
> -get_jog_speed(d)), "KeyPress"))
>     root_window.bind("<KeyPress-%s>" % b, kp_wrap(lambda e: jog_on(d, 
> get_jog_speed(d)), "KeyPress"))
>     root_window.bind("<Shift-KeyPress-%s>" % a, lambda e: jog_on(d, 
> -get_max_jog_speed(d)))
>     root_window.bind("<Shift-KeyPress-%s>" % b, lambda e: jog_on(d, 
> get_max_jog_speed(d)))
>     root_window.bind("<KeyRelease-%s>" % a, lambda e: jog_off(d))
>     root_window.bind("<KeyRelease-%s>" % b, lambda e: jog_off(d))
..."

You might try changing
bind_axis("Down", "Up", 0)
to
bind_axis("Up", "Down", 0)

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to