On 7/29/2012 5:46 PM, Kent A. Reed wrote:
> On 7/29/2012 4:53 PM, andy pugh wrote:
>> On 29 July 2012 21:43, jeremy youngs <jcyoung...@gmail.com> wrote:
>>> thanx andy i wiil try that im a little confused "2 trailing new 
>>> lines"? I
>>> think you are sying remove tool 5 then reload?
>> No, I am saying that the file ends with two blank lines, and that
>> seems to be causing a problem. I don't know why, as it shouldn't.
>>
>
> I haven't fully unraveled the convoluted logic in 
> src/emc/rs274ngc/tool_parse.cc but I suspect it assumes every line has 
> data items and only checks to see if it has the right number of them.
>

To follow up, I just built both 2.5.1 and 2.6.0_pre simulators (using 
latest available source code via git). They both choke on blank lines in 
the tool table but not in the way I envisioned.

In either simulator, if I

1) run the "random tool changer" sim configuration that comes with the 
distribution and

2) edit the accompanying tool table to introduce two blank lines, one in 
the middle and one at the end, e.g.,

...
T9 P14...
<blank line>
T5 P15...
T4 P16...
<blank line>

and

3)  reload the tool table

then Linuxcnc complains if I try to load either T9 or T4 using mdi but 
accepts T5 without complaint.

I've posted this to the bug tracker.

Now, if only I had an automated tool changer :-)

Regards,
Kent


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to