CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 13, 2017, 07:12:04 am


Login with username, password and session length


Pages: 1 ... 6 7 [8] 9
  Print  
Author Topic: Wrapper Plugin  (Read 26102 times)
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3256



View Profile
« Reply #105 on: October 05, 2017, 13:20:17 pm »

Your luck must be in  Cheesy

Please find attached v2.1.0 for CamBam v1.0, I'll see what needs to be done for v0.9.8

1. select User or Auto rotation angles.
2. user manual updated
3. added a check to verify that Diameter and Circumference are compatible (just in case 'Enter' was not pressed following entry of a new value)

* WrapperPlugin_v2.1.0.zip (19.52 KB - downloaded 35 times.)
* Wrapper-2.1.0.pdf (361.71 KB - downloaded 34 times.)

* wrap2.jpg (90.74 KB, 800x560 - viewed 40 times.)
« Last Edit: October 05, 2017, 14:44:16 pm by EddyCurrent » Logged
robertk925
CNC Ewok
*
Offline Offline

Posts: 12


View Profile
« Reply #106 on: October 05, 2017, 17:13:38 pm »

Indeed it is! This plug-in is now perfect for my use.

Wow, what an incredible resource you are Eddy (and thanks to Geoffrey for the original plug-in).
Logged
robertk925
CNC Ewok
*
Offline Offline

Posts: 12


View Profile
« Reply #107 on: October 09, 2017, 21:16:30 pm »

One issue that I just recently had come up. Any ideas what an A axis value of "NaN" means (see line #7 in the Gcode below)? "Not a number"? For reference, I want to engrave a small slot linearly along the top of a cylindrical part at A0 (i.e. parallel to the axis of rotation). Thanks!

GCode before conversion:
1. G21 G90
2. G0 Z3.0
3. T10 M6 (Part1\EngraveMid\45 deg V Cutter\0.0)
4. ( EngraveMid )
5. G17
6. M3 S1000
7. G0 X10.0 Y0.0
8. G0 Z1.0
9. G1 F200.0 Z-0.2
10. G1 F400.0 X0.0
11. G0 Z3.0
12. M5


GCode after conversion:
1. G21 G90
2. G0 Z6.175
3. T10 M6 (Part1\EngraveMid\45 deg V Cutter\0.0)
4. ( EngraveMid )
5. G17
6. M3 S1000
7. G0 X10.0 ANaN
8. G0 Z4.175
9. G1 F200.0 Z2.975
10. G1 F400.0 X0.0
11. G0 Z6.175
12. M5
Logged
BR52
Wookie
****
Offline Offline

Posts: 307



View Profile
« Reply #108 on: October 09, 2017, 23:03:58 pm »


dividing zero by zero is NaN, bug on WrapperPlugin!

   Armando
Logged
robertk925
CNC Ewok
*
Offline Offline

Posts: 12


View Profile
« Reply #109 on: October 09, 2017, 23:08:12 pm »

Thanks Armando, that makes sense. What's interesting is if I move the slot to a different Y value (i.e. not Y=0, but let's say Y=5), I still get the NaN value. So, I assume the divide-by-zero bug is triggered by the Y value not changing?
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3256



View Profile
« Reply #110 on: October 10, 2017, 08:54:05 am »

I tested the code with the last version Geoff put out and it gives the same result.
It must be kept in mind though that Wrapper is not appropriate for the operation you describe and I'm confident it was not envisioned at the time of writing.
I'll have a look to see what can be done.

Edit:

Questions

1 . What number would you like to see after the A in line 7 ?
2. if you change the Y value to 5 what number should come after the A ?

Under normal cicumstances you are trying to map a range of values in Y to a range of values in A

Ymin->Ymax maps to Amin->Amax

but in this case there is no range in Y so how do we determine what A (angle) it should be ?
It implies that the values in "Rotation Angle A" boxes should be equal and at the required angle, then we could use that value.

See attached picture for an example.


