Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Fanuc turnmill (Doosan turnmill post) c-axis reveresing cw to ccw?

tisler
Enthusiast

Fanuc turnmill (Doosan turnmill post) c-axis reveresing cw to ccw?

tisler
Enthusiast
Enthusiast

I tried to do some text engraving on the face of a turned part, but it came out mirrored.

I spent some time trubleshooting and I think my C-axis is rotaing opposite way as intended (ccw).

Is there a way to modify post, to change (reverse default cw, to ccw) direction of C-axis rotation? How?

 

Post is "doosan turmill" - fanuc, latest version.

 

Fusion screen + mirrored part (ufinished)

problem-mirror.jpg

0 Likes
Reply
Accepted solutions (1)
1,561 Views
11 Replies
Replies (11)

Arun.rs
Autodesk
Autodesk

HI @tisler 

 

Thanks for raising your concern via Forum.

 

You can simply change the C axis rotation reversed by changing the following line;

 

 C axis.png

 

Kindly check the output carefully.

 

Regards



Arun.RS
Technical Consultant - Post Processor
0 Likes

tisler
Enthusiast
Enthusiast

Thank you for your help, I tried this modificaton, but there is no change on C-axis rotation.

I tried in with climb milling, but it does convetonal instead.

I even tried without polar interpolation (point to point), same restult, wrong spindle direction.

post_edit.JPG

0 Likes

tisler
Enthusiast
Enthusiast

As you can see there is no difference in C-code output.

 

 

Code with -1

 

%
O1021 (KLJUC_STANCA 1)
G21
M68
G80 (RAZVELJAVITEV CIKLOV LUKENJ)
G40 (RAZVELJAVITEV KOREKCIJE RADIUSA PLOSCIC)

N1(2D CONTOUR2)
G0 G28 U0.
G28 W0.
M89
G54
G98 G18 M80
G0 G28 H0.
T0606
(TRDOKOVINSKI_FI10)
M8
G97 S3820 M83
G0 Z5.
X30.406
C0.
G12.1
G1 X30.34 C1. F1500.
Z1.
Z0. F353.68
Z-17.
X30.325 Z-17.121 F763.94
X30.282 Z-17.239
X30.21 Z-17.355
X30.111 Z-17.465
X29.986 Z-17.568
X29.837 Z-17.663
X29.666 Z-17.749
X29.476 Z-17.823
X29.269 Z-17.885
X29.049 Z-17.935
X28.819 Z-17.971
X28.581 Z-17.993
X28.34 Z-18.
X26.34
G3 X24.34 C0. I0. J-1.
G1 C-4.35 F1222.31
G2 X8.7 C-12.17 I-7.82 J0.
G1 X-8.7
G2 X-24.34 C-4.35 I0. J7.82
G1 C4.35
G2 X-8.7 C12.17 I7.82 J0.
G1 X8.7
G2 X24.34 C4.35 I0. J-7.82
G1 C0.
G2 X24.04 C-0.225 I-0.244 J0.
G3 X23.74 C-0.45 I0.094 J-0.225
G1 C-4.35
G2 X8.7 C-11.87 I-7.52 J0.
G1 X-8.7
G2 X-23.74 C-4.35 I0. J7.52
G1 C4.35
G2 X-8.7 C11.87 I7.52 J0.
G1 X8.7
G2 X23.74 C4.35 I0. J-7.52
G1 C-0.45
G2 X23.44 C-0.675 I-0.244 J0.
G3 X23.14 C-0.9 I0.094 J-0.225
G1 C-4.35
G2 X8.7 C-11.57 I-7.22 J0.
G1 X-8.7
G2 X-23.14 C-4.35 I0. J7.22
G1 C4.35
G2 X-8.7 C11.57 I7.22 J0.
G1 X8.7
G2 X23.14 C4.35 I0. J-7.22

 

 

Code with 1

 

%
O1020 (KLJUC_STANCA -1)
G21
M68
G80 (RAZVELJAVITEV CIKLOV LUKENJ)
G40 (RAZVELJAVITEV KOREKCIJE RADIUSA PLOSCIC)

