NativeCAM is Features renamed

More
9 years 9 months ago #85365 by kjacobs
Hi Fern,
in ncam.py at around lines 3159 and 3193 (give or take a few) instead of
out.append(_("%s") % repr(i[1]))
it should rather read
out.append("_(%s)" % repr(i[1]))

otherwise xgettext and msgcat get rather confused about menu.xml and the .cfg files. I am slowly trying to find out how to incorporate translations. Not quite there yet, but at least I have a ncam.po file to work with by now.
Thanks for your great work!
Karl
The following user(s) said Thank You: FernV

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

More
9 years 9 months ago #85393 by FernV
Replied by FernV on topic NativeCAM is Features renamed

kjacobs wrote: in ncam.py at around lines 3159 and 3193 (give or take a few) instead of
out.append(_("%s") % repr(i[1]))
it should rather read
out.append("_(%s)" % repr(i[1]))


Hi Karl,
This may be just the error I was looking for. Nice if you succeed and have a po file.

Since I think getting strings for translation is not needed in ncam.py, I extracted the related code and saved it in a script named 'get_tstrings.py' that can be executed in the main directory of NativeCAM. There is still more work to do like incorporating a stripped version of Feature class, etc...

I also think code to edit preferences should be in a different file callable from ncam.py. Only reading preferences is needed in ncam.py

Best regards
Fern

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

More
9 years 9 months ago - 9 years 9 months ago #85416 by FernV
Replied by FernV on topic Plasma modifications
Hi,

I just uploaded an update for plasma that includes a lead_out subroutine and many minor corrections.

To use with a plasma cutter you need a THC configured but you can test without it. In Preferences/Plasma tab is a checkbox that must be unchecked to use the configured THC.

Load the demo


The files uploaded use only X and Y axis but if for any reason you need to control a Z axis, simply remane catalogs/plasma/_menu-custom.xml to menu-custom.xml which will be loaded instead of the default menu.xml
Also it is very important that your ini file defines all 3 axis and you use core_sim.hal instead of core_sim2d.hal and simulated_home.hal instead of simulated_home2d.hal

When loading for axis interface in 2d, you will have an error message that says z is used because I think it tries to load the 'LinuxCNC' engraver ngc file. I do not know how to remove it

Happy testing
Fern
Last edit: 9 years 9 months ago by FernV. Reason: Add screen shot

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

More
9 years 9 months ago #85418 by FernV
Replied by FernV on topic Plasma modifications

grijalvap wrote: Hi
I did some modifications to the code in order to get it working in my plasma
I removed all Z related, in the .cfg, and .ngc files.


Hi

I was wrong, you can rename ncam_demo/ncam to whatever you want to prevent copying over your edited files. Starting with the demos config will create a new ncam subdir and copy new files in it.

Fern

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

More
9 years 9 months ago #85452 by cncnoob1979
image missing http://i346.photobucket.com/albums/p431/swill008/IMG_0507_zpsombtjlj1.jpg

Above is the result of trying to cut a .75in in cast iron. It goes to a diesel tractor balancer. The part is not trashed however I'm trying to figure out why my 1/2in end-mill went outside of the planned trajectory. As you can see in the pictures I tried clockwise and counter-clockwise :) I stopped the machine before any major damage.

I waited until the end-mill was done with the ramp in, the ran the table up to match the required depth I needed. After the ramp the machine stayed in the .75 inch constraints.

The machine would start to ramp in about .25in outside the planned cut. However I do not see that in gremlin.


I have not experienced this before. Is this a result of linuxcnc or NativeCam? Any ideas? Or ---- Did I do it to myself and not realize my mistake?
Code:
~ $ uname -a Linux bridgeport 4.8.11-rt7 #1 SMP PREEMPT RT Wed Dec 28 16:50:40 CST 2016 i686 i686 i686 GNU/Linux ~ $ cat /etc/issue Linux Mint 17.3 Rosa Linuxcnc 2.8Pre latest git pull last week as well. NativeCAM for LinuxCNC 2.5 latest git pull was last week sometime.

Setting below, sorry was easier for me to take pictures at the time.

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

More
Time to create page: 2.759 seconds
Powered by Kunena Forum