* ex1.jpg (62.44 KB, 800x560 - viewed 33 times.)
« Last Edit: October 10, 2017, 20:59:55 pm by EddyCurrent » Logged
robertk925
CNC Ewok
*
Offline Offline

Posts: 12


View Profile
« Reply #111 on: October 10, 2017, 17:17:23 pm »

Hi Eddy:

Your example is exactly what I would want/expect. Y=5/Circumference=20, A=90 degrees. If Y=0, then A=0 degrees.

I am not clear why the user min/max would have to be used (since I don't know the algorithm in the program). If we ignore the min/max completely, i.e. we don't scale the results, wouldn't the conversion calculation always be Y/C*360 (in the examples above, 5/20*360=90, 0/20*360=0)? If we want to use min/max, those numbers could be used to scale this result. Again, I am speaking out of complete ignorance on how the program is written.  Grin
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3256



View Profile
« Reply #112 on: October 10, 2017, 20:45:14 pm »

Version 2.2 attached. Works with CamBam v1.0 and 0.9.8

Can accept identical values of,  Y minimum and Y maximum (or X minimum and X maximum)

* WrapperPlugin_v2.2.zip (19.5 KB - downloaded 33 times.)
« Last Edit: October 10, 2017, 20:53:16 pm by EddyCurrent » Logged
robertk925
CNC Ewok
*
Offline Offline

Posts: 12


View Profile
« Reply #113 on: October 10, 2017, 22:52:33 pm »

Works great! Thank you very much (again).
Logged
Z-vision
CNC Ewok
*
Offline Offline

Posts: 8


View Profile
« Reply #114 on: December 10, 2017, 23:16:23 pm »

I am using your wrapper plugin and having some trouble with the outcome

When the machining does number 1 it comes out half the size of the other numbers and letters.

Also the top of number 5 does not follow the tool path, it also shows the skipping the tool path in the mach3 view.

All other letters are coming out perfect and also if I use Goode before I use the wrapper plug in it works fine.

Would you know what I can do to fix this?

Please tell me what you need to see as in files and I can arrange for them to be posted


* E1D5456E-8980-4F0F-B58D-BFFAC4130002.jpeg (1356.11 KB, 4032x3024 - viewed 17 times.)
Logged
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2280



View Profile
« Reply #115 on: December 11, 2017, 00:09:44 am »

Usually the CB file is needed to diagnose your problem and possibly give an advice. Wink
Logged

My 2
Z-vision
CNC Ewok
*
Offline Offline

Posts: 8


View Profile
« Reply #116 on: December 11, 2017, 01:54:22 am »

Ok great Ill get the cb file tonight and post it up.
Logged
Z-vision
CNC Ewok
*
Offline Offline

Posts: 8


View Profile
« Reply #117 on: December 11, 2017, 06:42:59 am »

I will be able to send you cb file in an hr or so. But for now what version wrapper should be be using ?
If the gcode works fine on flat before I use the wrapper would this suggest a setting with the wraper ?
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3256



View Profile
« Reply #118 on: December 11, 2017, 08:28:58 am »

This version; http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/Wrapper_plugin.html
Logged
Z-vision
CNC Ewok
*
Offline Offline

Posts: 8


View Profile
« Reply #119 on: December 11, 2017, 10:51:21 am »

here are the files guys see if you can work it out. I'm only new so could be something small
the 5 and 1 are not coming out right.  it seems to be fine in the normal gcode but when i go to the wrapper plug-in then it starts  doing funny things

 

* serial number.Part1 [Engrave2]_Transformed.nc (12.13 KB - downloaded 2 times.)
* serial number.cb (23.25 KB - downloaded 5 times.)
* serial number.Part1 [Engrave2].nc (12.5 KB - downloaded 2 times.)
« Last Edit: December 11, 2017, 10:54:36 am by Z-vision » Logged
Pages: 1 ... 6 7 [8] 9
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.257 seconds with 19 queries.

Copyright © 2008 HexRay Ltd. | Sitemap