[Emc-users] TRAM Write Error

2017-08-22 Thread Eric H. Johnson
All,

 

I am getting a "TRAM write error", and not finding much on it in a search. I
am running lcnc 2.8.0-pre1, and using the Mesa 7i43 board. The error occurs
when I physically assert the enable for the third axis. The first two axes
came up fine, but if the only change I make to the configuration is to do an
enable to the third amplifier, the error will occur. Is it perhaps related
to the period of the servo loop? 

 

Thanks,

Eric

 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Chris Albertson
The robot in the videos most defiantly NOT something you would want to use
LinuxCNC for.They do real-time path planning.  Today I'm implement that
with something like a self driving fork lift and save the cost of all that
track.  The machine would roll on the floor with wheels and if it was slow
or if demand increased I could simply buy more self driving forklifts

On Tue, Aug 22, 2017 at 5:06 PM, Rick Gresham 
wrote:

> That's why I wonder about rolling my own versus starting with something
> like that in the video linked below.  Not sure which would be harder, more
> expensive.
>
> https://youtu.be/NRO98Rm58-k
>
>
> > On Aug 22, 2017, at 4:30 PM, Chris Albertson 
> wrote:
> >
> > The resolution is controlled by the step size of the motor.  It's
> > mechanical.  Getting to 1/8 inch over a 100 foot space is easy in terms
> of
> > the software but you will need to invent some hardware that holds to
> those
> > tolerances.
> >
> > On Tue, Aug 22, 2017 at 3:35 PM, Rick Gresham 
> > wrote:
> >
> >> I've only just started trying to learn a little about realtime motion
> >> control so I don't have a good answer re: units. While a complete Star
> >> Trek-like plant console might be really cool, I suspect the investment
> >> would be hard to justify for a largely lights out application.
> >>
> >> I don't need the resolution LinuxCNC provides, +/- 1/8 inch is probably
> >> totally adequate, but controlling a tool position in a finite 3D space
> >> seemed similar enough to a CNC router type application that LinuxCNC
> seemed
> >> like a good place to start learning about the options.
> >>
> >> Rick
> >>
>  On Aug 22, 2017, at 1:05 PM, andy pugh  wrote:
> 
>  On 22 August 2017 at 18:01, Rick Gresham 
> >> wrote:
>  I'm exploring options for a 3 axis controller similar in some ways to
> >> typical cnc router-like application.  What may make my application
> unique
> >> is the size of the 3D space in which the tool operates: up to about
> 150' x
> >> 150' x 50'.  In addition, I need to control tool changes and
> >> calculate/control fluid flow rates based on calculations applied to
> >> retrieved persistent data.
> >>>
> >>> There are no deliberate limits on the size of workspace of LinuxCNC,
> >>> so it ought to work.
> >>> What units would you want to display on the GUI?
> >>>
> >>> --
> >>> atp
> >>> "A motorcycle is a bicycle with a pandemonium attachment and is
> >>> designed for the especial use of mechanical geniuses, daredevils and
> >>> lunatics."
> >>> — George Fitch, Atlanta Constitution Newspaper, 1916
> >>>
> >>> 
> >> --
> >>> Check out the vibrant tech community on one of the world's most
> >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >>> ___
> >>> Emc-users mailing list
> >>> Emc-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/emc-users
> >>
> >>
> >> 
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>



-- 

Chris Albertson
Redondo Beach, California
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Dave Cole
Several years ago I worked on a quote for a job of similar size but the 
accuracy had to be much better.   I think it had to be plus or minus 
0.010 inches or so over the entire 3D space.
A 3D laser tracker was part of the control scheme to track the actual 
tool head location.
That way standard rack could be used for the positioning mechanism and 
the position could be corrected on the fly via the laser tracker.
The machine was a big router used to make parts for modern battleships 
which are constructed of composites.
The router was going to be constructed as part of a building that was 
temperature controlled to minimize the effects of temperature changes.

The DOD killed the contract and the entire project went away.
Without some type of correction, you are going to have to deal with 
temperature expansion/contraction issues which can be considerable over 
150 ft.





On 8/22/2017 8:37 PM, Rick Gresham wrote:

