Hi all
I have been meddling with my post for a while now, and almost everything is working now. My big problem now is to get an radius from the center of the machine added the right place in the code, as the control calculates the feedrate from that R value.
The generated code looks like this:
%PM9000
N9000 ( T )
N1 M53
N2 G17 T14 M6
N3 G59
N4 G0 X0. Y-20. B9.167 S5000 M3
N5 Z120. M8
N6 Z55.
N7 G1 Z49. F150. R49. (The value is here)
N8 Y-12. F700.
N9 Y-11.262 B9.128 (Should be here)
N10 Y-10.53 B9.011
N11 Y-9.811 B8.817
N12 Y-9.11 B8.548
N13 Y-8.434 B8.206
N14 Y-7.789 B7.794
N15 Y-7.179 B7.316
N16 Y-6.61 B6.775
N17 Y-6.088 B6.176
N18 Y-5.616 B5.525
N19 Y-5.198 B4.826
N20 Y-4.839 B4.086
N21 Y-4.54 B3.312
N22 Y-4.305 B2.509
N23 Y-4.136 B1.684
N24 Y-4.034 B.846
N25 Y-4. B0.
N26 B-360.
N27 Y-4.034 B-360.846
N28 Y-4.136 B-361.684
N29 Y-4.305 B-362.508
N30 Y-4.54 B-363.311
N31 Y-4.839 B-364.086
N32 Y-5.198 B-364.826
N33 Y-5.616 B-365.524
N34 Y-6.088 B-366.176
N35 Y-6.61 B-366.774
N36 Y-7.179 B-367.315
N37 Y-7.789 B-367.794
N38 Y-8.434 B-368.206
N39 Y-9.11 B-368.548
N40 Y-9.811 B-368.817
N41 Y-10.53 B-369.011
N42 Y-11.262 B-369.128
N43 Y-12. B-369.167
N44 Y-20.
N45 G0 Z120.
N46 M9
N47 M5
N48 T0 M6
N49 G74 Y1
N50 G74 X1
N51 B0
N52 M30
The problems are marked with ( ) in the code. I only want this R value each time the B axis starts moving in G1 at the depth of cuts. As I have mentioned this is an edited Fanuc post, and the post is attached to the post.
The code for the R value is here and the protr is also in the plinout under motion output in the post.
protr
if index = zero & rot_on_x,
[
rotaryr = ((prv_zabs)*1)
srotr = rotaryr
srotr
]
Any suggestions how to fix this?
I have another small problem in mastercam, I have to pick substitute around X instead of Y to get it right, I can live with this, but if it is an easy thing to fix I would like to do that :-)
Cheers, Daniel