Hello Guest it is December 26, 2024, 04:00:19 PM

Author Topic: Mach3 Turn FRP question  (Read 3082 times)

0 Members and 1 Guest are viewing this topic.

Offline Azalin

*
  •  181 181
Mach3 Turn FRP question
« on: October 17, 2017, 06:10:58 PM »
Hi,
I'm trying to setup the Mach3 turning post processor for SolidCAM that I found in the forum cnczone. It is the only PP I could find so I have no other alternative. Howeve, so far the post doesn't look bad except feed per revolution mode doesn't work. When I say FPR will 0.3mm per revolution it runs as CSS at 0.3mm per minute. I'm not an g-code expert (at all) but maybe you guys can help me.

Below is a sample gcode. Can you please help me find out how it should be for FPR run?

Thanks in advance.
Best

%
N1 T0101
N2 G0 X30. Z30.
N3 G97 S1000 M3
N4 G0 X17.002 Z2. M8
N5 (-----------------------)
N6 (TR-TURN-ON-SOLID - TURN)
N7 (-----------------------)
N8  G97 S1000
N9 G0 X17.002 Z2.
N10    X14.062
N11 G1 Z-25.377 F0.3
N12 G2 X14.986 Z-27.778 R-15.4
N13 G1 X15.002 Z-27.833
N14    X15.202
N15 G0 Z2.
N16    X13.122
N17 G1 Z-23.709
N18 G2 X14.062 Z-25.377 R-15.4
N19 G1 X14.262 Z-25.177
N20 G0 Z2.
N21    X12.182
N22 G1 Z-22.413
N23 G2 X13.122 Z-23.709 R-15.4
N24 G1 X13.322 Z-23.509
N25 G0 Z2.
N26    X11.242
N27 G1 Z-21.353
N28 G2 X12.182 Z-22.413 R-15.4
N29 G1 X12.382 Z-22.213
N30 G0 Z2.
N31    X10.302
N32 G1 Z-20.465
N33 G2 X11.242 Z-21.353 R-15.4
N34 G1 X11.442 Z-21.153
N35 G0 Z2.
N36    X9.362
N37 G1 Z-19.71
N38 G2 X10.302 Z-20.465 R-15.4
N39 G1 X10.502 Z-20.265
N40 G0 Z2.
N41    X8.422
N42 G1 Z-19.067
N43 G2 X9.362 Z-19.71 R-15.4
N44 G1 X9.562 Z-19.51
N45 G0 Z2.
N46    X7.482
N47 G1 Z-18.519
N48 G2 X8.422 Z-19.067 R-15.4
N49 G1 X8.622 Z-18.867
N50 G0 Z2.
N51    X7.542
N52 G1 X6.542
N53    Z-18.056
N54 G2 X7.482 Z-18.519 R-15.4
N55 G1 X7.682 Z-18.319
N56 G0 Z2.
N57    X6.602
N58 G1 X5.602
N59    Z-17.668
N60 G2 X6.542 Z-18.056 R-15.4
N61 G1 X6.742 Z-17.856
N62  G97 S1000
N63 G1 X6.967 Z-17.461 F0.15
N64 G0 X7.603 Z-16.342
N65    Z2.
N66    X5.002
N67 G1 Z-17.868
N68 G2 X15.002 Z-32.256 R-15.4
N69 G1 X17.002 Z-32.252
N70  G97 S1000
N71 G0 Z2.
N72    X5.002
N73 G1 Z-17.868 F0.15
N74 G2 X15.002 Z-32.256 R-15.4
N75 G1 X17.002 Z-32.252
N76 G0 Z2.
N77 G0 X30.1 Z30.
N78 M30
%
« Last Edit: October 17, 2017, 06:15:32 PM by Azalin »

Offline Azalin

*
  •  181 181
Re: Mach3 Turn FRP question
« Reply #1 on: October 17, 2017, 06:13:30 PM »
By the way, spindle indexing sensor is working and;