Hmmm, interesting but there's guys already working on that.  No, different 
application but with some similarities - placing a calculated amount of a fluid 
at a specific point or range of points in a 3D space.

  


On Aug 22, 2017, at 5:02 PM, Gene Heskett  wrote:


On Tuesday 22 August 2017 13:01:01 Rick Gresham wrote:

I'm exploring options for a 3 axis controller similar in some ways to
typical cnc router-like application.  What may make my application
unique is the size of the 3D space in which the tool operates: up to
about 150' x 150' x 50'.  In addition, I need to control tool changes
and calculate/control fluid flow rates based on calculations applied
to retrieved persistent data.

Does this sound like something LinuxCNC can handle?


If you can build the hardware, linuxcnc can likely control it.

Sounds like you want to cast buildings with high slump concrete?  In this
case I am sure that linuxcnc's ultimate accuracy will match, or with
suitabe screw compensation, handily beat the elasticity of the support
framework you can still knock down and move on a public road with
permits, 56 wheels and escorts. :)


Private replies welcome.

Thank you.

Rick Gresham
Portland, OR


--
 Check out the vibrant tech community on one of the world's
most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Rick Gresham
Hmmm, interesting but there's guys already working on that.  No, different 
application but with some similarities - placing a calculated amount of a fluid 
at a specific point or range of points in a 3D space. 

 

> On Aug 22, 2017, at 5:02 PM, Gene Heskett  wrote:
> 
>> On Tuesday 22 August 2017 13:01:01 Rick Gresham wrote:
>> 
>> I'm exploring options for a 3 axis controller similar in some ways to
>> typical cnc router-like application.  What may make my application
>> unique is the size of the 3D space in which the tool operates: up to
>> about 150' x 150' x 50'.  In addition, I need to control tool changes
>> and calculate/control fluid flow rates based on calculations applied
>> to retrieved persistent data.
>> 
>> Does this sound like something LinuxCNC can handle?
>> 
> If you can build the hardware, linuxcnc can likely control it.
> 
> Sounds like you want to cast buildings with high slump concrete?  In this 
> case I am sure that linuxcnc's ultimate accuracy will match, or with 
> suitabe screw compensation, handily beat the elasticity of the support 
> framework you can still knock down and move on a public road with 
> permits, 56 wheels and escorts. :)
> 
>> Private replies welcome.
>> 
>> Thank you.
>> 
>> Rick Gresham
>> Portland, OR
>> 
>> 
>> --
>>  Check out the vibrant tech community on one of the world's
>> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> Cheers, Gene Heskett
> -- 
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MDI edit/UI question

2017-08-22 Thread Gene Heskett
On Tuesday 22 August 2017 16:03:45 andy pugh wrote:

> On 22 August 2017 at 13:57, Gene Heskett  wrote:
> > The "axis.py" file this patch apply's to, does not exist in the
> > latest (as of yesterday) 2.8-pre install on my raspberry pi running
> > jessie.
>
> If the file doesn't exist then you won't be able to run the Axis GUI,
> so the cursor problem seem immaterial.
>
> (Have you looked in usr/bin ?)

There is a file named axis there, but Kompare cannot make a showing of 
what the patch would do using that "axis" as the src file.

Calling kompare with nothing but the patch file shows the comparison just 
fine, but appears to pull the source file out of thin air, it does not 
exist on this machine that I can find.  Some sort of black magic?

So if I move this patch to the armhf/jessie machine, how would I go about 
pulling a fresh git image,(or updating the about 60 day old copy I 
have), actually applying the patch, then building and installing what I 
believe is a uspace install over the top of the current 2.8.0-pre* 
install?

Thanks Andy.
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Rick Gresham
That's why I wonder about rolling my own versus starting with something like 
that in the video linked below.  Not sure which would be harder, more 
expensive. 

https://youtu.be/NRO98Rm58-k 


