cancel
Showing results for 
Search instead for 
Did you mean: 

TNC530 tool probing issue with CSE

Valued Contributor
Valued Contributor

I'm working on a post for a new 5-axis being installed with a Heidenhain TNC530 controller. The machine also comes with a tool probe that sets the height offset and diameter for cutter comp. I have the correct code posting out, but I get a parse error during simulation if I don't put a ";" on each line. I don't know a lot about the code, but I can usually copy/paste something to get me close enough. This is what my custom command looks like.

 

MOM_output_literal "TCH PROBE 551 LENGTH MEASURE"
MOM_set_seq_off
MOM_output_literal "Q320=+0.1 ;SETUP-CLEARANCE"
MOM_output_literal "Q396=0 ;GEOM-1 WEAR=0"
MOM_output_literal "Q399=+0 ;DRILL=0 MILL=1"
MOM_output_literal "Q391=+0 ;0=NO, 1=YES"
MOM_set_seq_on

 

Ultimately I'd like to actually simulate the motion, but I'm just forcing output to the probing location for now and would like CSE to ignore this command. Is there a way within postbuilder to make it work?

Thanks in advance.

 

 

2 REPLIES

Re: TNC530 tool probing issue with CSE

Esteemed Contributor
Esteemed Contributor

You would need to edit the CSE driver to recognize this command.

The easiest is to check if the post is currently in simulation and then post a different set of lines resembling the movement of that command.

 

global mom_post_in_simulation

if {$mom_post_in_simulation != "0"} {
    # your code for CSE
} else {
    # your code for regular controller
}
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: TNC530 tool probing issue with CSE

Genius
Genius
The Code for the machine should look like

MOM_output_literal "TCH PROBE 551 LENGTH MEASURE ~"
MOM_set_seq_off
MOM_output_literal "Q320=+0.1 ;SETUP-CLEARANCE ~"
MOM_output_literal "Q396=0 ;GEOM-1 WEAR=0 ~"
MOM_output_literal "Q399=+0 ;DRILL=0 MILL=1 ~"
MOM_output_literal "Q391=+0 ;0=NO, 1=YES"
MOM_set_seq_on

regards

Learn online





Solution Information