Cancel
Showing results for 
Search instead for 
Did you mean: 

G5 before helical interpolation

Creator
Creator
Hello!

For this control 8055M, I'm using a lookahead code G51 after each tool change. But the control doesn't accept it with helical interpolation, so I would need to add a G5 before and the G51 after the helical motion. In post builder, can I add this to the init helix command?
10 REPLIES 10
Highlighted

Re: G5 before helical interpolation

Legend
Legend

You can do it in the buffer

 

LIB_GE_command_buffer_edit_prepend MOM_helix_move_LIB OUTPUT {
MOM_output_literal "G5"
} CUSTOM_output_before_helix

LIB_GE_command_buffer_edit_append MOM_helix_move_LIB OUTPUT {
MOM_output_literal "G51"
} CUSTOM_output_after_helix

 

regards

 

Re: G5 before helical interpolation

Gears Phenom Gears Phenom
Gears Phenom

hi,

helix output is executed in pc_cmd_init_helix.

So find particullar lines which output helix.

 

In default imported helix cmd it is like this:

 

aaa.JPG

So you can add your desired code there - before and after.

 

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

Re: G5 before helical interpolation

Creator
Creator
Thank you for helping me.

Where exactly should I write this code?

Re: G5 before helical interpolation

Gears Phenom Gears Phenom
Gears Phenom

I am not telling to write this code.

I just showed you where in pb_cmd_init_helix is the execution of helix output.

 

PB_CMD_init_helix

- this cmd is responsible for outputing helix move.

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

Re: G5 before helical interpolation

Creator
Creator
Hello and thanks for the help.
It works fine, but for every line of helical interpolation it will output the codes. I'm using the FULL CIRCLE option, so for every turn it will output one line of code. Is there a way to output the last code only after all the sequential helical moves are done?

Re: G5 before helical interpolation

Gears Phenom Gears Phenom
Gears Phenom

use modality

 

call block BLOCK1 you want before helix.

aa.JPG

modality will output it ones before first helix move.

 

to output code after whole helix:

call block you want  BLOCK2 in other type of move - linear, circular and rapid move.

 

modality will do the thing.

 

BLOCK1 content

your new address G_something , digit2 format, modal type, expresion = 5

 

BLOCK1 content

your new address G_something , digit2 format, modal type, expresion = 51

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

Re: G5 before helical interpolation

Creator
Creator
Thanks a lot Juraj I'll try it and post the results.

Re: G5 before helical interpolation

Creator
Creator
Hello friend

It worked fine just as you told me to do.
One more thing, i would need to output the code E.02 everytime I output the the G51. So, G51 E.02. I've tried doing it with modality but no success. So how could I out the E.02 everytime the G51 comes in?

Re: G5 before helical interpolation

Gears Phenom Gears Phenom
Gears Phenom

hm, try this :

 

change your address a little

 

BLOCK1 content

your new address G_something , leader G, String format, modal type, expresion = "5"

 

BLOCK1 content

, expresion = "51 E.02"

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

Learn online





Solution Information