CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 20, 2017, 11:35:17 am


Login with username, password and session length


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

Posts: 3139



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 19 times.)
* Wrapper-2.1.0.pdf (361.71 KB - downloaded 23 times.)

* wrap2.jpg (90.74 KB, 800x560 - viewed 23 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
****
Online Online

Posts: 304



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: 3139



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 15 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: 3139



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 13 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
Pages: 1 ... 6 7 [8]
  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.116 seconds with 18 queries.

Copyright © 2008 HexRay Ltd. | Sitemap