> On Aug 22, 2017, at 4:30 PM, Chris Albertson  
> wrote:
> 
> The resolution is controlled by the step size of the motor.  It's
> mechanical.  Getting to 1/8 inch over a 100 foot space is easy in terms of
> the software but you will need to invent some hardware that holds to those
> tolerances.
> 
> On Tue, Aug 22, 2017 at 3:35 PM, Rick Gresham 
> wrote:
> 
>> I've only just started trying to learn a little about realtime motion
>> control so I don't have a good answer re: units. While a complete Star
>> Trek-like plant console might be really cool, I suspect the investment
>> would be hard to justify for a largely lights out application.
>> 
>> I don't need the resolution LinuxCNC provides, +/- 1/8 inch is probably
>> totally adequate, but controlling a tool position in a finite 3D space
>> seemed similar enough to a CNC router type application that LinuxCNC seemed
>> like a good place to start learning about the options.
>> 
>> Rick
>> 
 On Aug 22, 2017, at 1:05 PM, andy pugh  wrote:
 
 On 22 August 2017 at 18:01, Rick Gresham 
>> wrote:
 I'm exploring options for a 3 axis controller similar in some ways to
>> typical cnc router-like application.  What may make my application unique
>> is the size of the 3D space in which the tool operates: up to about 150' x
>> 150' x 50'.  In addition, I need to control tool changes and
>> calculate/control fluid flow rates based on calculations applied to
>> retrieved persistent data.
>>> 
>>> There are no deliberate limits on the size of workspace of LinuxCNC,
>>> so it ought to work.
>>> What units would you want to display on the GUI?
>>> 
>>> --
>>> atp
>>> "A motorcycle is a bicycle with a pandemonium attachment and is
>>> designed for the especial use of mechanical geniuses, daredevils and
>>> lunatics."
>>> — George Fitch, Atlanta Constitution Newspaper, 1916
>>> 
>>> 
>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> 
>> 
>> 


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Gene Heskett
On Tuesday 22 August 2017 13:01:01 Rick Gresham wrote:

> I'm exploring options for a 3 axis controller similar in some ways to
> typical cnc router-like application.  What may make my application
> unique is the size of the 3D space in which the tool operates: up to
> about 150' x 150' x 50'.  In addition, I need to control tool changes
> and calculate/control fluid flow rates based on calculations applied
> to retrieved persistent data.
>
> Does this sound like something LinuxCNC can handle?
>
If you can build the hardware, linuxcnc can likely control it.

Sounds like you want to cast buildings with high slump concrete?  In this 
case I am sure that linuxcnc's ultimate accuracy will match, or with 
suitabe screw compensation, handily beat the elasticity of the support 
framework you can still knock down and move on a public road with 
permits, 56 wheels and escorts. :)

> Private replies welcome.
>
> Thank you.
>
> Rick Gresham
> Portland, OR
>
>
> --
> Check out the vibrant tech community on one of the world's
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Chris Albertson
The resolution is controlled by the step size of the motor.  It's
mechanical.  Getting to 1/8 inch over a 100 foot space is easy in terms of
the software but you will need to invent some hardware that holds to those
tolerances.

On Tue, Aug 22, 2017 at 3:35 PM, Rick Gresham 
wrote:

> I've only just started trying to learn a little about realtime motion
> control so I don't have a good answer re: units. While a complete Star
> Trek-like plant console might be really cool, I suspect the investment
> would be hard to justify for a largely lights out application.
>
> I don't need the resolution LinuxCNC provides, +/- 1/8 inch is probably
> totally adequate, but controlling a tool position in a finite 3D space
> seemed similar enough to a CNC router type application that LinuxCNC seemed
> like a good place to start learning about the options.
>
> Rick
>
> > On Aug 22, 2017, at 1:05 PM, andy pugh  wrote:
> >
> >> On 22 August 2017 at 18:01, Rick Gresham 
> wrote:
> >> I'm exploring options for a 3 axis controller similar in some ways to
> typical cnc router-like application.  What may make my application unique
> is the size of the 3D space in which the tool operates: up to about 150' x
> 150' x 50'.  In addition, I need to control tool changes and
> calculate/control fluid flow rates based on calculations applied to
> retrieved persistent data.
> >
> > There are no deliberate limits on the size of workspace of LinuxCNC,
> > so it ought to work.
> > What units would you want to display on the GUI?
> >
> > --
> > atp
> > "A motorcycle is a bicycle with a pandemonium attachment and is
> > designed for the especial use of mechanical geniuses, daredevils and
> > lunatics."
> > — George Fitch, Atlanta Constitution Newspaper, 1916
> >
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>