N1(2D CONTOUR2)
G0 G28 U0.
G28 W0.
M89
G54
G98 G18 M80
G0 G28 H0.
T0606
(TRDOKOVINSKI_FI10)
M8
G97 S3820 M83
G0 Z5.
X30.406
C0.
G12.1
G1 X30.34 C1. F1500.
Z1.
Z0. F353.68
Z-17.
X30.325 Z-17.121 F763.94
X30.282 Z-17.239
X30.21 Z-17.355
X30.111 Z-17.465
X29.986 Z-17.568
X29.837 Z-17.663
X29.666 Z-17.749
X29.476 Z-17.823
X29.269 Z-17.885
X29.049 Z-17.935
X28.819 Z-17.971
X28.581 Z-17.993
X28.34 Z-18.
X26.34
G3 X24.34 C0. I0. J-1.
G1 C-4.35 F1222.31
G2 X8.7 C-12.17 I-7.82 J0.
G1 X-8.7
G2 X-24.34 C-4.35 I0. J7.82
G1 C4.35
G2 X-8.7 C12.17 I7.82 J0.
G1 X8.7
G2 X24.34 C4.35 I0. J-7.82
G1 C0.
G2 X24.04 C-0.225 I-0.244 J0.
G3 X23.74 C-0.45 I0.094 J-0.225
G1 C-4.35
G2 X8.7 C-11.87 I-7.52 J0.
G1 X-8.7
G2 X-23.74 C-4.35 I0. J7.52
G1 C4.35
G2 X-8.7 C11.87 I7.52 J0.
G1 X8.7
G2 X23.74 C4.35 I0. J-7.52
G1 C-0.45
G2 X23.44 C-0.675 I-0.244 J0.
G3 X23.14 C-0.9 I0.094 J-0.225
G1 C-4.35
G2 X8.7 C-11.57 I-7.22 J0.
G1 X-8.7
G2 X-23.14 C-4.35 I0. J7.22
G1 C4.35
G2 X-8.7 C11.57 I7.22 J0.
G1 X8.7

 

0 Likes

tisler
Enthusiast
Enthusiast

Please help @Arun.rs , anybody? 

0 Likes

Arun.rs
Autodesk
Autodesk
Accepted solution

HI @tisler 

 

Apologies for delay in reply.

 

I assume you are trying to do polar interpolation operation on the face. When using polar interpolation many machines require the letter C in front of the Y coordinate value in the NC code. This causes some confusion when reading the NC code. Many people assume that the C values are C axis rotation numbers. Here in Doosan TurnMILL post also configured the same method.

 

 To change the direction C axis in polar interpolation,

 

1. Search ' function setPolarMode(activate)'

2. Add below code after line number 2415 

yFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1});

G12.1.png

 

Please test the NC code carefully and let me know the feedback.

 

Regards



Arun.RS
Technical Consultant - Post Processor

tisler
Enthusiast
Enthusiast

Thank you @Arun.rs .

That works now!

 

I still have something to clearup, if you are kind enough;

-Why did it not work when I changed var in line in line 216:

 

var yFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1});

 

 -Now polar interpolation (g12.1) works ok, but what about when not using polar? When i disabled polar interpolation, and created code "point to point", it also came out mirrored...

0 Likes

Arun.rs
Autodesk
Autodesk

HI @tisler 

 

You can't do the same logic in line number 216, because it will mirror the actual Y axis coordinate in global.  

 

The one I suggest will mirror only Y axis which used in polar interpolation with 'C' as prefix and G12.1 will take care at the controller end.

 

If you need to mirror the C rotary axis in global, follow my first rely in this thread.

 

Hope this helps!

 

Regards

 



Arun.RS
Technical Consultant - Post Processor

tisler
Enthusiast
Enthusiast

It helps a lot. Thank you!

tisler
Enthusiast
Enthusiast

Hi @Arun.rs and others.

I still have some preoblems regarding this topic.

