cancel
Showing results for 
Search instead for 
Did you mean: 

Pass a string value to TNC in CSE

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

I've looked high and low in the Heidenhain manuals for a way to set a parameter with a string value.  My objective is to load a tool by name.  Customer wants to use tool zero to trigger a manual tool change so there could be any number of tool zeroes.  I tried to use $mom_tool_name in quotes instead of tool number with TOOL CALL but the name is ignored.  With Fanuc sontrols, I use DPRNT to pass the tool name to CSE.  I tried things like FN 0: Q1000=\"$mom_tool_name\" but the CSE won't parse it.  Can I achieve this with a different FN# or Q#?

 

Any help would be appreciated.  Last touch on my KIM project Smiley Happy

 

Thanks

George

 

George Bennett
All NX versions
W7 Ultimate
Dell Precision M6700
Spirit of Innovation
5 REPLIES

Re: Pass a string value to TNC in CSE

Siemens Phenom Siemens Phenom
Siemens Phenom
Hi George,

in iTNC 'QS' are the string variables.

Thomas

Re: Pass a string value to TNC in CSE

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Thanks Thomas.  I tried passing this to CSE and got an error:

 

FN0: QS1002= \"$mom_tool_name\"

 

The error says "The left side of an assignment is not defined".  I think I need to find a Heidenhain manual with more info on FN# and Q parameters.  I've been all over the web and found none yet.

 

George

 

George Bennett
All NX versions
W7 Ultimate
Dell Precision M6700
Spirit of Innovation

Re: Pass a string value to TNC in CSE

Siemens Phenom Siemens Phenom
Siemens Phenom
Try this
DECLARE STRING QS1002 = "TOOLNAME"

Re: Pass a string value to TNC in CSE

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

That did it!

 

Thanks again Thomas

 

George

 

George Bennett
All NX versions
W7 Ultimate
Dell Precision M6700
Spirit of Innovation

Re: Pass a string value to TNC in CSE

Siemens Phenom Siemens Phenom
Siemens Phenom
BTW... here are all iTNC manuals located
http://content.heidenhain.de/doku/tnc_guide/html/en/index/1242135142456/1242135142480/1242135142480....

Very helpful is the offline version:
Goto e.g. iTNC 530 (60642x-04) --> scroll down on this site and you´ll find the TNCguide online help (CHM files)

Learn online





Solution Information