-- 

Chris Albertson
Redondo Beach, California
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread Rick Gresham
I've only just started trying to learn a little about realtime motion control 
so I don't have a good answer re: units. While a complete Star Trek-like plant 
console might be really cool, I suspect the investment would be hard to justify 
for a largely lights out application.  

I don't need the resolution LinuxCNC provides, +/- 1/8 inch is probably totally 
adequate, but controlling a tool position in a finite 3D space seemed similar 
enough to a CNC router type application that LinuxCNC seemed like a good place 
to start learning about the options. 

Rick

> On Aug 22, 2017, at 1:05 PM, andy pugh  wrote:
> 
>> On 22 August 2017 at 18:01, Rick Gresham  wrote:
>> I'm exploring options for a 3 axis controller similar in some ways to 
>> typical cnc router-like application.  What may make my application unique is 
>> the size of the 3D space in which the tool operates: up to about 150' x 150' 
>> x 50'.  In addition, I need to control tool changes and calculate/control 
>> fluid flow rates based on calculations applied to retrieved persistent data.
> 
> There are no deliberate limits on the size of workspace of LinuxCNC,
> so it ought to work.
> What units would you want to display on the GUI?
> 
> -- 
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1916
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC

2017-08-22 Thread andy pugh
On 22 August 2017 at 18:01, Rick Gresham  wrote:
> I'm exploring options for a 3 axis controller similar in some ways to typical 
> cnc router-like application.  What may make my application unique is the size 
> of the 3D space in which the tool operates: up to about 150' x 150' x 50'.  
> In addition, I need to control tool changes and calculate/control fluid flow 
> rates based on calculations applied to retrieved persistent data.

There are no deliberate limits on the size of workspace of LinuxCNC,
so it ought to work.
What units would you want to display on the GUI?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MDI edit/UI question

2017-08-22 Thread andy pugh
On 22 August 2017 at 13:57, Gene Heskett  wrote:

> The "axis.py" file this patch apply's to, does not exist in the latest
> (as of yesterday) 2.8-pre install on my raspberry pi running jessie.

If the file doesn't exist then you won't be able to run the Axis GUI,
so the cursor problem seem immaterial.

(Have you looked in usr/bin ?)

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] LinuxCNC

2017-08-22 Thread Rick Gresham
I'm exploring options for a 3 axis controller similar in some ways to typical 
cnc router-like application.  What may make my application unique is the size 
of the 3D space in which the tool operates: up to about 150' x 150' x 50'.  In 
addition, I need to control tool changes and calculate/control fluid flow rates 
based on calculations applied to retrieved persistent data.  

Does this sound like something LinuxCNC can handle?

Private replies welcome.

Thank you.

Rick Gresham
Portland, OR


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MDI edit/UI question

2017-08-22 Thread Gene Heskett
On Tuesday 22 August 2017 05:10:18 suavesteve wrote

0001-axis.py-add-support-for-MDI-cursor-movement.patch

The "axis.py" file this patch apply's to, does not exist in the latest 
(as of yesterday) 2.8-pre install on my raspberry pi running jessie.

I have a now out of date git pull that I am not running that does have 
this file.

So what file in the current 2.8.0-pre1-3308-g510e1a9 install should I try 
to merge this into by hand?

It is a sorely needed patch.

Thanks

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MDI edit/UI question

2017-08-22 Thread suavesteve
I've ran into this problem, too; best as I could see, it wasn't possible
to use the keys with that particular entry box, so I made a few
modifications to the axis.py script to give me left + right, home and
end keys. It seems to have worked fine for me, for > 6 months.

Philip

>From 17a55baf3af55a5f70a5e9e034810b790d6a06a4 Mon Sep 17 00:00:00 2001
From: Philip Mullen 
Date: Tue, 22 Aug 2017 09:53:45 +0100
Subject: [PATCH] axis.py add support for MDI cursor movement

Allow the keyboard to move the cursor in the MDI entry box
---
 src/emc/usr_intf/axis/scripts/axis.py | 38 ---
 1 file changed, 35 insertions(+), 3 deletions(-)

