XHC Pendent

This is where you talk about Plugins. How they are made and how they work, show examples.

Re: XHC Pendent

Postby Vmax549 » Tue Aug 28, 2018 7:03 pm

Could you post a sample of teh Code created by teh convertor you spoke of ?

(;-) TP
Vmax549
 
Posts: 1380
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: XHC Pendent

Postby Greolt » Wed Aug 29, 2018 8:43 am

Suggest you use the converter on some rotary axis code of your own.

Shawn's program is very small and does not require installation.

However because you asked... :)

Z origin at surface of 40mm dia cylinder

Code: Select all
( Diameter = 40.000 mm  )
G0 G21 G90 G40 G49 G80 G94
S12000 M03
X0.000 A0.000 F60.0
G0 X-20.000 A57.296 Z5.000
G1 X-20.000 A57.296 Z-1.000 F60.0
G1 X-20.000 A-57.296 Z-1.000
G1 X20.000 A-57.296 Z-1.000
G1 X20.000 A57.296 Z-1.000
G1 X-20.000 A57.296 Z-1.000
G0 X-20.000 A57.296 Z5.000
G0 Z20.000
G0 X0.000 A0.000
M05
M30
%


Code: Select all
( Diameter = 40.000 mm  )
G0 G21 G90 G40 G49 G80 G93 (Inverse Time Mode, Converted from G94)
S12000 M03
X0.000 A0.000
G0 X-20.000 A57.296 Z5.000
G1 X-20.000 A57.296 Z-1.000 F10.0000
G1 X-20.000 A-57.296 Z-1.000 F1.5789
G1 X20.000 A-57.296 Z-1.000 F1.5000
G1 X20.000 A57.296 Z-1.000 F1.5789
G1 X-20.000 A57.296 Z-1.000 F1.5000
G0 X-20.000 A57.296 Z5.000
G0 Z20.000
G0 X0.000 A0.000
M05
G94
M30
%
Greolt
 
Posts: 84
Joined: Sun Sep 04, 2016 6:22 am

Re: XHC Pendent

Postby Vmax549 » Wed Aug 29, 2018 12:12 pm

A small problem I see is teh Feedrate DRO will not take 4 decimal it is set to 1 decimal and rounds up. THere are 2 main methods of calculations 1 based on seconds and 1 based on millisecs. Seconds normally require large decimal values and millisec require large whole number values for feedrate. ;) I came from a time where we did these calculations by hand for simple programing. AND no teh math is not that simple to most users :)

Having a Feedrate dro that would hold xxxx.xxxxx might look a bit odd but I am sure there is a workaround to that problem. OR UCCNC could be programed to change DROS based on G94/95 and G93.

Just a thought, (;-) TP
Vmax549
 
Posts: 1380
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: XHC Pendent

Postby ger21 » Wed Aug 29, 2018 1:53 pm

I would think that UCCNC would respect the 4 decimal feedrate, even though it doesn't display it.
But is it really that critical, even if it didn't? I guess worst case would be 0.6 seconds per move, if it was actually rounded off.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 1156
Joined: Sat Sep 03, 2016 2:17 am

Re: XHC Pendent

Postby Greolt » Thu Aug 30, 2018 12:17 am

I remember Art saying that Mach3 used ten decimal places for all the calculations in the background.

Only the DRO displays were rounded for visual convenience.

I assume UCCNC is similar.

And I would argue that the math is fairly simple when we use computers to crunch the numbers.

Maybe I am just one of the lucky few that use CAM to do that for me. :D
Greolt
 
Posts: 84
Joined: Sun Sep 04, 2016 6:22 am

Re: XHC Pendent

Postby cncdrive » Thu Aug 30, 2018 5:23 am

The floating point numbers are represented as 64bits double precision type.
https://en.wikipedia.org/wiki/IEEE_754
https://docs.microsoft.com/en-us/dotnet ... rds/double

For the feedrate value only the visualisation contains 2 decimal digits, but ofcourse the number calculated with is still handled as a 64bits double type, so there is no digits loss for the calculations, only for displaying...
cncdrive
Site Admin
 
Posts: 2301
Joined: Tue Aug 12, 2014 11:17 pm

Re: XHC Pendent

Postby Greolt » Thu Aug 30, 2018 11:34 pm

cncdrive wrote:For the feedrate value only the visualisation contains 2 decimal digits, but of course the number calculated with is still handled as a 64bits double type, so there is no digits loss for the calculations, only for displaying...


That is what I expected.

Thanks
Greolt
 
Posts: 84
Joined: Sun Sep 04, 2016 6:22 am

Re: XHC Pendent

Postby Greolt » Mon Sep 10, 2018 9:08 am

Vmax549 wrote:Interesting do you hand program or use Cam ??


The updated version of Vectric software (Aspire and Vcarve Pro) have now been released.

They will now produce G93 code for rotary axis work.

They also have much better integration of rotary axis CAM capabilities.

I believe that with their very large user base, this will encourage even more users to look at doing this sort of work.

Would be great to see UCCNC support G93. It would be a shame to have the lack of this feature deter new users taking up UCCNC.
Greolt
 
Posts: 84
Joined: Sun Sep 04, 2016 6:22 am

Re: XHC Pendent

Postby Robertspark » Mon Sep 10, 2018 1:43 pm

Terry, is this aimed at me?
I've not said anything on this thread for a while.
I thought it was a reasonable suggestion for a "universal" approach. I understand why the suggestion was floored and have moved on.
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 1014
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: XHC Pendent

Postby Vmax549 » Mon Sep 10, 2018 2:27 pm

Hi Robert I missed posted it in the wrong section.

Sorry, (;-) TP
Vmax549
 
Posts: 1380
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Previous

Return to Plugins

Who is online

Users browsing this forum: No registered users and 3 guests