PDA

View Full Version : Heidenhain TNC 530



Matth3w
06-13-2010, 06:06 AM
I have started writting a post for the 530 Heidenhain. So far I have this.


A linear move in .h format is as follows.

L X15 R0

R0 means no compensation.



@line

{nb,'L'}

{[' X'xpos] [' Y'ypos] [' Z'zpos]}
if m_feed_flag eq 1
m_feed_flag = 0
{ ' F'feed}
else
{ [' F'feed]}
endif

;-------------------
endp


A arc is defined by declaring a circle centre, then you define the end point , direction and compensation.


CC X0 Y0
C X-15 Y0 DR- R0 F500

Solidcam seems to split the circle if it is greater than 180 degrees, this makes
writing the post easy.



@arc

{nb,'CC'}
{' X'xcenter ' Y'ycenter}
{nb,'C'}
{' X'xpos ' Y'ypos}

if arc_direction eq cw then
{' DR- '}
else
{' DR+ '}
endif
{'R0'}



if m_feed_flag eq 1
m_feed_flag = 0
{ ' F'feed}
else
{ [' F'feed]}
endif


endp


Tool change is defined as follows.

TOOL CALL 7 Z S5000



@change_tool

{nb, 'TOOL CALL 'tool_number,' Z S'spin:integer_def_f, ''}
if colent eq 0
{nb, 'M08'}
endif
{nb,'M03'}


endp



If anyone has any advice, comments or an example .gpp for a heidenhain machine, please help.

Brakeman Bob
06-16-2010, 02:56 AM
Pay close attention to how you set up the drilling cycles in the GPP, especially if you intent to use drilling cycles for Plunge Roughing.

Use the values in @tmatrix to drive PLANE SPATIAL (or whatever flavour of the PLANE function you prefer) but be aware that @tmatrix is generated multiple times in the CAM output, once before @start_of_job and once after. This caused me great problems when I had a line checking if the values in @tmatrix had changed.

There is more, but I can't think of it right now.

Matth3w
06-18-2010, 02:16 AM
Thanks for the advice. I will work on my post this weekend.