diff --git a/src/emc/usr_intf/axis/scripts/axis.py b/src/emc/usr_intf/axis/scripts/axis.py
index 55ad515..dfe50a8 100755
--- a/src/emc/usr_intf/axis/scripts/axis.py
+++ b/src/emc/usr_intf/axis/scripts/axis.py
@@ -2298,7 +2298,6 @@ class TclCommands(nf.TclCommands):
 if mdi_history_index != (widgets.mdi_history.size() - 1):
 widgets.mdi_history.selection_set(mdi_history_index, mdi_history_index)
 vars.mdi_command.set(widgets.mdi_history.get(mdi_history_index))
-widgets.mdi_command.selection_range(0, "end")
 
 def mdi_down_cmd(*args):
 if args and args[0].char: return   # e.g., for KP_Up with numlock on
@@ -2316,7 +2315,34 @@ class TclCommands(nf.TclCommands):
 if mdi_history_index != (widgets.mdi_history.size() - 1):
 widgets.mdi_history.selection_set(mdi_history_index, mdi_history_index)
 vars.mdi_command.set(widgets.mdi_history.get(mdi_history_index))
-widgets.mdi_command.selection_range(0, "end")
+
+def mdi_left_cmd(*args):
+if args and args[0].char: return
+if widgets.mdi_command.cget("state") == "disabled":
+return
+
+widgets.mdi_command.icursor(widgets.mdi_command.index(INSERT) - 1)
+
+def mdi_right_cmd(*args):
+if args and args[0].char: return
+if widgets.mdi_command.cget("state") == "disabled":
+return
+
+widgets.mdi_command.icursor(widgets.mdi_command.index(INSERT) + 1)
+
+def mdi_end_cmd(*args):
+if args and args[0].char: return
+if widgets.mdi_command.cget("state") == "disabled":
+return
+
+widgets.mdi_command.icursor(widgets.mdi_command.index(END))
+
+def mdi_home_cmd(*args):
+if args and args[0].char: return
+if widgets.mdi_command.cget("state") == "disabled":
+return
+
+widgets.mdi_command.icursor(0)
 
 def send_mdi(*event):
 if not manual_ok(): return "break"
@@ -2429,6 +2455,7 @@ class TclCommands(nf.TclCommands):
 if bbox and (event.y <= (bbox[1] + bbox[3])) and  (cursel < widgets.mdi_history.size() - 1):
 mdi_history_index = cursel
 vars.mdi_command.set(widgets.mdi_history.get(cursel))
+widgets.mdi_command.focus_set()
 else:
 widgets.mdi_history.see("end")
 widgets.mdi_history.selection_clear(0, "end")
@@ -3039,9 +3066,15 @@ widgets.mdi_command.bind("", commands.mdi_history_clip2hist)
 widgets.mdi_command.bind("", commands.send_mdi)
 widgets.mdi_command.bind("",  commands.mdi_up_cmd)
 widgets.mdi_command.bind("", commands.mdi_down_cmd)
+widgets.mdi_command.bind("",  commands.mdi_left_cmd)
+widgets.mdi_command.bind("",  commands.mdi_right_cmd)
 widgets.mdi_command.bind("", commands.send_mdi)
 widgets.mdi_command.bind("",  commands.mdi_up_cmd)
 widgets.mdi_command.bind("", commands.mdi_down_cmd)
+widgets.mdi_command.bind("",  commands.mdi_left_cmd)
+widgets.mdi_command.bind("",  commands.mdi_right_cmd)
+widgets.mdi_command.bind("", commands.mdi_home_cmd)
+widgets.mdi_command.bind("", commands.mdi_end_cmd)
 widgets.mdi_command.bind("", "break")
 widgets.mdi_command.bind("", "break")
 
@@ -3681,7 +3714,6 @@ def get_coordinate_font(large):
 
 root_window.bind("", pane_top + ".tabs raise manual")
 root_window.bind("", pane_top + ".tabs raise mdi")
-root_window.bind("", "+" + tabs_mdi + ".command selection range 0 end")
 root_window.bind("", commands.next_tab)
 
 init()
-- 
2.9.4

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users