- "Use Spindle Feedback in Sync Modes" option is selected.
- "Closed Loop Spindle Control" is unchecked
- "Spindle Speed Averaging" is checked

Best

Offline RICH

*
  • *
  •  7,427 7,427
Re: Mach3 Turn FRP question
« Reply #2 on: October 18, 2017, 08:33:03 AM »
Can't help in the actual modification of a SolidCam post processor.
Find out what the basis is ( ie; Fanuc based Gcode). Look up G96 and G97 in Fanuc manual for definition of the commands.

Mach3 commands can be found in the Turn manual and in the commmand list you will find G94 and G95 as it has it's owne dialect of Gcode commands compared to Fanuc.

So maualy change the posted gcode from SolidCam or change the  post processor being used.

RICH
« Last Edit: October 18, 2017, 08:34:52 AM by RICH »

Offline Azalin

*
  •  181 181
Re: Mach3 Turn FRP question
« Reply #3 on: October 23, 2017, 05:00:26 AM »
@RICH
Sorry for the delayed answer.

I tried Mach3's threading wizard to see if it would work. Please see the code below. It's for M10x1.5 10mm long thread. When I ran the code the same happened as my first post. Mach3 starts the spindle and axes goes to start point but waits there for something to start threading.

G0 G40 G18 G80 G50 G90
G00 G53 X10 Z10
T202M6
G00 X10.025
G00 Z0
G00 X10
M03 S300
G76 X8.2 Z-10 Q5 P1.5 J0.006 L45 H0.1 I29 C0.025 B0.0001 T0
M9
M5
M30

Anything unusual with the code?

I think the problem was mainly related to the index reading. It was something like 500 +-10 RPM and I think Mach3 wants a constant RPM to start threading. I widened the slot on the disk to 12mm. This improved the reading a bit. Now it's like 500 +-4 RPM but still isn't good. Then I measured the voltage of my C3 indexing board voltage. It was 3.5v. I then added a 5v power supply and dedicated it to the C3. While adjusting the output voltage of the power supply to 5.0v by rotating the trimpot, the rising/dropping voltage made the optical sensor fail. I ordered a new sensor. I believe the result with the new sensor will be even better.

My question is, does Mach3 wants a steady RPM reading to start threading?
« Last Edit: October 23, 2017, 05:03:30 AM by Azalin »

Offline RICH

*
  • *
  •  7,427 7,427
Re: Mach3 Turn FRP question
« Reply #4 on: October 23, 2017, 06:40:05 AM »
There is an index setting in Config> General Logic Configuration called Index Debounce.
The input value represents how manny times Mach3 needs to read and see a the index trigger.
You will need to try different values to suite your setup. I use a value of 10, some can get away with 1,
and others required greater numbers. If too high the Z axis will just sit there a long time.

The more accurate and steady the actual rpm the better. If it's all over the place you will never do accurate
threading and have problems. Plus or minus 1 or varying some by say 1 to 1/2 rpm should be ok, BUT,
get it as accurate and steady as possible. Then do some testing.  

Get the index working correctly first and suggest you read  / study THREADING  ON THE  LATHE-MACH3 TURN
which you can find in Members Doc's or also in the directory where you installed Mach3 if they are still including it in the installation of Mach3.

RICH

Offline Azalin

*
  •  181 181
Re: Mach3 Turn FRP question
« Reply #5 on: October 23, 2017, 06:52:30 AM »
Hi RICH,

Thanks for your answer.

The "Index Debounce" is set to 20. I tried many numbers and found that 20 is best for me.

Offline Azalin

*
  •  181 181
Re: Mach3 Turn FRP question
« Reply #6 on: October 28, 2017, 03:20:46 PM »
Hi again.

I've done too many things including fresh Mach3 install. Nothing changed. I've replaced the index sensor. Nothing changed. Index Debounce was 20. Tried 2 to 20, one by one. Nothing changed.
https://www.youtube.com/watch?v=CWFM7iRSYYQ