Tools and tool table

More
26 Mar 2013 03:30 #31876 by LAIR82
Replied by LAIR82 on topic Re:Tools and tool table
I was able to figure out what was going on. I entered the lines manually, and when I started to enter the info I saw that the line preceeding the first line I needed to enter was different, it ended with "pocket_number" not "index" like it showed on the patch. I went to my other machine and looked at the same file and line and it ended with index as well. I changed it to index and saved it. When I recompiled linux, during the make command, it errored at that line, 5097 I think, and then it showed about a dozen other instances where it referenced pocket number and not index. I went line by line after line 5097 and changed every instance to index. I did a "sudo make clean", then went thru and re-compiled again, this time no errors. Started linux up, and now it works the way it should with the patch applied, T0101 calls tool 1 and applies the wear offset in location 10001 in our tool table.

Thanks Again Andy,

Like I've said before, every day I learn something new about linux. Sometimes it just takes a little guidance to get me started from all of you guys.

Thanks

Rick

Please Log in or Create an account to join the conversation.

More
26 Mar 2013 03:43 #31877 by andypugh
Replied by andypugh on topic Re:Tools and tool table

I was able to figure out what was going on. I entered the lines manually, and when I started to enter the info I saw that the line preceeding the first line I needed to enter was different, it ended with "pocket_number" not "index" like it showed on the patch. I went to my other machine and looked at the same file and line and it ended with index as well. I changed it to index and saved it.


I think you changed them all the wrong way, and will have problems in the future:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...2eb679e1879aa81ed629

"pocket_number" makes a lot more sense than "index", and in the future the two may become very different concepts.

Please Log in or Create an account to join the conversation.

More
26 Mar 2013 22:45 #31927 by LAIR82
Replied by LAIR82 on topic Re:Tools and tool table
I went back thru, and changed everything back to "pocket_number" including the added info for the patch, and recompiled and it's still working properly.

Hopefully we are cutting chips by the end of the day.

Will try to post some pictures of this build in the next few days.

Thanks again,

If there was only a way to buy you guys a beer I would,

Rick

Please Log in or Create an account to join the conversation.

More
31 Mar 2013 00:30 #32100 by jlviloria
Replied by jlviloria on topic Re:Tools and tool table
Rick,

it worth getting into your post.

I have a question, after working several months my machine, I have the need to apply the patch fanuc, but I saw that you had some details with the patch,
 
could you be kind enough to tell me the best way to apply the patch, I see you've even changed the logic of the patch. I hope you can help me.


thank you very much in advance for your attention

Please Log in or Create an account to join the conversation.

More
02 Apr 2013 02:24 - 02 Apr 2013 04:11 #32163 by jlviloria
Replied by jlviloria on topic Re:Tools and tool table
Rick worth bothering ...

I wanted to apply the patch fanuc, but I get the same error on line 5097, I've wanted to fix me modify file and change all pocket_number by index, but does not solve the problem.

error: scr/emc/rs274ngc/interp_convert.cc: no match index

Rick please thank you any help.

Jorge Viloria
Last edit: 02 Apr 2013 04:11 by jlviloria.

Please Log in or Create an account to join the conversation.

More
02 Apr 2013 08:05 #32176 by LAIR82
Replied by LAIR82 on topic Re:Tools and tool table
Hello Jorge,

Sorry it took so long to get back to you.

As for the fanuc style patch, I wasn't able to get it to apply the way it should due to slight revisions of "master" at this current point. I was able to apply it properly on our previous build, due to the patch being made to the same version when we applied it. You are a correct regarding the "index vs. pocket_number" issue, that is why the patch will not appy properly, the current version of master refers to pocket numbers not index positions. the first thing I would do is open the patch and change everything in the patch that says "index" to "pocket_number", example

+ CHP((find_tool_pocket(settings, geo_offset_register, &index)));

Change it to

+ CHP((find_tool_pocket(settings, geo_offset_register, &pocket_number)));

The current build we are working on, I had to hand edit each respective file to add or delete the associated data for the files. The three files to be modified are,

src/emc/rs274ngc/interp_convert.cc | 33 ++++++++++++++++++++++++++++++---
src/emc/rs274ngc/interp_find.cc | 5 +++++
src/emc/rs274ngc/interp_internal.hh | 1 +

Each line is colorcoded, blue gets added, purple gets deleted.

3 files changed, 36 insertions(+), 3 deletions(-)

And as it says there are 36 lines added and 3 lines deleted. It tells you at what line the data gets added or deleted and it shows what data comes before and after each modification. You have to pay attention to where you are entering the info though, because the line numbers may be off by a line or two due to current revisions, and also on the interp_convert.cc file by the time you get to the last couple of additions it will be 10-20 lines off because the line numbers are based on the info being added at the same time not section by section. If you need any help let me know and I can try to show you in more detail.

Its not the right way of doing it but I might try to take a whack at making it proper so the patch will apply to the current version properly and then post for everyone, I just need to talk to the maker of the patch to make sure I can and don't step on his toes in the process.

Thanks

Rick
The following user(s) said Thank You: jlviloria

Please Log in or Create an account to join the conversation.

More
03 Apr 2013 02:20 #32186 by jlviloria
Replied by jlviloria on topic Re:Tools and tool table
Rick, I did what you told me, I think everything is fine now.

but when compiling linux, I give make clean

jorge@jorge-desktop:~$ cd linuxcnc/src
bash: cd: linuxcnc/src: No existe el fichero o el directorio
jorge@jorge-desktop:~$ cd linuxcnc-dev/src
jorge@jorge-desktop:~/linuxcnc-dev/src$ sudo make clean
[sudo] password for jorge:
Makefile:55: Makefile.inc: No existe el fichero o el directorio
Makefile:66: *** Makefile.inc must specify RTPREFIX and other variables. Alto.
jorge@jorge-desktop:~/linuxcnc-dev/src$ .autogen.sh
.autogen.sh: orden no encontrada
jorge@jorge-desktop:~/linuxcnc-dev/src$ ./autogen.sh
autom4te: cannot create autom4te.cache: No such file or directory
jorge@jorge-desktop:~/linuxcnc-dev/src$ ./autogen.sh
autom4te: cannot create autom4te.cache: No such file or directory
jorge@jorge-desktop:~/linuxcnc-dev/src$ make clean
Makefile:55: Makefile.inc: No existe el fichero o el directorio
Makefile:66: *** Makefile.inc must specify RTPREFIX and other variables. Alto.
jorge@jorge-desktop:~/linuxcnc-dev/src$

I get these errors, not to do .. I hate so much ignorance on my part.


please can you tell me where is my mistake?


thanks


jorge viloria

Please Log in or Create an account to join the conversation.

More
03 Apr 2013 02:45 #32187 by andypugh
Replied by andypugh on topic Re:Tools and tool table

please can you tell me where is my mistake?


You need ./configure after ./autogen.sh

Please Log in or Create an account to join the conversation.

More
03 Apr 2013 04:34 #32191 by jlviloria
Replied by jlviloria on topic Re:Tools and tool table
friend andy, sorry I do not understand what you say applies from the terminal command:

jorge @ jorge-desktop: ~ / linuxcnc-dev/src $. / configure
bash:. / configure: No such file or directory

I hope not cause discomfort

Please Log in or Create an account to join the conversation.

More
03 Apr 2013 04:50 #32192 by BigJohnT
Replied by BigJohnT on topic Re:Tools and tool table
Remove the space between the ./ and the command configure

jorge @ jorge-desktop: ~ / linuxcnc-dev/src $. /configure

John

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum