Turn software update?

While UCCNC does not currently have a TURN Modual Here is the place to discuss your wants and wishes for TURN

Re: Turn software update?

Postby neodd70 » Wed Dec 06, 2023 10:03 pm

So I have tried a number of different posts processors including LinuxCNC and Mach3Turn. They will generate g-code that works but not 100%. For example I want to be able to use tool offsets which require a G43 H? whereas Mach3 uses T0101 the second 01 indicates the tool offset to use. Also need to have the ability to select G6 or G8 depending on if you are using radius or diameter as you cutting preference. Does anyone know how to modify an existing Post Processor to add these settings?
neodd70
 
Posts: 5
Joined: Fri Sep 30, 2022 3:51 pm

Re: Turn software update?

Postby andrej » Wed Jan 10, 2024 1:39 pm

neodd70 wrote:So I have tried a number of different posts processors including LinuxCNC and Mach3Turn. They will generate g-code that works but not 100%. For example I want to be able to use tool offsets which require a G43 H? whereas Mach3 uses T0101 the second 01 indicates the tool offset to use. Also need to have the ability to select G6 or G8 depending on if you are using radius or diameter as you cutting preference. Does anyone know how to modify an existing Post Processor to add these settings?


Did you find a solution? I used LinuxCNC PP for Fusion360 but it only outputs M6 Tx G43 and I need to add Hx after G43 manually to the generated gcode. Then it works fine and changes the XZ offsets according to tool table in UCCNC.

No idea how to add G43 Hx unfortunately...
andrej
 
Posts: 24
Joined: Tue Jun 07, 2022 1:56 pm
Location: Piešťany, Slovakia

Re: Turn software update?

Postby andrej » Wed Jan 10, 2024 5:32 pm

Changed line 798 in linux cnc turning F360 PP code to:

Code: Select all
writeToolBlock("T" + toolFormat.format(tool.number), mFormat.format(6), conditional(tool.manualToolChange && !outputG43OnSeparateLine, gFormat.format(43)), "H" + toolFormat.format(tool.number));


It now outputs:

Code: Select all
N15 T1 M6 H1


Tested on lathe and it works fine. G7/G8 too.
andrej
 
Posts: 24
Joined: Tue Jun 07, 2022 1:56 pm
Location: Piešťany, Slovakia

Re: Turn software update?

Postby CNC Doktor » Wed Oct 09, 2024 5:46 pm

Is it possible to use servo motor as headstock spindle and use encoder outputs from servo drivers as feedback?
CNC Doktor
 
Posts: 4
Joined: Sat Dec 28, 2019 9:59 am
Location: Croatia

Re: Turn software update?

Postby CNC Doktor » Mon Oct 14, 2024 3:31 pm

Anyone?
CNC Doktor
 
Posts: 4
Joined: Sat Dec 28, 2019 9:59 am
Location: Croatia

Re: Turn software update?

Postby Leo Pedersen » Mon Oct 14, 2024 9:41 pm

I would expect so, yes.
If you have A, B, & Z(index) signal outputs available from your servo drive you should be able to wire them in to your UC device.
Leo Pedersen
 
Posts: 4
Joined: Sat Sep 17, 2022 2:21 am

Re: Turn software update?

Postby CNC Doktor » Tue Oct 15, 2024 10:36 am

Leo Pedersen wrote:I would expect so, yes.
If you have A, B, & Z(index) signal outputs available from your servo drive you should be able to wire them in to your UC device.


Thanks!
CNC Doktor
 
Posts: 4
Joined: Sat Dec 28, 2019 9:59 am
Location: Croatia

Re: Turn software update?

Postby kljosc » Mon Dec 02, 2024 5:38 pm

It works in UCCNC Turn 1.2117. I have a stepperonline T6 1 kW AC Servo with break.
Parameterization was a challenge. You have to set parameter PA5.06 stopping mode to 1 and some other tweaks. I have uploaded my parameter settings file (rename ist to myfilename.lsr).
Connect all +/- encoder output (A, B, Z) to your breakout board, check A/B direction.
For my UC400ETH I have changed the PA0.11 to 360 (output pulse count per rev.) because the UC400ETH looses pulses above 3000 rpm. In UCNC settings => Spindle => Encoder CPR = 1440 (360 * 4).

Klemens
Attachments
Drehbank_T6.txt
(11.67 KiB) Downloaded 10 times
kljosc
 
Posts: 13
Joined: Sun Jun 03, 2018 1:52 pm

Re: Turn software update?

Postby cncdrive » Mon Dec 02, 2024 10:38 pm

Yes, UCCNC can read a max. 50 kHz encoder frequency, so you have to calculate that and divide the encoder counts in the servo drive, otherwise the spindle encoder will not work properly.
cncdrive
Site Admin
 
Posts: 4901
Joined: Tue Aug 12, 2014 11:17 pm

Previous

Return to UCCNC TURN (CNC Lathe)

Who is online

Users browsing this forum: No registered users and 0 guests