When runing C-axis reversed (inside G12.1-polar) straight lines are ok and NOT mirrored anymore.

BUT:

When in comes to arcs (when post uses G02 of G03), machine gives me error 020 (Tolerance of arc radius).

If I, then, put C-axis rotation back the default, program runs ok (but mirrored).

 

CODE WITH DEFAULT AXIS ROTATION (WORKS but mirrored):

%
O1002
G21
M68
G80 (RAZVELJAVITEV CIKLOV LUKENJ)
G40 (RAZVELJAVITEV KOREKCIJE RADIUSA PLOSCIC)

N1(2D CONTOUR5)
G0 G28 U0.
G28 W0.
M89
G54
G98 G18 M80
G0 G28 H0.
T1010
(TRDOKOVINSKI_FI6)
M8
G97 S2653 M83
G0 Z15.
X68.81
C0.
G12.1
G1 X1.2 C-34.4 F1500.
Z5.
Z1. F353.68
Z-0.4
C-34.393 Z-0.494 F1061.03
C-34.371 Z-0.585
C-34.335 Z-0.672
C-34.285 Z-0.753
C-34.224 Z-0.824
C-34.153 Z-0.885
C-34.072 Z-0.935
C-33.985 Z-0.971
C-33.894 Z-0.993
C-33.8 Z-1.
C-33.2
G3 X0. C-32.6 I-0.6 J0.
G2 X-56.465 C16.3 I0. J32.6
X56.465 I28.232 J-16.3
X0. C-32.6 I-28.232 J-16.3
G3 X-1.2 C-33.2 I0. J-0.6
G1 C-33.8
C-33.894 Z-0.993
C-33.985 Z-0.971
C-34.072 Z-0.935
C-34.153 Z-0.885
C-34.224 Z-0.824
C-34.285 Z-0.753
C-34.335 Z-0.672
C-34.371 Z-0.585
C-34.393 Z-0.494
C-34.4 Z-0.4
Z15. F1500.
G13.1
M85
M9

M69
G0 G28 U0.
G28 W0.
M80
G28 H0.
M82
G54

M30
%

 

Code WITH REVERSED AXIS (machine returns error 020 at G02):

%
O1001
G21
M68
G80 (RAZVELJAVITEV CIKLOV LUKENJ)
G40 (RAZVELJAVITEV KOREKCIJE RADIUSA PLOSCIC)

N1(2D CONTOUR5)
G0 G28 U0.
G28 W0.
M89
G54
G98 G18 M80
G0 G28 H0.
T1010
(TRDOKOVINSKI_FI6)
M8
G97 S2653 M83
G0 Z15.
X68.81
C0.
G12.1
G1 X1.2 C34.4 F1500.
Z5.
Z1. F353.68
Z-0.4
C34.393 Z-0.494 F1061.03
C34.371 Z-0.585
C34.335 Z-0.672
C34.285 Z-0.753
C34.224 Z-0.824
C34.153 Z-0.885
C34.072 Z-0.935
C33.985 Z-0.971
C33.894 Z-0.993
C33.8 Z-1.
C33.2
G2 X0. C32.6 I-0.6 J0.
G3 X-56.465 C-16.3 I0. J32.6
X56.465 I28.232 J-16.3
X0. C32.6 I-28.232 J-16.3
G2 X-1.2 C33.2 I0. J-0.6
G1 C33.8
C33.894 Z-0.993
C33.985 Z-0.971
C34.072 Z-0.935
C34.153 Z-0.885
C34.224 Z-0.824
C34.285 Z-0.753
C34.335 Z-0.672
C34.371 Z-0.585
C34.393 Z-0.494
C34.4 Z-0.4
Z15. F1500.
G13.1
M85
M9

M69
G0 G28 U0.
G28 W0.
M80
G28 H0.
M82
G54

M30
%
0 Likes

tisler
Enthusiast
Enthusiast

Anyone?

0 Likes

oltjon_ibrahimi95
Observer
Observer

could you please give me the post processor you used

0 Likes