Showing results for 
Search instead for 
Do you mean 
Reply

Pass a string value to TNC in CSE

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

Hi George,

in iTNC 'QS' are the string variables.

Thomas

Re: Pass a string value to TNC in CSE

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

Try this
DECLARE STRING QS1002 = "TOOLNAME"

Re: Pass a string value to TNC in CSE

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

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