Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Creator
Creator

Hi Guys,

 

I am making basic post for fanuc.

 

i have issue with Spindle Speed setting in nx post builder.

 

example.

 

S1000 M03
N11 M08
N12 G98 G81 X-13.7795 Y-.3937 Z-.05 R.1 F10.
N13 Y2.5984
N14 X13.7795
N15 Y-.3937
N16 G80
N17 G00 X12.7953 Y6.2205
N18 S1000 M03
N19 G98 G81 X12.7953 Y6.2205 Z-.05 R.1 F10.
N20 X2.5591
N21 X-2.5591
N22 X-12.7953
N23 Y-4.0157
N24 X-2.5591
N25 X2.5591
N26 X12.7953
N27 G80
N28 G00 X11.8898 Y4.9213
N29 S1000 M03
N30 G98 G81 X11.8898 Y4.9213 Z-.05 R.1 F10.
N31 Y-2.7165
N32 X0.0 Y-4.4094
N33 Y6.6142
N34 X-11.8898 Y4.9213
N35 Y-2.7165
N36 G80
N37 G00 X13.7795 Y-9.7638
N38 S0 M03
N39 G98 G81 X13.7795 Y-9.7638 Z-.05 R.1 F10.
N40 Y9.7638
N41 X-13.7795
N42 Y-9.7638

 

 

is there any way to control if i have same rpm (in same operation only) then i dont want to repeat a line with Sxx M03 ??

7 REPLIES 7

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

hi,

there should be MOM force once .... of addresses in start of operation (or initial/first move), in custom command.

So even if S and M_spindle addresses are modal they will be outputed in every operation.

So remove S and M_spindle from line MOM force once ............

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Creator
Creator

thank Juraj,

 

Can we go on more detail?

 

where to find in custom command ??

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

As I wrote it is in custom command and this custom command (dont know a specific name) is in some section - start of operation, initial/first move, ....etc

You have to find it.

Each postprocesssor has different logic so keep searching.

 

In particular, generic postprocessor has it here:

aa.JPG

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Creator
Creator

hey it works,

 

i find it.

 

But i have another issue now,

 

when it starts new operation i am geeting only  Sxxxxx  NO M03.

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Because it is modal, if S is changing = output S....

M_spindle - is the same - you will get output only if there is a change -  M3/M4

 

If you want output M_spindle if S is changing - you have to create custom command before it, or create condition command on your S M block.

 

It should has this logic:

IF previous S NOT EQUAL TO current S

THEN

MOM_force once M_spindle

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Creator
Creator

hey

 

i am new in post biulding

 

so can you help me to make custom command mean can you write for me so i can copy and paste if works..

 

 

thanks for helping...

Re: GETTING REPITATIVE SPINDLE RPM FOR SAME OPERATION

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

so.... first of all watch these videos here:

https://community.plm.automation.siemens.com/t5/Tech-Tips-Knowledge-Base-NX-Manufacturing/tkb-p/open...

Watch it carefully.

Videos in this series:

  1. What is a postprocessor?
  2. Create and test a 3-axis postprocessor
  3. Modifying tool change and work offset output
  4. Changing G-codes in Post Builder
  5. Tool Command Language (TCL) - Part 1
  6. Tool Command Language (TCL) - Part 2
  7. Tool Command Language (TCL) - Part 3
  8. Tool Command Language (TCL) - Part 4: More on IF statement
  9. Tool Command Language (TCL) - Part 5: Source and Switch
  10. Using the Custom Command Library
  11. Create a lathe postprocessor
  12. Create a mill-turn postprocessor
  13. Create a 4-axis postprocessor
  14. Create a 5-axis postprocessor
  15. Tilted work plane
  16. User Defined Events
---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information