Cancel
Showing results for 
Search instead for 
Did you mean: 

postbuilder PB_CMD_init_helix - how to make it work in heidenhein conversational

Creator
Creator

hello eweryone im trying to make the custom comand PB_CMD_init_helix to work fot the heidenhein_conversational controler.under ISO programing wrehe a circular move is described as a single programing row(G2/3 X Y Z I J K) in heidenhein_conwersational it is described as a set ot two rows 1 - row (CC X Y Z) the center of the ark 2 - row (C X Y Z DR + / -) end of the arcs rotation with it's direktion.

 

now when i use hole milling in SIemens NX 8.5 with the corect set of defined parameters under ISO programing this is the code that i get

 

(PROGRAM FOR VARAXIS)
T0 L96
T0
S0000 M3 M8
G0 X0.0 Y0.0 A0.0 C0.0
G43 Z110.
Z103.
G1 X5. F250
G3 G90 X5. Y0.0 Z100.265 I5. J0.0 K.435
X5. Y0.0 Z97.531 I5. J0.0 K.435
X5. Y0.0 Z94.796 I5. J0.0 K.435
X5. Y0.0 Z92.061 I5. J0.0 K.435
X5. Y0.0 Z89.327 I5. J0.0 K.435
X5. Y0.0 Z86.592 I5. J0.0 K.435
X5. Y0.0 Z83.858 I5. J0.0 K.435
X5. Y0.0 Z81.123 I5. J0.0 K.435
X5. Y0.0 Z78.388 I5. J0.0 K.435
X5. Y0.0 Z75.654 I5. J0.0 K.435
X5. Y0.0 Z72.919 I5. J0.0 K.435
X5. Y0.0 Z70.184 I5. J0.0 K.435
X5. Y0.0 Z67.45 I5. J0.0 K.435
X5. Y0.0 Z64.715 I5. J0.0 K.435
X5. Y0.0 Z61.981 I5. J0.0 K.435
X5. Y0.0 Z59.246 I5. J0.0 K.435
X5. Y0.0 Z56.511 I5. J0.0 K.435
X5. Y0.0 Z53.777 I5. J0.0 K.435
X5. Y0.0 Z51.042 I5. J0.0 K.435
X5. Y0.0 Z48.307 I5. J0.0 K.435
X5. Y0.0 Z45.573 I5. J0.0 K.435
X5. Y0.0 Z42.838 I5. J0.0 K.435
X5. Y0.0 Z40.104 I5. J0.0 K.435
X5. Y0.0 Z37.369 I5. J0.0 K.435
X5. Y0.0 Z34.634 I5. J0.0 K.435
X5. Y0.0 Z31.9 I5. J0.0 K.435
X5. Y0.0 Z29.165 I5. J0.0 K.435
X5. Y0.0 Z26.43 I5. J0.0 K.435
X5. Y0.0 Z23.696 I5. J0.0 K.435
X5. Y0.0 Z20.961 I5. J0.0 K.435
X-2.976 Y4.018 Z20. I5. J0.0 K.435
G1 X0.0 Y0.0
G0 Z110.

 

whes i apply the same strategy with the heidenhein converstaioal postprocesor this is what i get

BEGIN PGM 100 MM
BLK FORM 0.1 Z X0.0 Y0.0 Z-20.
BLK FORM 0.2 X+100. Y+100. Z0.0
;HOLE_MILLING
TOOL CALL 0 Z S0 DL+0 DR+0
TOOL DEF 0 ;MILL
CYCL DEF 247 DATUM SETTING
Q339=+1 ; DATUM NUMBER
PLANE SPATIAL SPA+0 SPB0.0 SPC0.0 TURN F MAX
L X0.0 Y0.0 F MAX M3
L Z+110. F MAX
L Z+103. F MAX
L X+5. F250.
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
CC X0.0 Y0.0 ;--(R+5.)---
C X-2.976 Y+4.018 DR+
L X0.0 Y0.0
L Z+110. F MAX
END PGM 100 MM

 

it only generates the centers of the arcs defined as a depth per revolution.

 

MY QUESTION IS THERE A WAY TO FIX THIS.

 

i know that heidenhein is a programing language full of user predefined cycles for allmoust everything but still im qurious to know

 

any help will be great.

 

ttahnks a lot greetings from BULGARIA

 

4 REPLIES

Re: postbuilder PB_CMD_init_helix - how to make it work in heidenhein conversational

Valued Contributor
Valued Contributor

Hello!

 

If I try this it works fine, but in another way:

CLD:

 

CIRCLE/-200.0000,125.0000,-30.0000,0.0000000,0.0000000,-1.0000000,11.0000,0.0600,0.5000,63.0000,0.8000,TIMES,28

 

Post:

 

99 L X-200 Y+125 FMAX
100 L Z+10 FMAX
101 L Z-2 FMAX
102 L X-192.389 Y+122.535 FAUTO
103 CC X-191.591 Y+125
104 C X-189 Y+125 DR+ FAUTO
105 CC X-200 Y+125
106 CP IPA+10080 IZ-28. DR+ FAUTO
107 CC X-200 Y+125
108 C X-189 Y+125 DR+ FAUTO
109 CC X-191.591 Y+125
110 C X-192.389 Y+127.465 DR+ FAUTO
111 L X-200 Y+125 Z-30 FAUTO
112 L Z+10 FMAX

 

IPA-10080 means 360 degree * 28 times

 

If I use a OOTB-Heidenahin-PP the output is nearly the same like in mine.

I have used the sim07_mill_5ax_tnc_mm

 

Please try again and tell us your result.


Werner

Re: postbuilder PB_CMD_init_helix - how to make it work in heidenhein conversational

Esteemed Contributor
Esteemed Contributor

if I understand correctly....

you want

CC X Y Z

C ....

 

for each helix move?

If that is correct, look into PB_CMD_ini​t_helix.  At the end you will see

MOM_do_template circular_move

 

What I suggest you do is create 2 blocks

aleitin_helix_center

aleitin_helix_move

(or whatever you want to call them).  define them to correctly output what you need.  Then change the "MOM_do_template" to 2 lines:

 

MOM_do_template aleitin_helix_center

MOM_do_template aleitin_helix_move

 

(if you need to, add appropriate "MOM_force once ...." lines to make sure output is correct, or make the needed words non-modal)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: postbuilder PB_CMD_init_helix - how to make it work in heidenhein conversational

Creator
Creator

hello can you give me an example of the definition for TCL that i can use couse im not so much familiar with it 

 

thanks a lot in advance

Re: postbuilder PB_CMD_init_helix - how to make it work in heidenhein conversational

Esteemed Contributor
Esteemed Contributor

You really should take a class in postbuilder & CAM customization.  If you don't understand how this all fits together (NX CAM operations/tools/etc; Posts; UDEs; CAM configurations; etc.) this will all seem like a lot of vodoo to you.

 

1) You need to create the blocks in postbuilder  (NC Data definitions tab)

- this may require you to first add some words.

 

2) Once the blocks are set up then in your code (where I mentioned) Then you will add the commands to output them.  If you need to force words (even though they are the same value as the last block output) then you need to either make the words themselves non-modal (when defining them in step 1), or add "MOM_Force once X Y Z word4 word5 ..." just before the MOM_do_template command.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Learn online





Solution Information